From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: <broonie@kernel.org>, <pierre-louis.bossart@linux.intel.com>,
<cezary.rojewski@intel.com>, <peter.ujfalusi@linux.intel.com>,
<yung-chuan.liao@linux.intel.com>, <kai.vehmanen@linux.intel.com>
Cc: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>,
<patches@opensource.cirrus.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>
Subject: [PATCH 10/10] ASoC: Intel: soc-acpi: Add CS35L56 Soundwire to TGL
Date: Fri, 17 Feb 2023 16:14:10 +0000 [thread overview]
Message-ID: <20230217161410.915202-11-rf@opensource.cirrus.com> (raw)
In-Reply-To: <20230217161410.915202-1-rf@opensource.cirrus.com>
This adds match entries for one or four CS35L56 on SDW0.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
.../intel/common/soc-acpi-intel-tgl-match.c | 57 +++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
index ef19150e7b2e..dae76c96d9fe 100644
--- a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
@@ -414,6 +414,51 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[] = {
};
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_machines);
+static const struct snd_soc_acpi_adr_device cs35l56_sdw0_adr[] = {
+ {
+ .adr = 0x00003001fa355601,
+ .num_endpoints = 1,
+ .endpoints = &single_endpoint,
+ .name_prefix = "AMP1"
+ },
+ {
+ .adr = 0x00003101fa355601,
+ .num_endpoints = 1,
+ .endpoints = &single_endpoint,
+ .name_prefix = "AMP2"
+ },
+ {
+ .adr = 0x00003201fa355601,
+ .num_endpoints = 1,
+ .endpoints = &single_endpoint,
+ .name_prefix = "AMP3"
+ },
+ {
+ .adr = 0x00003301fa355601,
+ .num_endpoints = 1,
+ .endpoints = &single_endpoint,
+ .name_prefix = "AMP4"
+ },
+};
+
+static const struct snd_soc_acpi_link_adr up_extreme_cs35l56_sdw0_one[] = {
+ {
+ .mask = BIT(0),
+ .num_adr = 1,
+ .adr_d = cs35l56_sdw0_adr,
+ },
+ {}
+};
+
+static const struct snd_soc_acpi_link_adr up_extreme_cs35l56_sdw0_four[] = {
+ {
+ .mask = BIT(0),
+ .num_adr = 4,
+ .adr_d = cs35l56_sdw0_adr,
+ },
+ {}
+};
+
/* this table is used when there is no I2S codec present */
struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
/* mockup tests need to be first */
@@ -501,6 +546,18 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
.drv_name = "sof_sdw",
.sof_tplg_filename = "sof-tgl-rt711.tplg",
},
+ {
+ .link_mask = BIT(0),
+ .links = up_extreme_cs35l56_sdw0_four,
+ .drv_name = "sof_sdw",
+ .sof_tplg_filename = "sof-tgl-cs35l56-sdw0.tplg"
+ },
+ {
+ .link_mask = BIT(0),
+ .links = up_extreme_cs35l56_sdw0_one,
+ .drv_name = "sof_sdw",
+ .sof_tplg_filename = "sof-tgl-cs35l56-sdw0.tplg"
+ },
{},
};
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_sdw_machines);
--
2.30.2
next prev parent reply other threads:[~2023-02-17 16:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 16:14 [PATCH 00/10] ASoC: Initial support for Cirrus Logic CS35L56 Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 01/10] firmware: cs_dsp: Introduce no_core_startstop for self-booting DSPs Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 02/10] ASoC: wm_adsp: Use no_core_startstop to prevent creating preload control Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 03/10] firmware: cs_dsp: Support DSPs that don't require firmware download Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 04/10] ASoC: wm_adsp: " Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 05/10] ASoC: wm_adsp: Expose the DSP boot work actions as wm_adsp_power_up() Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 06/10] ASoC: wm_adsp: Add support for loading bin files without wmfw Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 07/10] ASoC: wm_adsp: Simplify the logging of requested firmware files Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 08/10] ASoC: cs35l56: Add driver for Cirrus Logic CS35L56 Richard Fitzgerald
2023-02-21 16:45 ` Pierre-Louis Bossart
2023-02-21 17:18 ` Richard Fitzgerald
2023-02-21 17:58 ` Pierre-Louis Bossart
2023-02-22 11:16 ` Richard Fitzgerald
2023-02-17 16:14 ` [PATCH 09/10] ASoC: Intel: sof_sdw: Add support " Richard Fitzgerald
2023-02-21 16:49 ` Pierre-Louis Bossart
2023-02-21 17:32 ` Richard Fitzgerald
2023-02-21 18:03 ` Pierre-Louis Bossart
2023-02-22 11:39 ` Richard Fitzgerald
2023-02-17 16:14 ` Richard Fitzgerald [this message]
2023-02-21 16:52 ` [PATCH 10/10] ASoC: Intel: soc-acpi: Add CS35L56 Soundwire to TGL Pierre-Louis Bossart
2023-02-22 11:48 ` Richard Fitzgerald
2023-02-22 14:31 ` Pierre-Louis Bossart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230217161410.915202-11-rf@opensource.cirrus.com \
--to=rf@opensource.cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox