mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
6ace85b983
From current design in sof_machine_check and snd_sof_new_platform_drv, the SOF can only support ACPI type machine. 1. 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. 2. In snd_sof_new_platform_drv the component driver need a driver name to do ignore_machine, currently the driver name is obtained from machine->drv_name, and the type of machine is snd_soc_acpi_mach. 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> Link: https://lore.kernel.org/r/20220805070449.6611-2-chunxu.li@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
26 lines
626 B
C
26 lines
626 B
C
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
|
/*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
*
|
|
* Copyright 2021 NXP
|
|
*/
|
|
|
|
#ifndef __SOUND_SOC_SOF_OF_H
|
|
#define __SOUND_SOC_SOF_OF_H
|
|
|
|
struct snd_sof_of_mach {
|
|
const char *compatible;
|
|
const char *drv_name;
|
|
const char *fw_filename;
|
|
const char *sof_tplg_filename;
|
|
};
|
|
|
|
extern const struct dev_pm_ops sof_of_pm;
|
|
|
|
int sof_of_probe(struct platform_device *pdev);
|
|
int sof_of_remove(struct platform_device *pdev);
|
|
void sof_of_shutdown(struct platform_device *pdev);
|
|
|
|
#endif
|