forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-20 2e7bd41e4e8ab3d1efdabd9e263a2f7fe79bff8c
kernel/sound/soc/rockchip/rockchip_multi_dais_pcm.c
....@@ -601,6 +601,9 @@
601601 pos = buf_size - state.residue;
602602
603603 frames = bytes_to_frames(substream->runtime, pos);
604
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
605
+ return frames;
606
+
604607 #ifdef CONFIG_SND_SOC_ROCKCHIP_VAD
605608 if (prtd->vpos)
606609 frames = bytes_to_frames(substream->runtime, prtd->vpos);