[alsa-devel] [PATCH] - ALSA hda ad1988 - Add Independent HP Switch to model 6stack-dig-fp

Raymond Yau superquad.vortex2 at gmail.com
Tue Apr 19 02:12:57 CEST 2011


Add Independent HP Switch to model 6stack-dig-fp

allow user to switch Independent HP on/off by using ALSA specific "share
stream" mode

This don't need to make "Headphone Playback Volume" inactive but this also
mean that "Headphone Playback Volume" is no longer slave of the "Virtual
Master" any more


The alternative way is to use the audio selector 0x37 but there is
1) no simple mixer api for alsamixer to display an inactive "Headphone
Playback Volume" and active "Headphone Playback Switch"
2) no api to add/remove "Headphone Playback Volume" to/from the slave list
of "Virtual Master"

snd_hda_codec_write(codec, 0x37, 0, AC_VERB_SET_CONNECT_SEL,
spec->independent_hp ? 0x00 : 0x01 );
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Independent-HP-switch-to-6stack-dig-fp.patch
Type: application/octet-stream
Size: 3434 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20110419/04f4ccbc/attachment.dll 


More information about the Alsa-devel mailing list