]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix power of pins used for mute LED with vrefs
authorTakashi Iwai <tiwai@suse.de>
Fri, 20 Mar 2015 17:11:05 +0000 (18:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Mar 2015 17:30:48 +0000 (18:30 +0100)
commit3782222f3fe4628f01a0b6b06a0e2732aedf4b89
tree7275155df0eb7b0783521830fcbba083a6171cb1
parentdcf46e13fc8fbd7d1f40105f8e7c7c221acfd457
ALSA: hda - Fix power of pins used for mute LED with vrefs

Some pins are used for controlling the LED with the VREF value.
This patch changes the power behavior of such pins to be constantly
up.  A new state, pin_fixed, is introduced to nid_path to indicate
that the path contains the fixed pin.  This improves also the
readability a bit for other static routes, too.

Then a helper function snd_hda_gen_fix_pin_power() is called from the
codec driver for such fixed pins, and it will create fake paths
containing only these pins with pin_fixed=1 flag.

Reported-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/patch_sigmatel.c