forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
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);