]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:50:47 +0000 (14:50 +0900)
commit13860e97a649f6ff63c758f48ea72435541cf752
treee57846ed8a0a3254be63705cfffa50ac10e84c60
parent3d3965c408f850fd6c5f5d32340302586a331e87
ASoC: hdmi-codec: unlock the device on startup errors

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>
sound/soc/codecs/hdmi-codec.c