* Possible bug in snd_mixer_selem_set_playback_switch_all
@ 2007-04-30 17:19 Tim Burrell
0 siblings, 0 replies; only message in thread
From: Tim Burrell @ 2007-04-30 17:19 UTC (permalink / raw)
To: alsa-devel
Hi there,
I've encountered a situation where if I very quickly, and repeatedly
make calls to snd_mixer_selem_set_playback_switch_all I get some strange
undefined behavior.
The situation is I'm looping over all mixer elements (on all sound
cards) to do a system wide mute / unmute. If I make numerous calls to
this function it ends up that some mixers only toggle switches on
specific channels (right or left), and sometimes the volume on certain
(random) channels gets set to some also random (usually 0, but can be
anywhere between 0 and max) level.
I've been able to remedy the situation by inserting a 10ms delay in
between calls to snd_mixer_selem_set_playback_switch_all. Clearly
though this is undesirable.
I don't have more than one sound card to test on so I can't be sure if
it's a problem with all drivers or just mine (hda-intel).
I can certainly provide more information if requested, just let me know
what I can do. Or if I'm doing something wrong I'd love to be made
aware of something I can do to fix this behavior.
Thanks,
Tim.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-30 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 17:19 Possible bug in snd_mixer_selem_set_playback_switch_all Tim Burrell
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.