Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: Intel: soc-acpi-intel-lnl-match: Add rt722 support

This patch adds match table for rt722 multiple
function codec on link 0.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Chao Song <chao.song@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240208165545.93811-24-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chao Song and committed by
Mark Brown
7fa43af5 0bbb0136

+49
+49
sound/soc/intel/common/soc-acpi-intel-lnl-match.c
··· 51 51 }, 52 52 }; 53 53 54 + /* 55 + * RT722 is a multi-function codec, three endpoints are created for 56 + * its headset, amp and dmic functions. 57 + */ 58 + static const struct snd_soc_acpi_endpoint rt722_endpoints[] = { 59 + { 60 + .num = 0, 61 + .aggregated = 0, 62 + .group_position = 0, 63 + .group_id = 0, 64 + }, 65 + { 66 + .num = 1, 67 + .aggregated = 0, 68 + .group_position = 0, 69 + .group_id = 0, 70 + }, 71 + { 72 + .num = 2, 73 + .aggregated = 0, 74 + .group_position = 0, 75 + .group_id = 0, 76 + }, 77 + }; 78 + 54 79 static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = { 55 80 { 56 81 .adr = 0x000030025D071101ull, ··· 100 75 .num_endpoints = 1, 101 76 .endpoints = &single_endpoint, 102 77 .name_prefix = "rt712-dmic" 78 + } 79 + }; 80 + 81 + static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = { 82 + { 83 + .adr = 0x000030025d072201ull, 84 + .num_endpoints = ARRAY_SIZE(rt722_endpoints), 85 + .endpoints = rt722_endpoints, 86 + .name_prefix = "rt722" 103 87 } 104 88 }; 105 89 ··· 158 124 .mask = BIT(3), 159 125 .num_adr = ARRAY_SIZE(rt1712_3_single_adr), 160 126 .adr_d = rt1712_3_single_adr, 127 + }, 128 + {} 129 + }; 130 + 131 + static const struct snd_soc_acpi_link_adr lnl_rt722_only[] = { 132 + { 133 + .mask = BIT(0), 134 + .num_adr = ARRAY_SIZE(rt722_0_single_adr), 135 + .adr_d = rt722_0_single_adr, 161 136 }, 162 137 {} 163 138 }; ··· 233 190 .links = lnl_712_only, 234 191 .drv_name = "sof_sdw", 235 192 .sof_tplg_filename = "sof-lnl-rt712-l2-rt1712-l3.tplg", 193 + }, 194 + { 195 + .link_mask = BIT(0), 196 + .links = lnl_rt722_only, 197 + .drv_name = "sof_sdw", 198 + .sof_tplg_filename = "sof-lnl-rt722-l0.tplg", 236 199 }, 237 200 {}, 238 201 };