Skip to content

Commit 37679a1

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: ipc4-pcm: Use the snd_sof_pcm_get_dai_frame_counter() for pcm_delay
Switch to the new callback to retrieve the DAI (link) frame counter. Cc: [email protected] # 6.8 Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fd6f6a0 commit 37679a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sound/soc/sof/ipc4-pcm.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,11 +897,12 @@ static snd_pcm_sframes_t sof_ipc4_pcm_delay(struct snd_soc_component *component,
897897
}
898898

899899
/*
900-
* HDaudio links don't support the LLP counter reported by firmware
901-
* the link position is read directly from hardware registers.
900+
* If the LLP counter is not reported by firmware in the SRAM window
901+
* then read the dai (link) position via host accessible means if
902+
* available.
902903
*/
903904
if (!time_info->llp_offset) {
904-
tmp_ptr = snd_sof_pcm_get_stream_position(sdev, component, substream);
905+
tmp_ptr = snd_sof_pcm_get_dai_frame_counter(sdev, component, substream);
905906
if (!tmp_ptr)
906907
return 0;
907908
} else {

0 commit comments

Comments
 (0)