]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused
authorPatrick Lai <plai@codeaurora.org>
Sun, 1 Jan 2017 06:44:39 +0000 (22:44 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 6 Jan 2017 18:19:10 +0000 (18:19 +0000)
commit9f169b9f52a4afccdab7a7d2311b0c53a78a1e6b
tree717a662fd0cb8931ecafc165b7637926577be5b3
parenta5de5b74a50113564a1e0850e2da96c37c35e55d
ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused

When multiple front-ends are using the same back-end, putting state of a
front-end to STOP state upon receiving pause command will result in backend
stream getting released by DPCM framework unintentionally. In order to
avoid backend to be released when another active front-end stream is
present, put the stream state to PAUSED state instead of STOP state.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c