ASoC: rockchip: mdais: Fix residue pop on DRAIN path

There is no need to refine pointer for playback.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iae94a26fbe7e4b667c7b666c80a26e43079263bf
This commit is contained in:
Sugar Zhang
2022-08-31 20:12:01 +08:00
committed by Tao Huang
parent d415a6ce86
commit 3d27419234

View File

@@ -598,6 +598,9 @@ static snd_pcm_uframes_t dmaengine_mpcm_pointer(struct snd_soc_component *compon
pos = buf_size - state.residue;
frames = bytes_to_frames(substream->runtime, pos);
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
return frames;
#ifdef CONFIG_SND_SOC_ROCKCHIP_VAD
if (prtd->vpos)
frames = bytes_to_frames(substream->runtime, prtd->vpos);