]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Introduce function sof_of_machine_select
authorChunxu Li <chunxu.li@mediatek.com>
Sat, 3 Sep 2022 03:21:51 +0000 (11:21 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 12:09:40 +0000 (13:09 +0100)
commit92828e4b3dd1cb40c78d13f88d6834560eb3f1c9
treee2a5b05477debf86e06aca5713e5d70a69d4f6f4
parentb6763868af6b8bb793d8490741d9f5a523c5288d
ASoC: SOF: Introduce function sof_of_machine_select

From current design in sof_machine_check the SOF can only support
ACPI type machine.

In sof_machine_check if there is no ACPI machine exist, the function
will return -ENODEV directly, that's we don't expected if we do not
base on ACPI machine.

So we add a new function named sof_of_machine_select that we can pass
sof_machine_check and obtain info required by snd_sof_new_platform_drv.

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220903032151.13664-1-chunxu.li@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-audio.c