Skip to content

Commit 5d20265

Browse files
committed
ASoC: SOF: Intel: hda-dai: enhance debug messages
The same message was added twice for dai and link_dma, remove the latter one and add dai name and direction to better understand problematic sequences. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 39d78fc commit 5d20265

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sound/soc/sof/intel/hda-dai.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ static int hda_link_dma_trigger(struct snd_pcm_substream *substream, int cmd)
270270
struct hdac_ext_stream *hext_stream = snd_soc_dai_get_dma_data(cpu_dai, substream);
271271
int ret;
272272

273-
dev_dbg(cpu_dai->dev, "%s: cmd=%d\n", __func__, cmd);
274273
if (!hext_stream)
275274
return 0;
276275

@@ -420,13 +419,15 @@ static int ipc3_hda_dai_trigger(struct snd_pcm_substream *substream,
420419
struct snd_soc_dapm_widget *w;
421420
int ret;
422421

422+
dev_dbg(dai->dev, "%s: cmd=%d dai %s direction %d\n", __func__, cmd,
423+
dai->name, substream->stream);
424+
423425
ret = hda_link_dma_trigger(substream, cmd);
424426
if (ret < 0)
425427
return ret;
426428

427429
w = snd_soc_dai_get_widget(dai, substream->stream);
428430

429-
dev_dbg(dai->dev, "%s: cmd=%d\n", __func__, cmd);
430431
switch (cmd) {
431432
case SNDRV_PCM_TRIGGER_SUSPEND:
432433
case SNDRV_PCM_TRIGGER_STOP:

0 commit comments

Comments
 (0)