I need to control the audio output device at run time :
1) Main Speaker only
2) Headphone Only
3) Headphone + Main Speaker both together
My application take run time decision to switch among above combinations. What ALSA API should I use for above purpose.
(I use Linux 3.0, ALSA, C, TI tlv320aic3x , ARM).
You may use this:
which sets value of playback volume control of a mixer simple element.
here is a source code example: