OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:50 +0000 (18:59 -0700)
commit007dffc661cf20f9e924eccc7b161ce2419ba81b
tree0afb9273b62599fe0619018cefe814699220f36f
parent27ef0283b60ecb0445a7530db1f3a997ce89715a
ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused

[ Upstream commit 9f169b9f52a4afccdab7a7d2311b0c53a78a1e6b ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-pcm.c