]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: fix the BE state on hw_free
authorVinod Koul <vinod.koul@intel.com>
Mon, 1 Feb 2016 16:56:40 +0000 (22:26 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 2 Feb 2016 19:23:15 +0000 (19:23 +0000)
commit38049e8039c7e241db037288ee76f6960c1f7020
treeff894e160223dde38be534fd394a927a76cb4b41
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
ASoC: dpcm: fix the BE state on hw_free

While performing hw_free, DPCM checks the BE state but leaves out
the suspend state. The suspend state needs to be checked as well,
as we might be suspended and then usermode closes rather than
resuming the audio stream.

This was found by a stress testing of system with playback in
loop and killed after few seconds running in background and second
script running suspend-resume test in loop

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/soc-pcm.c