Path: blob/master/sound/soc/intel/common/soc-acpi-intel-nvl-match.c
38226 views
// SPDX-License-Identifier: GPL-2.0-only1/*2* soc-acpi-intel-nvl-match.c - tables and support for NVL ACPI enumeration.3*4* Copyright (c) 2025, Intel Corporation.5*6*/78#include <sound/soc-acpi.h>9#include <sound/soc-acpi-intel-match.h>10#include "soc-acpi-intel-sdw-mockup-match.h"1112struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_machines[] = {13{},14};15EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_nvl_machines);1617/*18* Multi-function codecs with three endpoints created for19* headset, amp and dmic functions.20*/21static const struct snd_soc_acpi_endpoint rt_mf_endpoints[] = {22{23.num = 0,24.aggregated = 0,25.group_position = 0,26.group_id = 0,27},28{29.num = 1,30.aggregated = 0,31.group_position = 0,32.group_id = 0,33},34{35.num = 2,36.aggregated = 0,37.group_position = 0,38.group_id = 0,39},40};4142static const struct snd_soc_acpi_adr_device rt722_3_single_adr[] = {43{44.adr = 0x000330025d072201ull,45.num_endpoints = ARRAY_SIZE(rt_mf_endpoints),46.endpoints = rt_mf_endpoints,47.name_prefix = "rt722"48}49};5051static const struct snd_soc_acpi_link_adr nvl_rt722_l3[] = {52{53.mask = BIT(3),54.num_adr = ARRAY_SIZE(rt722_3_single_adr),55.adr_d = rt722_3_single_adr,56},57{}58};5960/* this table is used when there is no I2S codec present */61struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_sdw_machines[] = {62/* mockup tests need to be first */63{64.link_mask = GENMASK(3, 0),65.links = sdw_mockup_headset_2amps_mic,66.drv_name = "sof_sdw",67.sof_tplg_filename = "sof-nvl-rt711-rt1308-rt715.tplg",68},69{70.link_mask = BIT(0) | BIT(1) | BIT(3),71.links = sdw_mockup_headset_1amp_mic,72.drv_name = "sof_sdw",73.sof_tplg_filename = "sof-nvl-rt711-rt1308-mono-rt715.tplg",74},75{76.link_mask = GENMASK(2, 0),77.links = sdw_mockup_mic_headset_1amp,78.drv_name = "sof_sdw",79.sof_tplg_filename = "sof-nvl-rt715-rt711-rt1308-mono.tplg",80},81{82.link_mask = BIT(3),83.links = nvl_rt722_l3,84.drv_name = "sof_sdw",85.sof_tplg_filename = "sof-nvl-rt722.tplg",86},87{},88};89EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_nvl_sdw_machines);909192