ALSA: hda - Introduce the bitmask for excluding output volume
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Nov 2013 15:32:01 +0000 (16:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:27:59 +0000 (11:27 -0800)
commit3dce9afa31a716edcc7012a0c4a40d18369fca82
tree010d03e9b196f7b076c6e69a590b149382eb9e41
parent204ed1297c6b91f75de720ae3ed6cb4ede61a24e
ALSA: hda - Introduce the bitmask for excluding output volume

commit a1114a8c681b0724d6ad905f53ff06aa756f5fb8 upstream.

Add a bitmask to hda_gen_spec indicating NIDs to exclude from the
possible volume controls.  That is, when the bit is set, the NID
corresponding to the bit won't be picked as an output volume control
any longer.

Basically this is just a band-aid for working around the issue found
with CS4208 codec, where only the headphone pin has a volume AMP with
different dB steps.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=60811
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/patch_cirrus.c