MLK-17156-6: ASoC: imx-pcm-rpmsg: fix get codec data failed
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 6 Mar 2018 04:46:18 +0000 (12:46 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:12 +0000 (14:56 -0500)
commitd63b8212c096e4030a88476c8c18a86799bd7dc6
treeb03846d77cb4be50710d1e481f987d824e3c8a16
parent9feed19eac128a7340609ae7953859dfa9814067
MLK-17156-6: ASoC: imx-pcm-rpmsg: fix get codec data failed

Receive message is only used when the type is B. originally
we copy the receive message to revg_msg all the time, when
the message type is C, which will overide the revg_msg, which
cause the get codec data command return wrong value.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
sound/soc/fsl/imx-pcm-rpmsg.c