kernel_optimize_test/sound/pci/hda
Anssi Hannula 0bbaee3a58 ALSA: hda - Reset sample sizes and max bitrates when reading ELD
When a new HDMI/DP device is plugged in, hdmi_update_short_audio_desc()
is called for every SAD (Short Audio Descriptor) in the ELD data. For
LPCM coding type SAD defines the supported sample sizes. For several
other coding types (such as AC-3), a maximum bitrate is defined.

The maximum bitrate and sample size fields are not always cleared.
Therefore, if a device is unplugged and a different one is plugged in,
and the coding types of some SAD positions differ between the devices,
the old max_bitrate or sample_bits values will persist if the new SADs
do not define those values.

The leftover max_bitrate and sample_bits do not cause any issues other
than wrongly showing up in eld#X.Y procfs file and kernel log.

Fix that by always clearing sample_bits and max_bitrate when reading
SADs.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-12-08 08:36:20 +01:00
..
hda_beep.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hda_beep.h ALSA: hda - Fix beep_mode option value 2009-11-16 15:33:49 +01:00
hda_codec.c ALSA: hda - Disable sticky PCM stream assignment for AD codecs 2010-10-25 10:39:23 +02:00
hda_codec.h ALSA: hda - Disable sticky PCM stream assignment for AD codecs 2010-10-25 10:39:23 +02:00
hda_eld.c ALSA: hda - Reset sample sizes and max bitrates when reading ELD 2010-12-08 08:36:20 +01:00
hda_generic.c ALSA: hda - Improve the input source name labels 2010-09-09 16:46:03 +02:00
hda_hwdep.c ALSA: hda - Ensure codec patch files are checked for the correct codec ID 2010-07-26 10:28:01 +02:00
hda_intel.c ALSA: hda: Use position_fix=1 for Acer Aspire 5538 to enable capture on internal mic 2010-12-06 10:34:09 +01:00
hda_local.h ALSA: HDA: Sigmatel: work around incorrect master muting 2010-10-17 10:45:30 +02:00
hda_proc.c ALSA: hda-intel - do not mix audio and modem function IDs 2010-07-19 16:46:56 +02:00
Kconfig ALSA: hda - Merge all HDMI modules into the unified module 2010-09-20 10:02:29 +02:00
Makefile ALSA: hda - Merge all HDMI modules into the unified module 2010-09-20 10:02:29 +02:00
patch_analog.c ALSA: hda - Disable sticky PCM stream assignment for AD codecs 2010-10-25 10:39:23 +02:00
patch_ca0110.c ALSA: hda - Fix wrong SPDIF NID assignment for CA0110 2010-10-21 08:55:13 +02:00
patch_cirrus.c ALSA: hda - MacBookAir3,1(3,2) alsa support 2010-11-03 08:15:40 +01:00
patch_cmedia.c ALSA: hda - Fix NID association for capture mixers 2009-12-23 08:38:28 +01:00
patch_conexant.c ALSA: hda - Enable jack sense for Thinkpad Edge 13 2010-12-04 08:58:36 +01:00
patch_hdmi.c ALSA: hda - Do not wrongly restrict min_channels based on ELD 2010-12-07 20:12:58 +01:00
patch_realtek.c ALSA: hda: Use model=lg quirk for LG P1 Express to enable playback and capture 2010-12-03 11:28:01 +01:00
patch_si3054.c ALSA: hda - add more NID->Control mapping 2009-12-15 09:33:04 +01:00
patch_sigmatel.c ALSA: hda: Use "alienware" model quirk for another SSID 2010-12-02 08:06:00 +01:00
patch_via.c ALSA: hda - Improve the input source name labels 2010-09-09 16:46:03 +02:00