]> git.karo-electronics.de Git - mv-sheeva.git/commit
ALSA: hda - Rewrite the mute-LED hook with vmaster hook in patch_sigmatel.c
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Mar 2012 11:30:22 +0000 (12:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Mar 2012 13:52:42 +0000 (14:52 +0100)
commit2faa3bf15ba69fa12bc53926b88982b3875abb3f
tree8186f1baa526ee5618393e14a9eb7fc40a029b80
parent29e5853d618282d8277ce8a8304f7424eb60deb5
ALSA: hda - Rewrite the mute-LED hook with vmaster hook in patch_sigmatel.c

The mute-LED is controlled in patch_sigmatel.c by (ab-)using the
powersave hook.  This can be now rewritten with the vmaster hook
instead, which is much simpler and can work even without
CONFIG_SND_HDA_POWER_SAVE kconfig.

A drawback is that the mute-LED corresponds _only_ to the Master mixer
switch instead of checking the whole DACs.  But usually this shouldn't
be a big problem as PA enables the mixer elements accordingly.

Also, this patch changes the code to create vmaster always even on
STAC9200 and STAC925x.  The former "Master" on these chips are renamed
as "PCM" now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c