Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp513647rdb; Fri, 17 Nov 2023 05:32:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHaxV5ANGNpHVYGsWfC2uceCW541vg6mhEenzpxOMEb9LVCbxVNuye7p2K8zDzApprS1O8 X-Received: by 2002:a17:90a:db8e:b0:27d:348:94a8 with SMTP id h14-20020a17090adb8e00b0027d034894a8mr20686559pjv.6.1700227950194; Fri, 17 Nov 2023 05:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700227950; cv=none; d=google.com; s=arc-20160816; b=URzxTZtnVsfV7gZgksTS7nelHv5mw/Y6uLArcVJ/0tgYt1NIMzDJMsKXi8XLCqQxEk jisL5i6Y4W0dx7knRXH3+mK0muUt4c3LC/TiKC1n0xakZrTjP8NXh0uX7qYXOCKcT7PN 5MebKZIXIiKAw7Al7i+xQ6YgELwCJ+aKdXcOy4jVRIWMsqrhsESN8VvI3dKc8qnRJyXO chMaATazu+Io1FCWRaMGcIjmhuX96msio34wZNBFEdwedRzGxEvYPo/z/vTI+tB9Oxn+ c+o4bx2X2+NYjHIyH4WgRViSJBwwzWnupqP804+e6JP6cWVdkhMTZ9s6YJMwgKTOkpU8 scoQ== 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 :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=v9hbRLCFAF0MFU6V5KRjF2Qo9Ot751dxw2RqL6OaPeA=; fh=QPej+3lJ6G0tvV4kSDa4FqIsrr/Ow7RkWxewxsKBOSw=; b=F+EmMJBm6TU8xX0N+OM/IOW2kJ5iWn6IMJX2FNpzP7zu3nANg4qL5eLU4p+ksNx9E3 J1G2gX0SQvgQpTfJRk5ABPRSWLXCRXI1KkeP6qDWNbrtrZQKF6BOxlv+XBCqZ+wcYGGl ZUMhQ5L76aBAsRqFLq4fH63h3YqUG5ZmHSImkmVa6FglQQrGOc1hHoS6idSWu9FwYIWD 1cgRlAFkzzDOCvoW/RXo7lWasYqVkWJ2fwgZVL72IcroV3fu+KyQcASXtABxpHqgl4YB 0cUotf5SHXB9Mh5CISIw3v3Hd5wAfOpCjQzS0yiq74EYx8Db0K7MzZ2uap6F/01DRjKI 9luw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CB6G0qkD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=TX4Q8KFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id il16-20020a17090b165000b0026c198d8182si4548000pjb.105.2023.11.17.05.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:32:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CB6G0qkD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=TX4Q8KFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A146481F473A; Fri, 17 Nov 2023 05:32:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231418AbjKQNcU (ORCPT + 99 others); Fri, 17 Nov 2023 08:32:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKQNcT (ORCPT ); Fri, 17 Nov 2023 08:32:19 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A65DD57; Fri, 17 Nov 2023 05:32:16 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AF30C1F38D; Fri, 17 Nov 2023 13:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700227934; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v9hbRLCFAF0MFU6V5KRjF2Qo9Ot751dxw2RqL6OaPeA=; b=CB6G0qkDUwa00UbK3T+SjtyL7Lhu1yBHD3ws2DlrFL0KNhirbUaANdS3hP6AaxTjN+mKsj 5SH45CWTehWYkqMr92BXWXkvWGctxvo6w7VgZJkmHlXZ+uahkw4uxMuczexFisD8NGXVpt /kJGaJCjkXsPiReKs+eu+WqgoGNNaHg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700227934; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v9hbRLCFAF0MFU6V5KRjF2Qo9Ot751dxw2RqL6OaPeA=; b=TX4Q8KFNL7ErbepzZMrKkeXSdejFmjVv0FnhTiJicd47aMqqQ0WFVnd7bLW2h4GY2v3Mlt yADE7BR0lhkFjoAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 788A51341F; Fri, 17 Nov 2023 13:32:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OVWBHF5rV2WKWAAAMHmgww (envelope-from ); Fri, 17 Nov 2023 13:32:14 +0000 Date: Fri, 17 Nov 2023 14:32:14 +0100 Message-ID: <87sf54jyjl.wl-tiwai@suse.de> From: Takashi Iwai To: Oliver Sieber Cc: Bagas Sanjaya , Linux Kernel Mailing List , Linux Sound System , Linux ALSA Development , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Subject: Re: Fwd: acp3x: Missing product ID for Thinkpad T14s Gen2 AMD Ryzen 7 PRO 5850U In-Reply-To: <78149e00-12b5-459b-8754-a17dd974916d@gmail.com> References: <8bd0e77f-720b-4804-bbd8-477bd7df938e@gmail.com> <251c1bea-8250-40dd-bdea-1cd739d1e77a@gmail.com> <78149e00-12b5-459b-8754-a17dd974916d@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -7.23 X-Spamd-Result: default: False [-7.23 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-3.00)[100.00%]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.13)[-0.628]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[gmail.com,vger.kernel.org,alsa-project.org,kernel.org,perex.cz,suse.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 05:32:27 -0800 (PST) On Fri, 17 Nov 2023 08:17:48 +0100, Oliver Sieber wrote: > > > Hi, > > in the following I provide my proposed patch for the bug report on Bugzilla > [1]. Let me quote from it: > > Hey,sound/soc/amd/renoir/rn-pci-acp3x.c has a hard-coded list of quirks. It seems like some product IDs may be missing. In my case, I am using a Lenovo Thinkpad t14s gen2 with an AMD Ryzen 7 PRO 5850U. > My audio output is fine but my internal microphone cannot be found. > > Running `dmidecode` yields: > > Handle 0x000F, DMI type 1, 27 bytes > System Information > Manufacturer: LENOVO > Product Name: 20XGS1KT02 > Version: ThinkPad T14s Gen 2a > > Could it be that one may have to add the product ID "20XGS1KT02" to the hard-coded list of quirks in rn-pci-acp3x.c? > > It seems as there have been similar problems in the past, e.g. https://bugzilla.kernel.org/show_bug.cgi?id=216270. > > My proposed diff looks as follows: > > diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/ > rn-pci-acp3x.c > index b3812b70f5f9..754e24d55e6f 100644 > --- a/sound/soc/amd/renoir/rn-pci-acp3x.c > +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c > @@ -199,6 +199,13 @@ static const struct dmi_system_id rn_acp_quirk_table[] = > { > ???? ??? ??? DMI_EXACT_MATCH(DMI_BOARD_NAME, "20NLCTO1WW"), > ???? ??? } > ???? }, > +??? { > +??? ??? /* Lenovo ThinkPad T14s Gen 2 */ > +??? ??? .matches = { > +??? ??? ??? DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "LENOVO"), > +??? ??? ??? DMI_EXACT_MATCH(DMI_BOARD_NAME, "20XGS1KT02"), > +??? ??? } > +??? }, > ???? {} > ?}; > > Please have in mind that this is my first patch for the kernel. The kernel patch should be in a proper format, so that it can be merged to the upstream. e.g. The Subject line should have a brief description with the proper prefix for the corresponding subsystem (in your case, something like "ASoC: amd:"). It'll follow the patch description, as well as your proper Signed-off-by tag. The details are found in https://docs.kernel.org/process/submitting-patches.html Could you resubmit the patch in a proper format? thanks, Takashi