MLK-13980: ASoC: fsl_rpmsg_i2s: fix wrong cmd sent to M4 in suspend
authorShengjiu Wang <shengjiu.wang@freescale.com>
Thu, 16 Feb 2017 03:51:06 +0000 (11:51 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:43 +0000 (15:10 -0500)
This typo issue will cause that wrong cmd send to M4 side.

Fixes: 3e13a631aee0 ("MLK-13904-1: ASoC: fsl: add audio cpu dai driver base on rpmsg")

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

index 2768c65..c53807f 100644 (file)
@@ -200,7 +200,7 @@ static int fsl_rpmsg_i2s_suspend(struct device *dev)
        rpmsg_tx->header.cmd = I2S_TX_SUSPEND;
        i2s_send_message(rpmsg_tx, i2s_info);
 
-       rpmsg_tx->header.cmd = I2S_RX_SUSPEND;
+       rpmsg_rx->header.cmd = I2S_RX_SUSPEND;
        i2s_send_message(rpmsg_rx, i2s_info);
 
        return 0;
@@ -219,7 +219,7 @@ static int fsl_rpmsg_i2s_resume(struct device *dev)
        rpmsg_tx->header.cmd = I2S_TX_RESUME;
        i2s_send_message(rpmsg_tx, i2s_info);
 
-       rpmsg_tx->header.cmd = I2S_RX_RESUME;
+       rpmsg_rx->header.cmd = I2S_RX_RESUME;
        i2s_send_message(rpmsg_rx, i2s_info);
 
        return 0;