Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2775498rdb; Tue, 12 Sep 2023 11:39:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4vFvVi3G8FhFNq1JQ+HqOqF/mRBlEDKQVNSpkJTbjQEv23ndYZynDbLFuKyurXfsgF4M1 X-Received: by 2002:a05:6a21:7781:b0:14c:d105:2a59 with SMTP id bd1-20020a056a21778100b0014cd1052a59mr261894pzc.55.1694543987183; Tue, 12 Sep 2023 11:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694543987; cv=none; d=google.com; s=arc-20160816; b=t2q32kWyCau4mMjj5dDxGQ/CJ9cpbQsoZG7n/4MRS5r7qtRaIQGyB2nDthmvD6pI7I NnJDR+PaIRg6KwTvq8uxzLaZIEfjplTVHFobJJO7eSSLU9YKVZexE2Na7HByWMy4CGb0 kTJ2xD7QztNsoWKjw3p4T6BEZ5NHnJWLUHeQb7EYj+hx+FSoDjH/aD9DcVK8/hjhg5j7 5A8NCEglEYQ5YIF1vaUIx/fktn59i9He7mTm9/bhP1K2Fpu+U896cWk9zlSynVU3R+Y1 3XCS7SZvIYmWWqHph5uZFHC926ggkyPdbiqi5gr36J3j9kjciyugBTrv+LyqH4eemRFy RtXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reporting-meta:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-signature; bh=H8VUP4moo1XVYiRBDWgPNjnI1wJ8sH7VT2dNJjvItbc=; fh=87j6YDnRorBGzwlvGLt40SPuFkjEJ/8XbXl3eD6zrFU=; b=N8X+Uq86+CNeX4dvgBYR7OG+hVrNRodE2k0QyYPwFLg/+njzyWhJFn6jOy3TBcKKrT 0NG4iJVAhs15JW9WbCme42AhUk1r6hYcaoQov1GxhghWStof848vT+rTOxEwGQaPYocv NNG2lQyaL87FeC6hNZ1uSUpQb9vu8P8zWjEHeXYdFQ1dm7fOEt17CL9lO5XyippXZECj kh51o3EMpzhb0vFX1K7ddLahlAiU2x2ssgIsorZeGtltcmqTljy7oXQYHJgsHCIKzjyR VoB7Tt5Cun0vTkGeSGydcnHavhFuvxtakMA/4Ogg2DOISCY0++asAnznPDoSjdD9BA2M Prmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@augustwikerfors.se header.s=oci-arn1-20220924 header.b=Ui1++Qnd; dkim=pass header.i=@arn1.rp.oracleemaildelivery.com header.s=prod-arn-20211201 header.b=JSopP8Ez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=augustwikerfors.se Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z16-20020a656650000000b0057764b2f3d5si4786038pgv.165.2023.09.12.11.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@augustwikerfors.se header.s=oci-arn1-20220924 header.b=Ui1++Qnd; dkim=pass header.i=@arn1.rp.oracleemaildelivery.com header.s=prod-arn-20211201 header.b=JSopP8Ez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=augustwikerfors.se Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 07B918313038; Mon, 11 Sep 2023 21:38:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236463AbjILCHw (ORCPT + 99 others); Mon, 11 Sep 2023 22:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241742AbjILCEk (ORCPT ); Mon, 11 Sep 2023 22:04:40 -0400 Received: from abi149hd125.arn1.oracleemaildelivery.com (abi149hd125.arn1.oracleemaildelivery.com [129.149.84.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B0224854 for ; Mon, 11 Sep 2023 18:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=oci-arn1-20220924; d=augustwikerfors.se; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender; bh=H8VUP4moo1XVYiRBDWgPNjnI1wJ8sH7VT2dNJjvItbc=; b=Ui1++Qndmy2QHhaV+7pzDFIxdz19lDQ0nF7u5P6pgSLjeCeOtMSqM5zkmDVx+nGlDeF+npYf/EDo xgYGFzn6QLN9Uq1Wq4tq3lTs2kEq+Mx+/FQbYVQf2dfTNp+YIHzEkRVetZYzd2C45mJShkP64aHZ m+nXLmrw32PM87K7zAMGTevje5ToT3Le5K0IsROXVJ3cIRaWduucnjS1HFVbdwONUO8KQ+/SgKBF 3GMI3jq+fQMmcqusgZ8+9M36tASH19foDu9O9FaM/EKh0BJ6GyB7cYp7/+Lf0Ump+yCMNd3+Km4l QpKknvb60SIngLeqJNN+sitEX6ljptF9VjSOOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=prod-arn-20211201; d=arn1.rp.oracleemaildelivery.com; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender; bh=H8VUP4moo1XVYiRBDWgPNjnI1wJ8sH7VT2dNJjvItbc=; b=JSopP8Ez2n2cBaDICKbnGcBItDOAOI+phWUeuAV0HdXGhhtiUckXkRMBX8+Tp742pFsMlPFs0a6X KCRYseziCIFozk1feU7wnNam+wtVNkp0uohT8J/HTzx0vHn3jmh+yVqLITNyCiKrzbhnwaAw0SYl Q8+LbOEp6XhNtvmgr1ZUyeXC/wH0WCGjK0wCO/yW7TNz5TRfPkFRE0dUuV9ivVFsA1gVCy0w1h7Q Izvye0882rP14tePg/LIFYNTnLKTpW1F7PQWZ9mmknwvUPMJLf6p82ZjLjYL7nQsE1b6TgS7uN8/ 9nOrVLuLO9hCvnWz/+9bOJ7Gf36foUXrqEFWgA== Received: by omta-ad1-fd1-401-eu-stockholm-1.omtaad1.vcndparn.oraclevcn.com (Oracle Communications Messaging Server 8.1.0.1.20230808 64bit (built Aug 8 2023)) with ESMTPS id <0S0U005OABY4GX50@omta-ad1-fd1-401-eu-stockholm-1.omtaad1.vcndparn.oraclevcn.com> for linux-kernel@vger.kernel.org; Mon, 11 Sep 2023 21:34:52 +0000 (GMT) From: August Wikerfors To: Liam Girdwood , Mark Brown Cc: Mario Limonciello , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, August Wikerfors Subject: [PATCH] ASoC: amd: yc: Fix non-functional mic on Lenovo 82QF and 82UG Date: Mon, 11 Sep 2023 23:34:09 +0200 Message-id: <20230911213409.6106-1-git@augustwikerfors.se> MIME-version: 1.0 Content-transfer-encoding: 8bit Reporting-Meta: AAFMhxbHdTEVooZy00RNFw7yNWnRQQsRpdo9xMUMs12GakU/CcQg5lXkTxfeIA1j UFC2bx3C9ai1vUeHgw7IlDUTwUvNnakXPNvwpL3UE58m4KcFRUYpn1W4Tle0cSEv agPVEEbWRoh2nvxmASr82sKMXWL7Oed7IQtKIkVPVyzNrBtBVY6wSsxUs4Q/uWmp DFnzz1LRQ745NtmwZJXpAPViGlpFf+wr0OaskmbuCQa+3XRM7pV/kY9gmc0oLFNf hkhtzxkQ4YTso0uVOCe4TZWUwL4f4FcCbUiA6+gOxx4XS7HHvD+nhyd7ZgWjels1 k4E/oe90BaQil/sGfJlHjyFoeCVNIEUfN0Ju677DPspDf3igStE25wR9KXv3+jOY NtLEukU8iYcq8VfFNzM/kuxRNYXg+R6ZCzp/h54m/taP4qQkHYEJ8Gbd8D2Og/p7 QQMAigA= 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 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:38:27 -0700 (PDT) Like the Lenovo 82TL and 82V2, the Lenovo 82QF (Yoga 7 14ARB7) and 82UG (Legion S7 16ARHA7) both need a quirk entry for the internal microphone to function. Commit c008323fe361 ("ASoC: amd: yc: Fix a non-functional mic on Lenovo 82SJ") restricted the quirk that previously matched "82" to "82V2", breaking microphone functionality on these devices. Fix this by adding specific quirks for these models, as was done for the Lenovo 82TL. Fixes: c008323fe361 ("ASoC: amd: yc: Fix a non-functional mic on Lenovo 82SJ") Closes: https://github.com/tomsom/yoga-linux/issues/51 Link: https://bugzilla.kernel.org/show_bug.cgi?id=208555#c780 Cc: stable@vger.kernel.org Signed-off-by: August Wikerfors --- sound/soc/amd/yc/acp6x-mach.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c index 59aa2e9d3a79..94e9eb8e73f2 100644 --- a/sound/soc/amd/yc/acp6x-mach.c +++ b/sound/soc/amd/yc/acp6x-mach.c @@ -213,6 +213,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "21J6"), } }, + { + .driver_data = &acp6x_card, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "82QF"), + } + }, { .driver_data = &acp6x_card, .matches = { @@ -220,6 +227,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82TL"), } }, + { + .driver_data = &acp6x_card, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "82UG"), + } + }, { .driver_data = &acp6x_card, .matches = { -- 2.42.0