MLK-14254: ASoC: imx_pcm_rpmsg: fix cmd dropped by work queue
authorShengjiu Wang <shengjiu.wang@freescale.com>
Thu, 23 Feb 2017 07:54:20 +0000 (15:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:56 +0000 (15:21 -0500)
commit375d109c7a5de87305d8ddd7b41d5ad7b90b4061
tree9efd7a41e2e029b1bf139d93e5c6c09372f6b082
parentc1bbb6f2857670ecc9298f989a7c11469c4bd07f
MLK-14254: ASoC: imx_pcm_rpmsg: fix cmd dropped by work queue

The test case is to playback a bitstream, then repeat ctrl+z and fg,
several times later, the playback is failed to continue.

The reason is if the work is pending in work queue, send second time
of this work, the second work is dropped by work queue. so use one
work for one cmd is not fit for audio case. use a work loop for audio
cmd to fix this issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/fsl_rpmsg_i2s.h
sound/soc/fsl/imx-pcm-rpmsg.c