diff options
author | Libin Yang | 2021-12-21 09:08:16 +0800 |
---|---|---|
committer | Takashi Iwai | 2021-12-22 20:17:37 +0100 |
commit | 385f287f9853da402d94278e59f594501c1d1dad (patch) | |
tree | af7fd09adc9ccbc5317ce064bad5a746c405ab1f /sound/isa/gus | |
parent | b6fd77472dea76b7a2bad3a338ade920152972b8 (diff) |
ALSA: hda: intel-sdw-acpi: harden detection of controller
The existing code currently sets a pointer to an ACPI handle before
checking that it's actually a SoundWire controller. This can lead to
issues where the graph walk continues and eventually fails, but the
pointer was set already.
This patch changes the logic so that the information provided to
the caller is set when a controller is found.
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20211221010817.23636-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus')
0 files changed, 0 insertions, 0 deletions