diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2023-11-29 14:53:15 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-29 13:25:04 +0000 |
commit | 014fdeb0d747304111cfecf93df4407c1a0c80db (patch) | |
tree | 53d568276c1e28e8ca302b7da7b23447b07b6f23 /sound/soc/sof/sof-audio.c | |
parent | 8c91ca76f44804868d12aed20ebdbc2f89aa7d60 (diff) | |
download | linux-stable-014fdeb0d747304111cfecf93df4407c1a0c80db.tar.gz linux-stable-014fdeb0d747304111cfecf93df4407c1a0c80db.tar.bz2 linux-stable-014fdeb0d747304111cfecf93df4407c1a0c80db.zip |
ASoC: SOF: Move sof_of_machine_select() to sof-of-dev.c from sof-audio.c
Move the sof_of_machine_select() function to sof-of-dev.c file and provide
an inline stub in case of non OF builds.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129125327.23708-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-audio.c')
-rw-r--r-- | sound/soc/sof/sof-audio.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sound/soc/sof/sof-audio.c b/sound/soc/sof/sof-audio.c index 563fe6f7789f..2198bb8e92c3 100644 --- a/sound/soc/sof/sof-audio.c +++ b/sound/soc/sof/sof-audio.c @@ -990,28 +990,6 @@ int sof_dai_get_bclk(struct snd_soc_pcm_runtime *rtd) } EXPORT_SYMBOL(sof_dai_get_bclk); -static struct snd_sof_of_mach *sof_of_machine_select(struct snd_sof_dev *sdev) -{ - struct snd_sof_pdata *sof_pdata = sdev->pdata; - const struct sof_dev_desc *desc = sof_pdata->desc; - struct snd_sof_of_mach *mach = desc->of_machines; - - if (!mach) - return NULL; - - for (; mach->compatible; mach++) { - if (of_machine_is_compatible(mach->compatible)) { - sof_pdata->tplg_filename = mach->sof_tplg_filename; - if (mach->fw_filename) - sof_pdata->fw_filename = mach->fw_filename; - - return mach; - } - } - - return NULL; -} - /* * SOF Driver enumeration. */ |