projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f24d93
)
ASoC: SOF: Intel: hda: use fallback for firmware name
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Mon, 11 Nov 2019 22:29:01 +0000
(16:29 -0600)
committer
Mark Brown
<broonie@kernel.org>
Tue, 12 Nov 2019 12:09:54 +0000
(12:09 +0000)
We have platforms such as CFL with no known I2S codec being used, and
the ACPI tables are currently empty, so fall-back to using the
firmware filename used in nocodec mode
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20191111222901.19892-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/intel/hda.c
b/sound/soc/sof/intel/hda.c
index 7dc0018dc4c3a4cae3f20abbbc7c8b545b6c5d49..91bd88fddac7aa5ab5ae03043d06003916b1b08e 100644
(file)
--- a/
sound/soc/sof/intel/hda.c
+++ b/
sound/soc/sof/intel/hda.c
@@
-415,9
+415,16
@@
static int hda_init_caps(struct snd_sof_dev *sdev)
pdata->tplg_filename =
hda_mach->sof_tplg_filename;
- /* firmware: pick the first in machine list */
+ /*
+ * firmware: pick the first in machine list,
+ * or use nocodec firmware name if list is empty
+ */
mach = pdata->desc->machines;
- pdata->fw_filename = mach->sof_fw_filename;
+ if (mach->id[0])
+ pdata->fw_filename = mach->sof_fw_filename;
+ else
+ pdata->fw_filename =
+ pdata->desc->nocodec_fw_filename;
dev_info(bus->dev, "using HDA machine driver %s now\n",
hda_mach->drv_name);