Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: imx: Add devicetree support to select topologies

We describe tplg_file_name and drv_name using snd_sof_of_mach
array and select correct machine description based on dts compatible
string.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://msgid.link/r/20240212125258.420265-1-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Daniel Baluta and committed by
Mark Brown
2b9cdef1 f7fc624b

+36
+16
sound/soc/sof/imx/imx8.c
··· 607 607 SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 608 608 }; 609 609 610 + static struct snd_sof_of_mach sof_imx8_machs[] = { 611 + { 612 + .compatible = "fsl,imx8qxp-mek", 613 + .sof_tplg_filename = "sof-imx8-wm8960.tplg", 614 + .drv_name = "asoc-audio-graph-card2", 615 + }, 616 + { 617 + .compatible = "fsl,imx8qm-mek", 618 + .sof_tplg_filename = "sof-imx8-wm8960.tplg", 619 + .drv_name = "asoc-audio-graph-card2", 620 + }, 621 + {} 622 + }; 623 + 610 624 static struct sof_dev_desc sof_of_imx8qxp_desc = { 625 + .of_machines = sof_imx8_machs, 611 626 .ipc_supported_mask = BIT(SOF_IPC_TYPE_3), 612 627 .ipc_default = SOF_IPC_TYPE_3, 613 628 .default_fw_path = { ··· 639 624 }; 640 625 641 626 static struct sof_dev_desc sof_of_imx8qm_desc = { 627 + .of_machines = sof_imx8_machs, 642 628 .ipc_supported_mask = BIT(SOF_IPC_TYPE_3), 643 629 .ipc_default = SOF_IPC_TYPE_3, 644 630 .default_fw_path = {
+10
sound/soc/sof/imx/imx8m.c
··· 476 476 SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, 477 477 }; 478 478 479 + static struct snd_sof_of_mach sof_imx8mp_machs[] = { 480 + { 481 + .compatible = "fsl,imx8mp-evk", 482 + .sof_tplg_filename = "sof-imx8mp-wm8960.tplg", 483 + .drv_name = "asoc-audio-graph-card2", 484 + }, 485 + {} 486 + }; 487 + 479 488 static struct sof_dev_desc sof_of_imx8mp_desc = { 489 + .of_machines = sof_imx8mp_machs, 480 490 .ipc_supported_mask = BIT(SOF_IPC_TYPE_3), 481 491 .ipc_default = SOF_IPC_TYPE_3, 482 492 .default_fw_path = {
+10
sound/soc/sof/imx/imx8ulp.c
··· 476 476 .set_power_state = imx8ulp_dsp_set_power_state, 477 477 }; 478 478 479 + static struct snd_sof_of_mach sof_imx8ulp_machs[] = { 480 + { 481 + .compatible = "fsl,imx8ulp-evk", 482 + .sof_tplg_filename = "sof-imx8ulp-btsco.tplg", 483 + .drv_name = "asoc-audio-graph-card2", 484 + }, 485 + {} 486 + }; 487 + 479 488 static struct sof_dev_desc sof_of_imx8ulp_desc = { 489 + .of_machines = sof_imx8ulp_machs, 480 490 .ipc_supported_mask = BIT(SOF_IPC_TYPE_3), 481 491 .ipc_default = SOF_IPC_TYPE_3, 482 492 .default_fw_path = {