Skip to content

Commit 4d46b69

Browse files
committed
ASoC: SOF: Intel: hda-dai: skip tlv configuration for
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: The sof_ipc4_dma_config_tlv() call makes no sense in case of DSPless mode since it is a configuration for the firmware.
2 parents b7c4098 + 3b06e13 commit 4d46b69

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int non_hda_dai_hw_params_data(struct snd_pcm_substream *substream,
379379

380380
sdev = widget_to_sdev(w);
381381
if (sdev->dspless_mode_selected)
382-
goto skip_tlv;
382+
return 0;
383383

384384
/* get stream_id */
385385
hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream);
@@ -423,7 +423,6 @@ static int non_hda_dai_hw_params_data(struct snd_pcm_substream *substream,
423423
dma_config->dma_stream_channel_map.device_count = 1;
424424
dma_config->dma_priv_config_size = 0;
425425

426-
skip_tlv:
427426
return 0;
428427
}
429428

@@ -525,6 +524,9 @@ int sdw_hda_dai_hw_params(struct snd_pcm_substream *substream,
525524
return ret;
526525
}
527526

527+
if (sdev->dspless_mode_selected)
528+
return 0;
529+
528530
ipc4_copier = widget_to_copier(w);
529531
dma_config_tlv = &ipc4_copier->dma_config_tlv[cpu_dai_id];
530532
dma_config = &dma_config_tlv->dma_config;

0 commit comments

Comments
 (0)