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)
commitcf17a5ffd27234371d10748bf1c716ef172877f3
tree0a27d57f7d98d346b7c28c9f65d08e7b7d31639a
parent0f747bb273790f49be4660521d86d7cebd1bbe1e
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: 078a85f2806f ("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