Skip to content

Commit 7445cf6

Browse files
committed
ASoC: SOF: pcm: invoke the host_config op conditionally
In preparation for supporting hostless pipelines, invoke the host_config op conditionally only for AIF type widgets. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 8c3614d commit 7445cf6

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)