Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / sound / soc / intel / common / soc-acpi-intel-cnl-match.c
blobb80f032a8b76dd9cf4148d551d575f7ae006b57f
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * soc-acpi-intel-cnl-match.c - tables and support for CNL ACPI enumeration.
5 * Copyright (c) 2018, Intel Corporation.
7 */
9 #include <sound/soc-acpi.h>
10 #include <sound/soc-acpi-intel-match.h>
11 #include "../skylake/skl.h"
13 static struct skl_machine_pdata cnl_pdata = {
14 .use_tplg_pcm = true,
17 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[] = {
19 .id = "INT34C2",
20 .drv_name = "cnl_rt274",
21 .fw_filename = "intel/dsp_fw_cnl.bin",
22 .pdata = &cnl_pdata,
23 .sof_fw_filename = "sof-cnl.ri",
24 .sof_tplg_filename = "sof-cnl-rt274.tplg",
26 {},
28 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
30 static const struct snd_soc_acpi_endpoint single_endpoint = {
31 .num = 0,
32 .aggregated = 0,
33 .group_position = 0,
34 .group_id = 0,
37 static const struct snd_soc_acpi_adr_device rt5682_2_adr[] = {
39 .adr = 0x000220025D568200,
40 .num_endpoints = 1,
41 .endpoints = &single_endpoint,
42 .name_prefix = "rt5682"
46 static const struct snd_soc_acpi_link_adr up_extreme_rt5682_2[] = {
48 .mask = BIT(2),
49 .num_adr = ARRAY_SIZE(rt5682_2_adr),
50 .adr_d = rt5682_2_adr,
55 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_sdw_machines[] = {
57 .link_mask = BIT(2),
58 .links = up_extreme_rt5682_2,
59 .drv_name = "sof_sdw",
60 .sof_fw_filename = "sof-cnl.ri",
61 .sof_tplg_filename = "sof-cnl-rt5682-sdw2.tplg"
65 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_sdw_machines);
67 MODULE_LICENSE("GPL v2");
68 MODULE_DESCRIPTION("Intel Common ACPI Match module");