Skip to content

Commit a2ba70c

Browse files
committed
ASoC: SOF: pcm: Invoke host_config op for AIF widgets only
In the case of hostless pipelines, there are no AIF-type widgets and the tone generator is the source of the pipeline. For such pipelines, skip setting the host config when setting the hw params. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent fed3d97 commit a2ba70c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static int sof_pcm_hw_params(struct snd_soc_component *component,
185185
}
186186

187187
/* set the host DMA ID */
188-
if (tplg_ops && tplg_ops->host_config)
188+
if (WIDGET_IS_AIF(host_widget->id) && tplg_ops && tplg_ops->host_config)
189189
tplg_ops->host_config(sdev, host_widget, platform_params);
190190
}
191191

0 commit comments

Comments
 (0)