]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Check for NULL widget in dapm_update_dai_unlocked
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 6 Feb 2019 11:13:59 +0000 (11:13 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 15:42:27 +0000 (15:42 +0000)
commitd5b3821a12972d0c0bc51db84ba374b9e8c7654c
tree0a27d57f7d98d346b7c28c9f65d08e7b7d31639a
parent0d8ddf2c9e8fe9b1de9e4c800628b2da066dc77b
ASoC: dapm: Check for NULL widget in dapm_update_dai_unlocked

DAIs linked to the dummy will not have an associated playback/capture
widget, so we need to skip the update in that case.

Fixes: a427b63733b7 ("ASoC: dapm: Only power up active channels from a DAI")
Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c