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)
commit354f6008b730a217a3e6ad982eda42e90e6f7473
treee2a5b05477debf86e06aca5713e5d70a69d4f6f4
parent35c8ae25c4fdeabf490e005692795a3be17ca5f6
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