All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	vinod.koul@intel.com, broonie@kernel.org,
	Bard liao <yung-chuan.liao@linux.intel.com>,
	Rander Wang <rander.wang@linux.intel.com>
Subject: [PATCH 02/14] ASoC: Intel: soc-acpi: cnl: add support for rt5682 on SoundWire link2
Date: Fri, 21 Aug 2020 14:55:49 -0500	[thread overview]
Message-ID: <20200821195603.215535-3-pierre-louis.bossart@linux.intel.com> (raw)
In-Reply-To: <20200821195603.215535-1-pierre-louis.bossart@linux.intel.com>

Add one of the configurations for rt5682 w/ the Up Extreme Advanced
Audio mode using the SoundWire link2.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 .../intel/common/soc-acpi-intel-cnl-match.c   | 33 ++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/common/soc-acpi-intel-cnl-match.c b/sound/soc/intel/common/soc-acpi-intel-cnl-match.c
index 6a0bcc1a8429..7d61e0da808b 100644
--- a/sound/soc/intel/common/soc-acpi-intel-cnl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-cnl-match.c
@@ -27,8 +27,39 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[] = {
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
 
+static const struct snd_soc_acpi_endpoint single_endpoint = {
+	.num = 0,
+	.aggregated = 0,
+	.group_position = 0,
+	.group_id = 0,
+};
+
+static const struct snd_soc_acpi_adr_device rt5682_2_adr[] = {
+	{
+		.adr = 0x000220025D568200,
+		.num_endpoints = 1,
+		.endpoints = &single_endpoint,
+	}
+};
+
+static const struct snd_soc_acpi_link_adr up_extreme_rt5682_2[] = {
+	{
+		.mask = BIT(2),
+		.num_adr = ARRAY_SIZE(rt5682_2_adr),
+		.adr_d = rt5682_2_adr,
+	},
+	{}
+};
+
 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_sdw_machines[] = {
-	{},
+	{
+		.link_mask = BIT(2),
+		.links = up_extreme_rt5682_2,
+		.drv_name = "sof_sdw",
+		.sof_fw_filename = "sof-cnl.ri",
+		.sof_tplg_filename = "sof-cnl-rt5682-sdw2.tplg"
+	},
+	{}
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_sdw_machines);
 
-- 
2.25.1


  parent reply	other threads:[~2020-08-21 19:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-21 19:55 [PATCH 00/14] ASoC: Intel: machine driver updates for 5.10 Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 01/14] ASoC: Intel: modify SoundWire version id in acpi match table Pierre-Louis Bossart
2020-08-21 19:55 ` Pierre-Louis Bossart [this message]
2020-08-21 19:55 ` [PATCH 03/14] ASoC: Intel: sof-soundwire: add support for rt5682 on link2 Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 04/14] ASoC: Intel: soc-acpi: mirror CML and TGL configurations Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 05/14] ASoC: Intel: soc-acpi: add support for SDCA boards Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 06/14] ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case Pierre-Louis Bossart
2020-08-21 21:55   ` Mark Brown
2020-08-24 14:24     ` Pierre-Louis Bossart
2020-08-24 18:56       ` Mark Brown
2020-08-21 19:55 ` [PATCH 07/14] ASoC: codecs: max98373-sdw: add missing test on resume Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 08/14] ASoC: Intel: sof_sdw: check SoundWire version when matching codec Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 09/14] ASoC: Intel: sof_sdw: rename id as part_id Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 10/14] ASoC: Intel: sof_sdw: Add support for product Ripto Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 10/14] SoC: " Pierre-Louis Bossart
2020-08-21 19:55 ` [PATCH 11/14] ASoC: Intel: sof_rt5682: override quirk data for tgl_max98373_rt5682 Pierre-Louis Bossart
2020-08-21 19:56 ` [PATCH 12/14] ASoC: SOF: Add topology filename override based on dmi data match Pierre-Louis Bossart
2020-08-21 19:56 ` [PATCH 13/14] ASoC: intel: sof_sdw: add rt711 rt1316 rt714 SDCA codec support Pierre-Louis Bossart
2020-08-21 19:56 ` [PATCH 13/14] ASoC: Intel: " Pierre-Louis Bossart
2020-08-21 19:56 ` [PATCH 14/14] ASoC: Intel: sof_sdw: clean-up inclusion of header files Pierre-Louis Bossart
2020-08-24 13:31 ` [PATCH 00/14] ASoC: Intel: machine driver updates for 5.10 Mark Brown
2020-08-24 19:16 ` Mark Brown

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=20200821195603.215535-3-pierre-louis.bossart@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=rander.wang@linux.intel.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.