Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp22977lqz; Fri, 29 Mar 2024 07:27:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYRHl5miN08JGejj6hZQqzqoYbvwgGgU9Tc8qhgO9xVdXaTw4rwC2huOUgjKZG7OfCMEKPlYb9z8PdG1adaUuJ3KBtrfUQPqt8gTLbXA== X-Google-Smtp-Source: AGHT+IE7R6nVsOz6pVqqIx8O7khswPTAZFuCfL8qK2Z/dt7SGVrXGKiPk6Bc9ZH7Sn1sQSV7Tiai X-Received: by 2002:a05:6402:2692:b0:56b:9ef8:f630 with SMTP id w18-20020a056402269200b0056b9ef8f630mr1915114edd.2.1711722423566; Fri, 29 Mar 2024 07:27:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711722423; cv=pass; d=google.com; s=arc-20160816; b=eYREK8C+Py8mBe61OjOJUgKGBitoLP48RKZjUPAZWN2z4a15irimpGufJea9ixmH9a ogpMN46FkUTSscno6UBQRRum71KROfHi4l66zfe99kK2CJpsv5zVR49cU3fgT5yKULQd +RTVfg87y945KKYDF0Vx3eCHg45R+rpElf0jiJP3x8V8isYOqRgYu9RSjwe8OxuUtfz7 sNfsQrsBkFYD1xGnawTrUjI3UR9n6ob6qcuKQmQcjtlt5Qv9eLuZ924Sp+hHVCG9u6La 7VrvM1HSfANxhQut97RQ8T60+ZXAIU4iHe0dYOgNN/4nDcMTKqQ5Y7IiXNBFLjkbMfqc dgSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LLZ+erZq8o3aeH+0VvtOupABnrpA7CjWHS8/ChROhTw=; fh=7bdJm8guBqIlAVHBhsA485Qvwm4cMJfL0okeFOweCis=; b=RgWuCuJZIGRXWAMvj02wES8Yh/e0klxuKx06mZgx/16wdDQZKC6yq3s9XcNM0nW/t0 Jc3wRKl8KJe6kewatZ/WJu77ZSFPACm8tnpM8/lKTMZNqGadtfyT3X/4q8ekbwQZr+DN QlQrppy+D13hTcx9RWFZWuVcfSzTHmkRl15vwbr1GhmNmj5BIBs4ADPKimXteV1TfDNq nRfPvw4McSR7B+1XZsWzOGYchSImHnDnU8LODaVmqORlt2gKd4rEv84xqIfGFHlYncmy Wno1Wgw9d8ygWudpRHBgk6LyMilBhnCZoUAp4K/CVZPxguXFegc2osHQAdDvS0gUtQ13 zNEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eL//vnsn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a05640235c700b0056c14789b6esi1875781edc.331.2024.03.29.07.27.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:27:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eL//vnsn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D2A171F280D1 for ; Fri, 29 Mar 2024 14:21:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1757238169; Fri, 29 Mar 2024 12:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eL//vnsn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D649123658B; Fri, 29 Mar 2024 12:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716388; cv=none; b=o7SH26qL+sMrAG8IbOzHx9RhH9M0ccbivXdjcAPaEthKkenZL25OMTw12RQXs+TUxiYlTaAqBZ4Acw36gRB0g6qHef8elLfiNND+LDzXM1cESFLYFpelfVIX8yEDZXRpRXKod7/Fx36WGbY5cLRa4DfgRh8zEUpLkJh7mc29FcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716388; c=relaxed/simple; bh=oC2Wv1oSxUrAS8eJuP0RItudpO00CkGVe6OsWXeu2A4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BAhRJ2hpqGjHdzjlAOIdgxrPGTfw5mjfH+O3VFI55rpCL4Nn0991LqfORT1Az+qolgdP2+GcS8IbRaHCw+s32mLYk7CCNXRH3VOJG6T/9ZXPWVUsdM+5J3uDJ28ei2xipNvll3QYbs5JCOCJNaiDl+M5qiSduWR8RkciNcmoEmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eL//vnsn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF60AC433F1; Fri, 29 Mar 2024 12:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716388; bh=oC2Wv1oSxUrAS8eJuP0RItudpO00CkGVe6OsWXeu2A4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eL//vnsngcTBpXFOJJaIPDgfDvC2LIJBvnCRtMc01/GypTlUi1VQBfNsOrt792ots p8fz5Zbo1HKlQSz+cC0yVMrhqsae83zzupcHr69LNIwGflB3mJwehNCvnzFJRcBoC3 d4heAi6ENpQB9Z+yw55rovhka3IV2//Y5ZHZ6VBqsMa1qnG8Lf8PXkp9CbEgCs7GB4 4/a6pU6r7P9OOI1Oso0Y2YvvDnGW5liUnElmXgwmtoQm4mv1srqmwYYrguMBXVEE1a IUppE97jFDUzT1eMDrjI8ESlYn3A+p8zaYF10QEbXBxi6ho7w6xlh9W1qfv6XrAxKD h4xGTsOZLYpNQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: mosomate , Bard Liao , Pierre-Louis Bossart , Mark Brown , Sasha Levin , vkoul@kernel.org, cezary.rojewski@intel.com, liam.r.girdwood@linux.intel.com, peter.ujfalusi@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, uday.m.bhat@intel.com, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 13/52] ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops Date: Fri, 29 Mar 2024 08:45:07 -0400 Message-ID: <20240329124605.3091273-13-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124605.3091273-1-sashal@kernel.org> References: <20240329124605.3091273-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.83 Content-Transfer-Encoding: 8bit From: mosomate [ Upstream commit c13e03126a5be90781084437689724254c8226e1 ] 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 Reviewed-by: Bard Liao Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20240208165545.93811-20-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- 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 9ebdd0cd0b1cf..91ab97a456fa9 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 985012f2003e2..d1e6e4208c376 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -224,6 +224,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.43.0