Message ID | 20231209205351.880797-7-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6236206vqy; Sat, 9 Dec 2023 12:54:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IF851EcE6qihkXVj4E3h0e7zshDmi5PfN1QtQPf4MULNdRclzyP4+V0YhY2P6VIA93gTpY/ X-Received: by 2002:a05:6e02:194a:b0:35d:59a2:3322 with SMTP id x10-20020a056e02194a00b0035d59a23322mr3872007ilu.38.1702155284712; Sat, 09 Dec 2023 12:54:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702155284; cv=none; d=google.com; s=arc-20160816; b=Gp+405RsYzHsJ9A8B5BrTcq/w1h5GEjj+8p2Lhd0DYk1ydJLP5+7ZVNwAJXD4hvbZT SvpgPttHq2gOwYP88GVhnAvhBnT3p0Hgy6A/T3UrB12v+0bbaQqPuMcRcUe0Ci4HsODy pErezn8YYCpNVHOXFaLVUVCU0CDE5h8BXBiLmGXhx/XEBF0Bum3A+LFmlLkYJp4FkCNS B+ePBMUVLADdUpMv4dDyLi1SVFzwbei0CAT4qAnWnP/kLRUsulpEKMfgKz2Cuydkv5xl Um9PeJERYZdMqQZ2yF0Lw4osiOhU8/am+KKvC1NlRcv8NJhLEMemt8kmtcKvLtPa70JJ YNTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SZu0Uet2d+YPHWGTkJc2OkottsqaWn+HFu/H1DdffHU=; fh=qH4A7sjuqsI+9iJQtQMmOmQRysg9CNJ3X6TEjzAzPQM=; b=obCkG3nzvAGjT6gLZk/GUHUngdS0Ws3fEny+5rux5vUolnVRp3pYOIY0ty+yrpUrnz zY62nOGB71O4PFz6hiXX1Uifn9ybIMqlDuYZ8uJDkxHn4ISvI/UuFMkVDrdS7HsUqtH+ BtYkkkPWQ/RgVos7vYD4y4SsvJGpY3rncHabjhwIZmSXy9rAaJpOdDRdJkWwmbQExRIu 9VO5pJaccBl+WJ7E6j4kdbr+E7LJsc7eyfAaR+RHI7JmoXrmC+0uVxo5aQmPMpUtf7Zs 8ykyIRLDlwmI3HWPulDTfh5BUArZwW9SfS26kUjfekvlPeFxD8O1MkBxp7L+I5tyb+pa Rpyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=tMyVa0w9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id o2-20020a170902d4c200b001d0a35a098bsi3674779plg.566.2023.12.09.12.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 12:54:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=tMyVa0w9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BD21A80879E0; Sat, 9 Dec 2023 12:54:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231365AbjLIUyP (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Sat, 9 Dec 2023 15:54:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbjLIUyI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 9 Dec 2023 15:54:08 -0500 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD3E1BB; Sat, 9 Dec 2023 12:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702155249; bh=4/ljxDEHtTvIlqAZ4vM3o3PXrWgZstPeEiyPFB52jiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tMyVa0w9ssaQ4z2ta6GYiFSLZdAZzG6yiwDP9gWn5XrGdJDQCH+Eh9Si3zcfz2lmC sp9w+Fs9GHs4XfG4ovXDzzc3hOT2+iJZepIbbe2dtxomSOjXFU1pppqEUxS8g9wr21 C5sOYcBqZY7MvkEzHA+EYhCNS208rPtgTdaGOEu2/C43dT8k9bAYywI18CLOwLMOmk 0AsWWQTM8aJWiT5aCPJE2zqO/hhqwKRYc5upHlYMnpbCTlIfBhT7niaTz2aQmOTDl2 k/u0bVMrq7AJVO/t3nFZJj7TFRzY+8yLPscxnzpcsrcpMhklK49DPP8NDrULDh4DQF Yr60aIHteyFKQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1031037813E1; Sat, 9 Dec 2023 20:54:09 +0000 (UTC) From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Peter Ujfalusi <peter.ujfalusi@linux.intel.com>, Bard Liao <yung-chuan.liao@linux.intel.com>, Ranjani Sridharan <ranjani.sridharan@linux.intel.com>, Daniel Baluta <daniel.baluta@nxp.com>, Kai Vehmanen <kai.vehmanen@linux.intel.com>, Venkata Prasad Potturu <venkataprasad.potturu@amd.com>, Alper Nebi Yasak <alpernebiyasak@gmail.com>, Syed Saba Kareem <Syed.SabaKareem@amd.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>, Marian Postevca <posteuca@mutex.one>, Vijendar Mukunda <Vijendar.Mukunda@amd.com>, V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>, Mastan Katragadda <Mastan.Katragadda@amd.com>, Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org, kernel@collabora.com Subject: [PATCH 06/11] ASoC: SOF: amd: Optimize quirk for Valve Galileo Date: Sat, 9 Dec 2023 22:53:45 +0200 Message-ID: <20231209205351.880797-7-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231209205351.880797-1-cristian.ciocaltea@collabora.com> References: <20231209205351.880797-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 09 Dec 2023 12:54:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784839179673597084 X-GMAIL-MSGID: 1784839179673597084 |
Series |
Improve SOF support for Steam Deck OLED
|
|
Commit Message
Cristian Ciocaltea
Dec. 9, 2023, 8:53 p.m. UTC
Valve's Steam Deck OLED is uniquely identified by vendor and product
name (Galileo) DMI fields.
Simplify the quirk by removing the unnecessary match on product family.
Additionally, fix the related comment as it points to the old product
variant.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
sound/soc/sof/amd/acp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 12/10/23 02:23, Cristian Ciocaltea wrote: > Valve's Steam Deck OLED is uniquely identified by vendor and product > name (Galileo) DMI fields. > > Simplify the quirk by removing the unnecessary match on product family. > > Additionally, fix the related comment as it points to the old product > variant. > > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> > --- > sound/soc/sof/amd/acp.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c > index c6f637f29847..1e9840ae8938 100644 > --- a/sound/soc/sof/amd/acp.c > +++ b/sound/soc/sof/amd/acp.c > @@ -28,11 +28,10 @@ MODULE_PARM_DESC(enable_fw_debug, "Enable Firmware debug"); > > const struct dmi_system_id acp_sof_quirk_table[] = { > { > - /* Valve Jupiter device */ > + /* Steam Deck OLED device */ If any changes in SOF drivers, first need to create a PR in SOF github. > .matches = { > DMI_MATCH(DMI_SYS_VENDOR, "Valve"), > DMI_MATCH(DMI_PRODUCT_NAME, "Galileo"), > - DMI_MATCH(DMI_PRODUCT_FAMILY, "Sephiroth"), > }, > .driver_data = (void *)SECURED_FIRMWARE, > },
On 12/10/23 05:33, Venkata Prasad Potturu wrote: > > On 12/10/23 02:23, Cristian Ciocaltea wrote: >> Valve's Steam Deck OLED is uniquely identified by vendor and product >> name (Galileo) DMI fields. >> >> Simplify the quirk by removing the unnecessary match on product family. >> >> Additionally, fix the related comment as it points to the old product >> variant. >> >> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> >> --- >> sound/soc/sof/amd/acp.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c >> index c6f637f29847..1e9840ae8938 100644 >> --- a/sound/soc/sof/amd/acp.c >> +++ b/sound/soc/sof/amd/acp.c >> @@ -28,11 +28,10 @@ MODULE_PARM_DESC(enable_fw_debug, "Enable Firmware >> debug"); >> const struct dmi_system_id acp_sof_quirk_table[] = { >> { >> - /* Valve Jupiter device */ >> + /* Steam Deck OLED device */ > If any changes in SOF drivers, first need to create a PR in SOF github. This is just an optimization for the driver, no need to change anything on the firmware side. The product family remains as is, but it's not really required to match the board, i.e. the previous board was "Jupiter", the next one will have a different product name. >> .matches = { >> DMI_MATCH(DMI_SYS_VENDOR, "Valve"), >> DMI_MATCH(DMI_PRODUCT_NAME, "Galileo"), >> - DMI_MATCH(DMI_PRODUCT_FAMILY, "Sephiroth"), >> }, >> .driver_data = (void *)SECURED_FIRMWARE, >> },
diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c index c6f637f29847..1e9840ae8938 100644 --- a/sound/soc/sof/amd/acp.c +++ b/sound/soc/sof/amd/acp.c @@ -28,11 +28,10 @@ MODULE_PARM_DESC(enable_fw_debug, "Enable Firmware debug"); const struct dmi_system_id acp_sof_quirk_table[] = { { - /* Valve Jupiter device */ + /* Steam Deck OLED device */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Valve"), DMI_MATCH(DMI_PRODUCT_NAME, "Galileo"), - DMI_MATCH(DMI_PRODUCT_FAMILY, "Sephiroth"), }, .driver_data = (void *)SECURED_FIRMWARE, },