hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
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);