Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
0002 /*
0003  * This file is provided under a dual BSD/GPLv2 license. When using or
0004  * redistributing this file, you may do so under either license.
0005  *
0006  * Copyright(c) 2021 Advanced Micro Devices, Inc. All rights reserved.
0007  *
0008  * Author: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
0009  */
0010 #ifndef __AMD_MACH_CONFIG_H
0011 #define __AMD_MACH_CONFIG_H
0012 
0013 #include <sound/soc-acpi.h>
0014 
0015 #define FLAG_AMD_SOF            BIT(1)
0016 #define FLAG_AMD_SOF_ONLY_DMIC      BIT(2)
0017 #define FLAG_AMD_LEGACY         BIT(3)
0018 
0019 #define ACP_PCI_DEV_ID          0x15E2
0020 
0021 extern struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[];
0022 extern struct snd_soc_acpi_mach snd_soc_acpi_amd_rmb_sof_machines[];
0023 
0024 struct config_entry {
0025     u32 flags;
0026     u16 device;
0027     const struct dmi_system_id *dmi_table;
0028 };
0029 
0030 #endif