ASoC: skip hw_free on codec dai for which the stream is invalid
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 29 Apr 2019 09:47:50 +0000 (11:47 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:52:31 +0000 (14:52 +0900)
commitf47b9ad927c6370b80922af434dda98764a43804
treee68aa6e2ed9f287e4820b96f36780957a251e996
parent6a7c59c6d9f3b280e81d7a04bbe4e55e90152dce
ASoC: skip hw_free on codec dai for which the stream is invalid

Like for hw_params, hw_free should not be called on codec dai for
which the current stream is invalid.

Fixes: cde79035c6cf ("ASoC: Handle multiple codecs with split playback / capture")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c