Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA dmix not working Intel HDA [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
x3no
n00b
n00b


Joined: 18 Feb 2012
Posts: 2

PostPosted: Sat Feb 18, 2012 9:44 pm    Post subject: ALSA dmix not working Intel HDA [Solved] Reply with quote

I have a problem with the alsa dmix pugin. I can play sound from one sound source but the second (third) fails with this message:
Code:
$ aplay  /usr/share/sounds/alsa/Front_Center.wav
aplay: main:660: audio open error: Device or resource busy

I read in the alsa wiki and it tells me the dmix plugin is enabled by default for cards without hardware mixing and I don't have to configure anything.
When I execute two of the following commands I hear both sounds, so the dmix plugin is working but is not selected by default.
Code:
$ aplay -D "plug:dmix" /usr/share/sounds/alsa/Front_Center.wav

I tried to enable the plugin via .asoundrc but it did not help.
Code:
$ cat .asoundrc
pcm.duplex {
   type asym
   playback.pcm "dmix"
   capture.pcm "dsnoop"
}

pcm.!default {
   type plug
   slave.pcm "duplex"
}

I have an onboard sound card without hw mixing. I think the first one is my sound card (not 100% sure :wink: ) second one would be the hdmi output of my graphics card.
Code:
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
01:00.1 Audio device: ATI Technologies Inc Device aa80e

I'm running a gentoo amd64 with kernel 3.2.1-r1

If you need anything else please tell.

Thank you,
x3no


Last edited by x3no on Sat Feb 18, 2012 11:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2656
Location: Slovenia

PostPosted: Sat Feb 18, 2012 10:02 pm    Post subject: Re: ALSA dmix not working Intel HDA Reply with quote

x3no wrote:
I read in the alsa wiki and it tells me the dmix plugin is enabled by default for cards without hardware mixing and I don't have to configure anything.

So why did you then go and configure something?
Back to top
View user's profile Send private message
x3no
n00b
n00b


Joined: 18 Feb 2012
Posts: 2

PostPosted: Sat Feb 18, 2012 11:29 pm    Post subject: Reply with quote

Gusar wrote:
x3no wrote:
I read in the alsa wiki and it tells me the dmix plugin is enabled by default for cards without hardware mixing and I don't have to configure anything.

So why did you then go and configure something?


Because it did not work out of the box.

But I think this .asoundrc file did the trick for me as I have sound for everything after a restart. I'm sorry for bothering you and not trying to reboot :roll:
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Feb 19, 2012 12:32 am    Post subject: Reply with quote

If you have more than 2 speakers, then the default dmix is broken.

To prove it, run these commands simultaneously, starting with the first one:
# speaker-test -c 2 -D default
# speaker-test -c 6 -D surround51 -t wav

The solution is in my ~/.asoundrc
Back to top
View user's profile Send private message
norayr
n00b
n00b


Joined: 25 Oct 2005
Posts: 20
Location: Yerevan, Armenia

PostPosted: Wed Oct 25, 2017 8:36 am    Post subject: Reply with quote

for me the first command works

Code:

noch@debed ~ $ speaker-test -c 2 -D default

speaker-test 1.1.3

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 5.804850
 0 - Front Left
^CWrite error: -4,Interrupted system call
xrun_recovery failed: -4,Interrupted system call
Transfer failed: Interrupted system call


the second fais

Code:

noch@debed ~ $  speaker-test -c 6 -D surround51 -t wav

speaker-test 1.1.3

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Playback open error: -16,Device or resource busy


i know many years passed, so, there's no asoundrc example in dropbox any more. can you share it?

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum