ALSA: hda - More strict correction of invalid pinctl bits
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Jan 2013 07:56:46 +0000 (08:56 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:44:27 +0000 (08:44 +0100)
commit62f3a2f718131e6f42746ccd26dbf4eb5eab677a
treec578dd9728ee29fde924c8e957c4c3cef30e1f93
parentd7fdc00ae50b3dc02364301b334a6352c58e9e85
ALSA: hda - More strict correction of invalid pinctl bits

Check more strictly about the validity of pinctl values in
snd_hda_set_pin_ctl() and correct the wrong bits automatically.
Also provide the helper function to correct pinctl bits to codec
drivers.

This automatically fixes the invalid pinctl writes that are found in
a few Realtek fixups for NID 0x0f amp like ASUS A6Rp.

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