Message ID | 20210826051000.10240-2-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | alsa: the soundwire audio doesn't work on the Dell TGL-H machines | expand |
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index de6bc501f1b5..b4397f13891b 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -1174,7 +1174,10 @@ static int hda_sdw_machine_select(struct snd_sof_dev *sdev) mach->mach_params.links = mach->links; mach->mach_params.link_mask = mach->link_mask; mach->mach_params.platform = dev_name(sdev->dev); - pdata->fw_filename = mach->sof_fw_filename; + if (mach->sof_fw_filename) + pdata->fw_filename = mach->sof_fw_filename; + else + pdata->fw_filename = pdata->desc->default_fw_filename; pdata->tplg_filename = mach->sof_tplg_filename; } else { dev_info(sdev->dev,