MLK-21461: ASoC: fsl_rpmsg_i2s: clear buffer pointer in i2s_send_message
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 16 Apr 2019 07:17:06 +0000 (15:17 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 07:21:03 +0000 (10:21 +0300)
commitedbbcdc07bf154df7fde5b989623bf13e3962c11
treeeee04959147a23d6afc032d36b66826f0f35634b
parentdbd18f067e1b38dc43a04c592116b1956bf92da3
MLK-21461: ASoC: fsl_rpmsg_i2s: clear buffer pointer in i2s_send_message

Reset the buffer pointer to be zero in i2s_send_message, actully we have
set the buffer pointer to be zero in imx_rpmsg_terminate_all.
But if there is timer task (I2S_TX_POINTER) queued in queue, after it is
executed the buffer pointer will be changed, this is timing issue that
the task in the queue is delayed. so need to reset it with TERMINATE
command.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 0a07dd454cbf85744677812e53fc5e86a48706bf)
sound/soc/fsl/fsl_rpmsg_i2s.c