Skip to content

Commit bde1c98

Browse files
ujfalusiopsiff
authored andcommitted
ASoC: SOF: ipc4-pcm: Delay reporting is only supported for playback direction
commit 98db16f upstream. 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: stable@vger.kernel.org Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Link: https://patch.msgid.link/20250509085951.15696-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit 98db16f) [Guan Wentao: stable commit b5bada85c181fef06bafc61f0677577d54013601 not match our context, use upstream version. ] Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent aead87b commit bde1c98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/sof/ipc4-pcm.c

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

795795
spcm->stream[stream].private = stream_priv;
796796

797-
if (!support_info)
797+
/* Delay reporting is only supported on playback */
798+
if (!support_info || stream == SNDRV_PCM_STREAM_CAPTURE)
798799
continue;
799800

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

0 commit comments

Comments
 (0)