All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: linux-sound@vger.kernel.org
Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org,
	mosomate <mosomate@gmail.com>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [PATCH 19/24] ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops
Date: Thu,  8 Feb 2024 10:55:40 -0600	[thread overview]
Message-ID: <20240208165545.93811-20-pierre-louis.bossart@linux.intel.com> (raw)
In-Reply-To: <20240208165545.93811-1-pierre-louis.bossart@linux.intel.com>

From: mosomate <mosomate@gmail.com>

Added DMI quirk to handle the rebranded variants of Intel NUC M15
(LAPRC710) laptops. The DMI matching is based on motherboard
attributes.

Link: https://github.com/thesofproject/linux/issues/4218
Signed-off-by: Máté Mosonyi <mosomate@gmail.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 drivers/soundwire/dmi-quirks.c   |  8 ++++++++
 sound/soc/intel/boards/sof_sdw.c | 11 +++++++++++
 2 files changed, 19 insertions(+)

diff --git a/drivers/soundwire/dmi-quirks.c b/drivers/soundwire/dmi-quirks.c
index 9ebdd0cd0b1c..91ab97a456fa 100644
--- a/drivers/soundwire/dmi-quirks.c
+++ b/drivers/soundwire/dmi-quirks.c
@@ -130,6 +130,14 @@ static const struct dmi_system_id adr_remap_quirk_table[] = {
 		},
 		.driver_data = (void *)intel_rooks_county,
 	},
+	{
+		/* quirk used for NUC15 LAPRC710 skew */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_BOARD_NAME, "LAPRC710"),
+		},
+		.driver_data = (void *)intel_rooks_county,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"),
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index 801cfe9c4dd3..e4b9f4d1ec06 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -236,6 +236,17 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
 					SOF_SDW_PCH_DMIC |
 					RT711_JD2_100K),
 	},
+	{
+		/* NUC15 LAPRC710 skews */
+		.callback = sof_sdw_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_BOARD_NAME, "LAPRC710"),
+		},
+		.driver_data = (void *)(SOF_SDW_TGL_HDMI |
+					SOF_SDW_PCH_DMIC |
+					RT711_JD2_100K),
+	},
 	/* TigerLake-SDCA devices */
 	{
 		.callback = sof_sdw_quirk_cb,
-- 
2.40.1


  parent reply	other threads:[~2024-02-08 16:56 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08 16:55 [PATCH 00/24] ASoC: Intel: Machine driver updates for 6.9 Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 01/24] ASoC: Intel: sof_rt5682: board id cleanup for jsl boards Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 02/24] ASoC: Intel: sof_rt5682: board id cleanup for tgl boards Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 03/24] ASoC: Intel: sof_rt5682: board id cleanup for adl boards Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 04/24] ASoC: Intel: sof_rt5682: board id cleanup for rpl boards Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 05/24] ASoC: Intel: sof_rt5682: board id cleanup for mtl boards Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 06/24] ASoC: Intel: sof_rt5682: dmi quirk " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 07/24] ASoC: Intel: board_helpers: support DAI link order customization Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 08/24] ASoC: Intel: sof_cs42l42: use common module for DAI link generation Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 09/24] ASoC: Intel: sof_sdw: use single rtd_init for rt_amps Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 10/24] ASoC: Intel: add get_codec_dai_by_name helper function Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 11/24] ASoC: Intel: sof_sdw_rt_sdca_jack_common: use helper to get codec dai by name Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 12/24] ASoC: Intel: sof_sdw_rt711: " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 13/24] ASoC: Intel: sof_sdw_rt712_sdca: " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 14/24] ASoC: Intel: sof_sdw_rt700: " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 15/24] ASoC: Intel: sof_sdw_cs42l42: " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 16/24] ASoC: Intel: sof_sdw_rt5682: " Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 17/24] ASoC: Intel: sof_sdw: add common sdw dai link init Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 18/24] ASoC: Intel: sof_sdw: remove .init callbacks Pierre-Louis Bossart
2024-02-08 16:55 ` Pierre-Louis Bossart [this message]
2024-02-08 16:55 ` [PATCH 20/24] ASoC: Intel: ssp-common: Add stub for sof_ssp_get_codec_name Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 21/24] ASoC: Intel: sof_sdw: Remove unused function prototypes Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 22/24] ASoC: Intel: soc-acpi: add RT712 support for LNL Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 23/24] ASoC: Intel: soc-acpi-intel-lnl-match: Add rt722 support Pierre-Louis Bossart
2024-02-08 16:55 ` [PATCH 24/24] ASoC: Intel: sof_sdw: starts non sdw BE id with the highest sdw BE id Pierre-Louis Bossart
2024-02-09 14:18 ` [PATCH 00/24] ASoC: Intel: Machine driver updates for 6.9 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=20240208165545.93811-20-pierre-louis.bossart@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=mosomate@gmail.com \
    --cc=tiwai@suse.de \
    --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.