LF-3724-5: ASoC: fsl_asrc_m2m: clear peripheral_config
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 29 Mar 2021 02:22:12 +0000 (10:22 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 21 Apr 2021 08:00:08 +0000 (16:00 +0800)
clear peripheral_config

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
sound/soc/fsl/fsl_asrc_m2m.c

index a4dcd9b..411f132 100644 (file)
@@ -188,6 +188,7 @@ static int fsl_asrc_dmaconfig(struct fsl_asrc_pair *pair, struct dma_chan *chan,
                return -EINVAL;
        }
 
+       memset(&slave_config, 0, sizeof(slave_config));
        if (dir == IN) {
                slave_config.direction = DMA_MEM_TO_DEV;
                slave_config.dst_addr = dma_addr;