diff --git a/sound/soc/rockchip/rockchip_multi_dais_pcm.c b/sound/soc/rockchip/rockchip_multi_dais_pcm.c index cf0c90d6734b..7a1c8cad5651 100644 --- a/sound/soc/rockchip/rockchip_multi_dais_pcm.c +++ b/sound/soc/rockchip/rockchip_multi_dais_pcm.c @@ -630,7 +630,6 @@ static int dmaengine_mpcm_hw_params(struct snd_soc_component *component, struct dma_slave_config slave_config; snd_pcm_format_t format; unsigned int *maps; - int frame_bytes; int ret, num, i, sz; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) @@ -638,7 +637,6 @@ static int dmaengine_mpcm_hw_params(struct snd_soc_component *component, else maps = pcm->mdais->capture_channel_maps; format = params_format(params); - frame_bytes = snd_pcm_format_size(format, params_channels(params)); num = pcm->mdais->num_dais; for (i = 0; i < num; i++) { @@ -661,11 +659,11 @@ static int dmaengine_mpcm_hw_params(struct snd_soc_component *component, sz = snd_pcm_format_size(format, maps[i]); if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { chan = pcm->tx_chans[i]; - if (sz && (frame_bytes - sz) > 0) + if (sz) slave_config.dst_maxburst = sz / slave_config.dst_addr_width; } else { chan = pcm->rx_chans[i]; - if (sz && (frame_bytes - sz) > 0) + if (sz) slave_config.src_maxburst = sz / slave_config.src_addr_width; } if (!chan)