sound/soc/amd/acp-config.c
Source file repositories/reference/linux-study-clean/sound/soc/amd/acp-config.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/amd/acp-config.c- Extension
.c- Size
- 8520 bytes
- Lines
- 365
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/acpi.hlinux/bits.hlinux/dmi.hlinux/module.hlinux/pci.h../sof/amd/acp.hmach-config.h
Detected Declarations
function DMI_MATCHfunction snd_amd_acp_acpi_find_configfunction snd_amd_acp_find_configexport snd_amd_acp_find_configexport snd_soc_acpi_amd_sof_machinesexport snd_soc_acpi_amd_vangogh_sof_machinesexport snd_soc_acpi_amd_rmb_sof_machinesexport snd_soc_acpi_amd_acp63_sof_machinesexport snd_soc_acpi_amd_acp70_sof_machines
Annotated Snippet
else if (pci->revision >= ACP_7_0_REV) {
if (dmi_check_system(acp70_acpi_flag_override_table))
return 0;
return snd_amd_acp_acpi_find_config(pci);
}
for (i = 0; i < ARRAY_SIZE(config_table); i++, table++) {
if (table->device != device)
continue;
if (table->dmi_table && !dmi_check_system(table->dmi_table))
continue;
acp_quirk_data = table->flags;
return table->flags;
}
return 0;
}
EXPORT_SYMBOL(snd_amd_acp_find_config);
static struct snd_soc_acpi_codecs amp_rt1019 = {
.num_codecs = 1,
.codecs = {"10EC1019"}
};
static struct snd_soc_acpi_codecs amp_max = {
.num_codecs = 1,
.codecs = {"MX98360A"}
};
static struct snd_soc_acpi_codecs amp_max98388 = {
.num_codecs = 1,
.codecs = {"ADS8388"}
};
struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[] = {
{
.id = "10EC5682",
.drv_name = "rt5682-rt1019",
.pdata = (void *)&acp_quirk_data,
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &_rt1019,
.fw_filename = "sof-rn.ri",
.sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg",
},
{
.id = "10EC5682",
.drv_name = "rt5682-max",
.pdata = (void *)&acp_quirk_data,
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &_max,
.fw_filename = "sof-rn.ri",
.sof_tplg_filename = "sof-rn-rt5682-max98360.tplg",
},
{
.id = "RTL5682",
.drv_name = "rt5682s-max",
.pdata = (void *)&acp_quirk_data,
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &_max,
.fw_filename = "sof-rn.ri",
.sof_tplg_filename = "sof-rn-rt5682-max98360.tplg",
},
{
.id = "RTL5682",
.drv_name = "rt5682s-rt1019",
.pdata = (void *)&acp_quirk_data,
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &_rt1019,
.fw_filename = "sof-rn.ri",
.sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg",
},
{
.id = "AMDI1019",
.drv_name = "renoir-dsp",
.pdata = (void *)&acp_quirk_data,
.fw_filename = "sof-rn.ri",
.sof_tplg_filename = "sof-acp.tplg",
},
{},
};
EXPORT_SYMBOL(snd_soc_acpi_amd_sof_machines);
struct snd_soc_acpi_mach snd_soc_acpi_amd_vangogh_sof_machines[] = {
{
.id = "NVTN2020",
.drv_name = "nau8821-max",
.pdata = &acp_quirk_data,
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &_max98388,
.fw_filename = "sof-vangogh.ri",
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bits.h`, `linux/dmi.h`, `linux/module.h`, `linux/pci.h`, `../sof/amd/acp.h`, `mach-config.h`.
- Detected declarations: `function DMI_MATCH`, `function snd_amd_acp_acpi_find_config`, `function snd_amd_acp_find_config`, `export snd_amd_acp_find_config`, `export snd_soc_acpi_amd_sof_machines`, `export snd_soc_acpi_amd_vangogh_sof_machines`, `export snd_soc_acpi_amd_rmb_sof_machines`, `export snd_soc_acpi_amd_acp63_sof_machines`, `export snd_soc_acpi_amd_acp70_sof_machines`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.