Re: [PATCH] ASoC: SOF: Introduce function sof_of_machine_select

From: AngeloGioacchino Del Regno
Date: Mon Sep 05 2022 - 03:49:01 EST


Il 03/09/22 05:21, Chunxu Li ha scritto:
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@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>