mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user