mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
47 lines
1.9 KiB
Diff
47 lines
1.9 KiB
Diff
![]() |
From 9cacc3eaf89aa0f5cd2cf68f810c8204fbaa114d Mon Sep 17 00:00:00 2001
|
||
|
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
||
|
Date: Tue, 8 Mar 2022 13:25:52 -0600
|
||
|
Subject: [PATCH 429/429] ASoC: soc-acpi: add information on I2S/TDM link mask
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
The platform driver may have information on which I2S/TDM link(s) to
|
||
|
enable in the machine driver. In the case of Intel devices, this may
|
||
|
be extracted from NHLT tables in platform firmware. This link
|
||
|
information is necessary to make sure machine driver and topology are
|
||
|
aligned.
|
||
|
|
||
|
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
||
|
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
||
|
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
|
||
|
Link: https://lore.kernel.org/r/20220308192610.392950-3-pierre-louis.bossart@linux.intel.com
|
||
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
||
|
---
|
||
|
include/sound/soc-acpi.h | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h
|
||
|
index 4664d80f8..d4fecd025 100644
|
||
|
--- a/include/sound/soc-acpi.h
|
||
|
+++ b/include/sound/soc-acpi.h
|
||
|
@@ -64,6 +64,7 @@ static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list(void *arg)
|
||
|
* @common_hdmi_codec_drv: use commom HDAudio HDMI codec driver
|
||
|
* @link_mask: SoundWire links enabled on the board
|
||
|
* @links: array of SoundWire link _ADR descriptors, null terminated
|
||
|
+ * @i2s_link_mask: I2S/TDM links enabled on the board
|
||
|
* @num_dai_drivers: number of elements in @dai_drivers
|
||
|
* @dai_drivers: pointer to dai_drivers, used e.g. in nocodec mode
|
||
|
*/
|
||
|
@@ -75,6 +76,7 @@ struct snd_soc_acpi_mach_params {
|
||
|
bool common_hdmi_codec_drv;
|
||
|
u32 link_mask;
|
||
|
const struct snd_soc_acpi_link_adr *links;
|
||
|
+ u32 i2s_link_mask;
|
||
|
u32 num_dai_drivers;
|
||
|
struct snd_soc_dai_driver *dai_drivers;
|
||
|
};
|
||
|
--
|
||
|
2.35.2
|
||
|
|