Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp1076522lqh; Fri, 29 Mar 2024 06:41:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbHQdjzT6XYnf0raq32wlaFoNFTaDaZIhJvoKeM3OVuOaRo18Ood5IMaqKDRjImqshsPAxA747iFZxGkxwJkTgTyeQLb+aENhTW/3QoA== X-Google-Smtp-Source: AGHT+IGFai+/Fob/zETV6JJnOe3otkHAiKK0BRHNvO50ud9G2QYTzBF5BBM+8Mc0hOIcerZOrYxF X-Received: by 2002:a05:6a00:124b:b0:6e8:f66f:6b33 with SMTP id u11-20020a056a00124b00b006e8f66f6b33mr3154981pfi.4.1711719664360; Fri, 29 Mar 2024 06:41:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711719664; cv=pass; d=google.com; s=arc-20160816; b=ZeiCHlFj6wklCVlVSOU90SFMeiAV7V0/Xk7lJQcbW96aycyx12EqtENe6W/c0NmbJH QbCaAd7HaVJoH+YHAm2hkyLUSeYcyA2Q5y/GVDzrU47GaEqFImpd62JY6xfjYZGSSDjl mlA9UXUFbAa+nVeil8KdQ8j0YQUCqOMgbEqyoor51Sl0SJ6DJ6hBinZM9ngeIbctMOov +Lz/ix1q29j++V5rhpx093NcamDdzy0Qdq1Q4bovgLbZZe8DwpSbO+Y0GQ0CEVjcl4J7 mOyA3tgcCgwmqYai1S17yqmMfUTSk/Ho+NAdJhrAPnLoSHflbyI3g8Dn2Xyu9l+2qHxt Afqg== 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=MwZ3bnZ0MCTZqnkMHS7/izdWWCjQMMoSJwXQwIorQf4=; fh=7bdJm8guBqIlAVHBhsA485Qvwm4cMJfL0okeFOweCis=; b=DQvz/SSI6BArZi0MzdImCp6GgN6zxg0VK8+4R+GVcRuEoFc0QhVzSC5VPAp1HSu4lN 3c9/6D3BT9KL4DSlhduRwdXHds6si2cNAsRfmw0Lo4RfsmMnfpi7MajUhNQA3/dPDBhd QUajY/M/3iJlzT1vzyd87jGMOwDciq+UTI1OmQbNKFqjYgnFygxybVlWM6bx9AqKZfB5 DuCWQsM6SFiBuoeKm1mNdu+VZdmPSQdE+v2OdisPaESRB81KPe3F9yuqbCNOdJ8QZ+HH Xnnj1WYGuHJUt5gvnUz4q3qxJ/Q/HjULEqGZ2B7iTP5v8FectVxfvDew3dV8NCJTQSzA CLeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fkA/KfAe"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124736-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p18-20020aa79e92000000b006eabf8fca38si3605920pfq.346.2024.03.29.06.41.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124736-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fkA/KfAe"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124736-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124736-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0D663287C84 for ; Fri, 29 Mar 2024 13:38:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 584301791FA; Fri, 29 Mar 2024 12:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fkA/KfAe" 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 747461791EF; Fri, 29 Mar 2024 12:40:49 +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=1711716049; cv=none; b=GvI7mPpicV876ofUi3zU/GZ6N60nn7v3rJAxewc4c5YezF9gATidcijY/H/HUTRUhcJO/qLTslyJK/HjTnsSnYmB4PzHMHsk6O09nqiCLakb0gwL1oR1c8QAooUWwKLSZVv2adIs9VahMIpHF4mXfKaJXcjKM+9FYHnXjQvDeRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716049; c=relaxed/simple; bh=JZiVJSNyjDXsvhIMI6t/yzF0UvtNXcgMpdZoBBvgBrQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZI152dvYwKaMmRUkCiS8oYPdfGdLNGqbmj1rm7hEyaxv6HLdp3B9AFflrmwOP0I0/atIIkwk1eFO9vJyXCss6vU0pvsBsAqZybGNd5eYjJ504Tz4YXEcZrUvGyIqQpIcAaf5Elndkb41C3Uwax3oWA22Dq0Pb4WJmTO4z2X8+n0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fkA/KfAe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43D20C433C7; Fri, 29 Mar 2024 12:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716049; bh=JZiVJSNyjDXsvhIMI6t/yzF0UvtNXcgMpdZoBBvgBrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fkA/KfAev1P3ZBG8aCYcOGLeP3Onb+2a4RU1iQmoyelkNQ2thROzPdOqqMfshDhmi yKWvHtuAYUdWIT4F36bUukhVhkmjfqLY396IRQ1gvDq2IDip5BpV06jbWIyW14jO+u jxen/BDLJcW6eBxNuzPt2tgcN6nUs1cdIWKElsHOqiL0rkhdo3MA9AggI6p9iKG0YX DBx+PNrxnK/NiByQrRIqmYsVY41uXT68UzxZFKHL49c63SPxqwiMlLFGULE6I7sfWh lPvUcSBa1UhFZFdqi4H4obZnmGHv3lZPt9jFFJck7GSHpFfNlo1aRDIawSRvRYWiIE lLexDaFjqDADw== 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.8 27/98] ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops Date: Fri, 29 Mar 2024 08:36:58 -0400 Message-ID: <20240329123919.3087149-27-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-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.8.2 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 300391fbc2fc2..cf14bd3053fc9 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.43.0