linux-brain/sound/hda
Kai Vehmanen d8ef7b57e9 ALSA: hda: do not override bus codec_mask in link_get()
[ Upstream commit 43bcb1c0507858cdc95e425017dcc33f8105df39 ]

snd_hdac_ext_bus_link_get() does not work correctly in case
there are multiple codecs on the bus. It unconditionally
resets the bus->codec_mask value. As per documentation in
hdaudio.h and existing use in client code, this field should
be used to store bit flag of detected codecs on the bus.

By overwriting value of the codec_mask, information on all
detected codecs is lost. No current user of hdac is impacted,
but use of bus->codec_mask is planned in future patches
for SOF.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200206200223.7715-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-11 14:14:47 +01:00
..
ext ALSA: hda: do not override bus codec_mask in link_get() 2020-03-11 14:14:47 +01:00
array.c ALSA: hda: Fix krealloc() with __GFP_ZERO usage 2016-08-03 15:17:22 +02:00
hda_bus_type.c ALSA: hda - Advertise MODALIAS in uevent 2015-10-20 10:15:53 +02:00
hdac_bus.c ALSA: hda: Fix potential race at unregistration and unsol events 2017-06-20 07:53:57 +02:00
hdac_component.c ALSA: hda: Make audio component support more generic 2018-07-17 22:25:48 +02:00
hdac_controller.c Revert "ALSA: hda: Flush interrupts on disabling" 2019-11-06 13:06:31 +01:00
hdac_device.c ALSA: hda: Fix implicit PCM format type conversion 2018-07-27 09:05:24 +02:00
hdac_i915.c ALSA: hda: Fix 1-minute detection delay when i915 module is not available 2019-08-06 19:06:54 +02:00
hdac_regmap.c ALSA: hda - Use a macro for snd_array iteration loops 2018-04-24 13:41:53 +02:00
hdac_stream.c ALSA: hda: Proper endian notations for BDL pointers 2018-07-27 09:06:01 +02:00
hdac_sysfs.c ASoC: Updates for v4.15 2017-11-13 15:45:57 +01:00
hdmi_chmap.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 16:38:43 +01:00
Kconfig ALSA: hda: Make audio component support more generic 2018-07-17 22:25:48 +02:00
local.h ASoC: Updates for v4.15 2017-11-13 15:45:57 +01:00
Makefile ALSA: hda: Make audio component support more generic 2018-07-17 22:25:48 +02:00
trace.c ALSA: hda - Re-add tracepoints to HD-audio core driver 2015-03-23 13:17:58 +01:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00