]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: allow start or stop during pause for backend
author이경택 <gt82.lee@samsung.com>
Wed, 1 Apr 2020 01:04:21 +0000 (10:04 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2020 11:06:27 +0000 (12:06 +0100)
commitb51219330f6d7f067e0bb5edfe85a3a3f75ca9eb
tree65911ea8cf241e54587af7ec6c0a625de519907d
parent55a8b38b0b7d1d06410b759c97f99ceaaa08a6f3
ASoC: dpcm: allow start or stop during pause for backend

soc_compr_trigger_fe() allows start or stop after pause_push.
In dpcm_be_dai_trigger(), however, only pause_release is allowed
command after pause_push.
So, start or stop after pause in compress offload is always
returned as error if the compress offload is used with dpcm.
To fix the problem, SND_SOC_DPCM_STATE_PAUSED should be allowed
for start or stop command.

Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/004d01d607c1$7a3d5250$6eb7f6f0$@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c