linux-hardened/sound/pci/hda
Takashi Iwai 52fd5cbc9b ALSA: hda - Check pincap while parsing the configuration
Sometimes (or rather often) BIOS sets the pin default configurations
obviously wrongly.  Looking through these failures, one common pattern
is to enable some dead pins that are usually marked as speaker pins.
In such a case, we can skip them if the pins don't have the output
capability.

In this patch, add a check for the valid pin cap bit for each parsed
pin, and filter out when it's invalid.

The fix was originally suggested by Raymond Yau.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-15 08:49:09 +01:00
..
hda_auto_parser.c ALSA: hda - Check pincap while parsing the configuration 2013-01-15 08:49:09 +01:00
hda_auto_parser.h ALSA: hda - Rearrange INPUT_PIN_ATTR_* 2013-01-12 08:30:48 +01:00
hda_beep.c ALSA: hda - Fix 'Beep Playback Switch' with no underlying mute switch 2012-08-14 10:22:31 +02:00
hda_beep.h ALSA: hda - Get rid of superfluous beep->mode field 2012-07-03 18:31:36 +02:00
hda_codec.c ALSA: hda - Protect user-defined arrays via mutex 2013-01-12 08:44:45 +01:00
hda_codec.h ALSA: hda - Protect user-defined arrays via mutex 2013-01-12 08:44:45 +01:00
hda_eld.c ALSA: hda - hide HDMI/ELD printks unless snd.debug=2 2012-04-10 14:53:55 +02:00
hda_generic.c ALSA: hda - Add capture_switch_hook to generic parser 2013-01-14 12:13:06 +01:00
hda_generic.h ALSA: hda - Add capture_switch_hook to generic parser 2013-01-14 12:13:06 +01:00
hda_hwdep.c ALSA: hda - Add snd_hda_get_int_hint() helper function 2013-01-12 08:44:47 +01:00
hda_intel.c ALSA: hda - Check CORB overflow 2013-01-12 08:33:56 +01:00
hda_intel_trace.h ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
hda_jack.c ALSA: hda - Allow jack detection when polling is enabled 2013-01-12 08:43:54 +01:00
hda_jack.h ALSA: hda - Allow jack state to depend on another jack 2012-11-19 19:49:58 +01:00
hda_local.h ALSA: hda - Add snd_hda_get_int_hint() helper function 2013-01-12 08:44:47 +01:00
hda_proc.c ALSA: hda - Fix mono amp values in proc output 2013-01-10 10:34:27 +01:00
hda_trace.h ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE 2012-08-30 07:50:13 -07:00
Kconfig ALSA: hda - Use generic parser for CA0110 codec 2013-01-12 08:44:53 +01:00
Makefile ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
patch_analog.c ALSA: hda - Remove snd_hda_codec_amp_update() call from patch_*.c 2013-01-10 10:34:30 +01:00
patch_ca0110.c ALSA: hda - Use generic parser for CA0110 codec 2013-01-12 08:44:53 +01:00
patch_ca0132.c ALSA: hda - don't create dysfunctional mixer controls for ca0132 2012-08-20 11:33:23 +02:00
patch_cirrus.c ALSA: hda - Move fixup code into struct hda_codec 2013-01-12 08:30:45 +01:00
patch_cmedia.c ALSA: hda - Use generic codec parser for C-Media codecs 2013-01-12 08:44:52 +01:00
patch_conexant.c ALSA: hda - Move fixup code into struct hda_codec 2013-01-12 08:30:45 +01:00
patch_hdmi.c ALSA: hda - bug fix for invalid connection list of Haswell HDMI codec pins 2012-12-18 11:05:36 +01:00
patch_realtek.c ALSA: hda/realtek - Generic mute LED implementation for HP laptops 2013-01-12 08:44:43 +01:00
patch_si3054.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
patch_sigmatel.c ALSA: hda - Add snd_hda_get_int_hint() helper function 2013-01-12 08:44:47 +01:00
patch_via.c ALSA: hda - Rearrange INPUT_PIN_ATTR_* 2013-01-12 08:30:48 +01:00