Skip to content

Commit 98db16f

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: ipc4-pcm: Delay reporting is only supported for playback direction
The firmware does not provide any information for capture streams via the shared pipeline registers. To avoid reporting invalid delay value for capture streams to user space we need to disable it. Fixes: af74dbd ("ASoC: SOF: ipc4-pcm: allocate time info for pcm delay feature") Cc: [email protected] Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Liam Girdwood <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4d14b10 commit 98db16f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/sof/ipc4-pcm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,8 @@ static int sof_ipc4_pcm_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm
798798

799799
spcm->stream[stream].private = stream_priv;
800800

801-
if (!support_info)
801+
/* Delay reporting is only supported on playback */
802+
if (!support_info || stream == SNDRV_PCM_STREAM_CAPTURE)
802803
continue;
803804

804805
time_info = kzalloc(sizeof(*time_info), GFP_KERNEL);

0 commit comments

Comments
 (0)