summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2010-12-07 22:19:23 +0300
committerTakashi Iwai <tiwai@suse.de>2010-12-08 10:36:20 +0300
commit0bbaee3a58c379c4f7bab9635c71d7bad9c422a2 (patch)
tree143b422842c08ce1deb32fc78529924a24b26823 /scripts
parent3dc86429032910bdf762adeb2969112bb303924c (diff)
downloadlinux-0bbaee3a58c379c4f7bab9635c71d7bad9c422a2.tar.xz
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions