~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/intel/common/soc-acpi-intel-arl-match.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  * soc-apci-intel-arl-match.c - tables and support for ARL ACPI enumeration.
  4  *
  5  * Copyright (c) 2023 Intel Corporation.
  6  */
  7 
  8 #include <sound/soc-acpi.h>
  9 #include <sound/soc-acpi-intel-match.h>
 10 
 11 static const struct snd_soc_acpi_endpoint single_endpoint = {
 12         .num = 0,
 13         .aggregated = 0,
 14         .group_position = 0,
 15         .group_id = 0,
 16 };
 17 
 18 static const struct snd_soc_acpi_endpoint cs42l43_endpoints[] = {
 19         { /* Jack Playback Endpoint */
 20                 .num = 0,
 21                 .aggregated = 0,
 22                 .group_position = 0,
 23                 .group_id = 0,
 24         },
 25         { /* DMIC Capture Endpoint */
 26                 .num = 1,
 27                 .aggregated = 0,
 28                 .group_position = 0,
 29                 .group_id = 0,
 30         },
 31         { /* Jack Capture Endpoint */
 32                 .num = 2,
 33                 .aggregated = 0,
 34                 .group_position = 0,
 35                 .group_id = 0,
 36         },
 37         { /* Speaker Playback Endpoint */
 38                 .num = 3,
 39                 .aggregated = 0,
 40                 .group_position = 0,
 41                 .group_id = 0,
 42         },
 43 };
 44 
 45 static const struct snd_soc_acpi_adr_device cs42l43_0_adr[] = {
 46         {
 47                 .adr = 0x00003001FA424301ull,
 48                 .num_endpoints = ARRAY_SIZE(cs42l43_endpoints),
 49                 .endpoints = cs42l43_endpoints,
 50                 .name_prefix = "cs42l43"
 51         }
 52 };
 53 
 54 static const struct snd_soc_acpi_adr_device rt711_0_adr[] = {
 55         {
 56                 .adr = 0x000020025D071100ull,
 57                 .num_endpoints = 1,
 58                 .endpoints = &single_endpoint,
 59                 .name_prefix = "rt711"
 60         }
 61 };
 62 
 63 static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
 64         {
 65                 .adr = 0x000030025D071101ull,
 66                 .num_endpoints = 1,
 67                 .endpoints = &single_endpoint,
 68                 .name_prefix = "rt711"
 69         }
 70 };
 71 
 72 static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = {
 73         {
 74                 .mask = BIT(0),
 75                 .num_adr = ARRAY_SIZE(cs42l43_0_adr),
 76                 .adr_d = cs42l43_0_adr,
 77         },
 78 };
 79 
 80 static const struct snd_soc_acpi_link_adr arl_rvp[] = {
 81         {
 82                 .mask = BIT(0),
 83                 .num_adr = ARRAY_SIZE(rt711_0_adr),
 84                 .adr_d = rt711_0_adr,
 85         },
 86         {}
 87 };
 88 
 89 static const struct snd_soc_acpi_link_adr arl_sdca_rvp[] = {
 90         {
 91                 .mask = BIT(0),
 92                 .num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
 93                 .adr_d = rt711_sdca_0_adr,
 94         },
 95         {}
 96 };
 97 
 98 struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_machines[] = {
 99         {},
100 };
101 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_arl_machines);
102 
103 /* this table is used when there is no I2S codec present */
104 struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
105         {
106                 .link_mask = BIT(0),
107                 .links = arl_cs42l43_l0,
108                 .drv_name = "sof_sdw",
109                 .sof_tplg_filename = "sof-arl-cs42l43-l0.tplg",
110         },
111         {
112                 .link_mask = 0x1, /* link0 required */
113                 .links = arl_rvp,
114                 .drv_name = "sof_sdw",
115                 .sof_tplg_filename = "sof-arl-rt711.tplg",
116         },
117         {
118                 .link_mask = 0x1, /* link0 required */
119                 .links = arl_sdca_rvp,
120                 .drv_name = "sof_sdw",
121                 .sof_tplg_filename = "sof-arl-rt711-l0.tplg",
122         },
123         {},
124 };
125 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_arl_sdw_machines);
126 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php