* AD1988B: ALSA doesn't use dmix automatically
@ 2008-03-16 2:48 Dâniel Fraga
2008-03-17 11:45 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Dâniel Fraga @ 2008-03-16 2:48 UTC (permalink / raw)
To: alsa-devel
ALSA 1.0.15
http://alsa.opensrc.org/index.php/Dmix
NOTE: For ALSA 1.0.9rc2 and higher you don't need to setup dmix. Dmix
is enabled as default for soundcards which don't support hw mixing.
So why if I try to play 2 sounds at the same time, the second
one complains the "resource is busy"? Shouldn't it detect that AD1988B
can't do hardware mixing and use dmix automatically?
Obs.: I don't have any ~/.asoundrc or /etc/asound.conf lying
around.
Thanks!
--
Linux 2.6.24: Arr Matey! A Hairy Bilge Rat!
http://u-br.net http://www.abusar.org/FELIZ_2008.html
Napalm Death - "Circle Of Hypocrisy" (Harmony Corruption - 1990)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AD1988B: ALSA doesn't use dmix automatically
2008-03-16 2:48 AD1988B: ALSA doesn't use dmix automatically Dâniel Fraga
@ 2008-03-17 11:45 ` Takashi Iwai
2008-03-17 14:08 ` A. C. Censi
2008-03-17 15:18 ` Alexander E. Patrakov
0 siblings, 2 replies; 5+ messages in thread
From: Takashi Iwai @ 2008-03-17 11:45 UTC (permalink / raw)
To: Dâniel Fraga; +Cc: alsa-devel
At Sat, 15 Mar 2008 23:48:52 -0300,
Dâniel Fraga wrote:
>
> ALSA 1.0.15
>
> http://alsa.opensrc.org/index.php/Dmix
>
> NOTE: For ALSA 1.0.9rc2 and higher you don't need to setup dmix. Dmix
> is enabled as default for soundcards which don't support hw mixing.
>
> So why if I try to play 2 sounds at the same time, the second
> one complains the "resource is busy"? Shouldn't it detect that AD1988B
> can't do hardware mixing and use dmix automatically?
It does as long as the app uses the "default" PCM. The dmix isn't
forced to be applied. The exclusive hardware access is still
available by opening the PCM as "hw", "plughw" and etc. So, if any
apps access exclusively, others will suffer.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AD1988B: ALSA doesn't use dmix automatically
2008-03-17 11:45 ` Takashi Iwai
@ 2008-03-17 14:08 ` A. C. Censi
2008-03-17 15:18 ` Alexander E. Patrakov
1 sibling, 0 replies; 5+ messages in thread
From: A. C. Censi @ 2008-03-17 14:08 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
On Mon, Mar 17, 2008 at 8:45 AM, Takashi Iwai <tiwai@suse.de> wrote:
> At Sat, 15 Mar 2008 23:48:52 -0300,
>
> Dâniel Fraga wrote:
> >
> > ALSA 1.0.15
> >
> > http://alsa.opensrc.org/index.php/Dmix
> >
> > NOTE: For ALSA 1.0.9rc2 and higher you don't need to setup dmix. Dmix
> > is enabled as default for soundcards which don't support hw mixing.
> >
> > So why if I try to play 2 sounds at the same time, the second
> > one complains the "resource is busy"? Shouldn't it detect that AD1988B
> > can't do hardware mixing and use dmix automatically?
>
> It does as long as the app uses the "default" PCM. The dmix isn't
> forced to be applied. The exclusive hardware access is still
> available by opening the PCM as "hw", "plughw" and etc. So, if any
> apps access exclusively, others will suffer.
>
Applications normally offer the real devices as first choices and not
the "default" PCM. Perhaps this should be explained better in the
documentation or the wiki, not only for the end users, but also for
application developers.
--
A. C. Censi
accensi [em] gmail [ponto] com
accensi [em] montreal [ponto] com [ponto] br
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AD1988B: ALSA doesn't use dmix automatically
2008-03-17 11:45 ` Takashi Iwai
2008-03-17 14:08 ` A. C. Censi
@ 2008-03-17 15:18 ` Alexander E. Patrakov
2008-03-17 15:21 ` Takashi Iwai
1 sibling, 1 reply; 5+ messages in thread
From: Alexander E. Patrakov @ 2008-03-17 15:18 UTC (permalink / raw)
To: alsa-devel
Takashi Iwai wrote:
> It does as long as the app uses the "default" PCM
...and a card-specific file exists under /usr/share/alsa/cards. This is not the
case, e.g., for sb16 (just try it in qemu and compare with ens1370--qemu can
emulate both of them).
--
Alexander E. Patrakov
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AD1988B: ALSA doesn't use dmix automatically
2008-03-17 15:18 ` Alexander E. Patrakov
@ 2008-03-17 15:21 ` Takashi Iwai
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2008-03-17 15:21 UTC (permalink / raw)
To: Alexander E. Patrakov; +Cc: alsa-devel
At Mon, 17 Mar 2008 20:18:35 +0500,
Alexander E. Patrakov wrote:
>
> Takashi Iwai wrote:
> > It does as long as the app uses the "default" PCM
>
> ...and a card-specific file exists under /usr/share/alsa/cards. This is not the
> case, e.g., for sb16 (just try it in qemu and compare with ens1370--qemu can
> emulate both of them).
Well, it's basically a bug -- the config remains so because it wasn't
confirmed to work. If it's OK on your system, let us know. We'll
change the configuration.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-17 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-16 2:48 AD1988B: ALSA doesn't use dmix automatically Dâniel Fraga
2008-03-17 11:45 ` Takashi Iwai
2008-03-17 14:08 ` A. C. Censi
2008-03-17 15:18 ` Alexander E. Patrakov
2008-03-17 15:21 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.