Skip to content

Commit e7ae91a

Browse files
committed
fixup! ASoC: SOF: ipc4-pcm: do not report invalid delay values
use the new spcm_dbg_ratelimited(), the patch needs to be picked and sent alongside of this... spcm prints help to add context, so we know which PCM reports the incorrect delay. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 49b936d commit e7ae91a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/soc/sof/ipc4-pcm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,8 +1269,9 @@ static int sof_ipc4_pcm_pointer(struct snd_soc_component *component,
12691269
time_info->delay = head_cnt - tail_cnt;
12701270

12711271
if (time_info->delay > DELAY_MAX) {
1272-
dev_dbg_ratelimited(sdev->dev,
1273-
"inaccurate delay, host %llu dai_cnt %llu", host_cnt, dai_cnt);
1272+
spcm_dbg_ratelimited(spcm, substream->stream,
1273+
"inaccurate delay, host %llu dai_cnt %llu", host_cnt,
1274+
dai_cnt);
12741275
time_info->delay = 0;
12751276
}
12761277

0 commit comments

Comments
 (0)