[alsa-devel] proper use of snd_mixer_selem_set_capture_switch ?

Jaroslav Kysela perex at perex.cz
Fri Sep 5 09:38:36 CEST 2008


On Thu, 4 Sep 2008, Aaron J. Grier wrote:

> does anyone have a good example or walkthrough how to change capture
> sources?  I'm having a heck of a time.
> 
> I feel I must be missing something obvious, like a flush operation, or
> something very simple.  who knew changing a mux could be such an
> involved procedure?  (=

snd_mixer_handle_events() is your friend, otherwise values are cached in 
alsa-lib. Or maybe, you reached a bug ;-) Let me know, if mentioned 
function does not fix your problem.

					Jaroslav

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list