* querying card properties
@ 2005-01-08 21:52 Lee Revell
2005-01-10 11:39 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Lee Revell @ 2005-01-08 21:52 UTC (permalink / raw)
To: alsa-devel
In a recent LAU thread it came to light that some (all?) distros alsa
setup scripts don't configure dmix when the card is known not to support
hardware mixing. The end result is the user has to edit config files to
get software mixing to work. On a modern distro this is a BUG.
Is there an API function to detect whether hardware mixing is supported?
Also useful would be a way to detect codecs with no hardware volume
control, so the softvol plugin can be set up.
I know there are hacks like comparing the number of streams to the
number of substreams, but what's the right way?
Lee
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: querying card properties
2005-01-08 21:52 querying card properties Lee Revell
@ 2005-01-10 11:39 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2005-01-10 11:39 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
At Sat, 08 Jan 2005 16:52:24 -0500,
Lee Revell wrote:
>
> In a recent LAU thread it came to light that some (all?) distros alsa
> setup scripts don't configure dmix when the card is known not to support
> hardware mixing. The end result is the user has to edit config files to
> get software mixing to work. On a modern distro this is a BUG.
>
> Is there an API function to detect whether hardware mixing is supported?
No specific API for such probes.
> Also useful would be a way to detect codecs with no hardware volume
> control, so the softvol plugin can be set up.
This is already implemented on 1.0.8rc2. The "default" PCM is
overwritten automagicall on some cards like ICH, NFORCE, or VIA.
On such cards, the default PCM always routes via softvol plugin. The
softvol plugin checks whether the specified control is a hardcoded
one. If it's a h/w control, the plugin just bypasses. No performance
drawback. OTOH, if it's a user-defined one, it applys the software
volume attenuation.
So, we can simply add dmix to the definition of card's specific
default PCM. Take a look at alsa-lib/src/conf/cards/ICH.conf, for
example. I didn't do that at this time simply because dmix has
still a bit problems, which I'm currently trying to debug/improve...
> I know there are hacks like comparing the number of streams to the
> number of substreams, but what's the right way?
Yes, I think it's a way to check from an application.
Takashi
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-10 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-08 21:52 querying card properties Lee Revell
2005-01-10 11:39 ` 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.