]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: hdmi-codec: unlock the device on startup errors
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 29 Apr 2019 13:29:39 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:16 +0000 (06:43 -0700)
commitde7a7a684318d483e5c26b6f7a34c7247e4cfed3
treef46c4d2f03b02f84155d3a8740f488f51ec9dff9
parent5360b29ee06bcc241770349368c7993e7ad7cb05
ASoC: hdmi-codec: unlock the device on startup errors

[ Upstream commit 30180e8436046344b12813dc954b2e01dfdcd22d ]

If the hdmi codec startup fails, it should clear the current_substream
pointer to free the device. This is properly done for the audio_startup()
callback but for snd_pcm_hw_constraint_eld().

Make sure the pointer cleared if an error is reported.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/hdmi-codec.c