Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3248078pxb; Mon, 18 Apr 2022 20:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc+qqHt4Le1cKGPJjXTcNmcu1zN9a/ZnJq1QJZottEVkQGy0Hfyw99XY/EvDnBZa9qsvhw X-Received: by 2002:a63:8f45:0:b0:398:d78:142f with SMTP id r5-20020a638f45000000b003980d78142fmr13007268pgn.162.1650339187581; Mon, 18 Apr 2022 20:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650339187; cv=none; d=google.com; s=arc-20160816; b=rH2+CKj2j0IXsRwHtR3MKpyOsio1weWzC6xsS3A6MO4jeqZRQREkkFMdJy64WnOsUp fp7gnsQDweJlcy07qYxMgHuMLSUraddd41lhyg9/BHaF2bD65jMFl1b3hVztJxFnF6ZV /4QoFt7hNYoP0/4MD8CvGHpYTNMUgp36WDd6WJN3kmOVtjf5B3beLxls3jLx2R8HNBgS DPA8AvuQEyxN64q/QwUE1L8DwEwr+UbOdFUIgZOsE0G7AaTXH+vhjq9Lm+kCRi4eq3uH d68Nsz3tZlkec7PQgIRO0c93MS2UEn/ucHz9LWY1BNq7b1GoB2nOncjG7KUA8CU/M5ss fF4g== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=PN+Bm8NVQHH4Uk+nctDT8apYvG7KCYKUovlGU/AMRok=; b=e4uyNdpEPbknv8rDQbqLtN7xFdxZgtf4rVremWp0c6YaSCOjxliaG8J9iTNVns9d48 pc4qryZ4M/y/xeca0wuHFU7ap9EK35a7swoHGzPi98KVs1vAAU2TC7lTTeZBm9BOb116 iQeJK4zH0ECP6TsXjy+YQplH2bkzE6iZzUE9uCPjx1swxl8e7chC4p+8QxxpwiWuEn7B JJelAKEJ3xD4lQv4Ll33Io1+xY+EHMyxUAfuH3sB4RdYQLYAYYWGJcpd6QWQ1/0kCbHW Ps4tJMuXXHEV6Tx4j7LMex7yukt1YmwrdkbFadrpvTqL4Ps5kl2ApBZ+1Ky8Hd/F07ze YfmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1Ug6z7FP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a170902f68100b00155d59481eesi10954910plg.88.2022.04.18.20.32.49; Mon, 18 Apr 2022 20:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1Ug6z7FP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235570AbiDRMl0 (ORCPT + 99 others); Mon, 18 Apr 2022 08:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239521AbiDRMdK (ORCPT ); Mon, 18 Apr 2022 08:33:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763682FD; Mon, 18 Apr 2022 05:24:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3C84FB80EC4; Mon, 18 Apr 2022 12:24:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64964C385A7; Mon, 18 Apr 2022 12:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284685; bh=cGjcgzfaZD53HwK3xnoaM98GZl61ZmAbvcMLZKnQOyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1Ug6z7FPufy5HKIQ5HuvgOpGDaBXYOKEQudVNAFxPUS822FkCh77mP6g6cMTBsTKf A7uF1lxqQQJHmM7KRFypz+7Pdjk6iJPH9afmV7GoHiLOAhWOPym2kpRT3/eAILq7rJ qHBHyBJQ+N5pwWhSK+ECqADJMjfqfTSu4NeHWRyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tao Jin , Takashi Iwai Subject: [PATCH 5.17 195/219] ALSA: hda/realtek: add quirk for Lenovo Thinkpad X12 speakers Date: Mon, 18 Apr 2022 14:12:44 +0200 Message-Id: <20220418121212.333407172@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Jin commit 264fb03497ec1c7841bba872571bcd11beed57a7 upstream. For this specific device on Lenovo Thinkpad X12 tablet, the verbs were dumped by qemu running a guest OS that init this codec properly. After studying the dump, it turns out that the same quirk used by the other Lenovo devices can be reused. The patch was tested working against the mainline kernel. Cc: Signed-off-by: Tao Jin Link: https://lore.kernel.org/r/CO6PR03MB6241CD73310B37858FE64C85E1E89@CO6PR03MB6241.namprd03.prod.outlook.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9218,6 +9218,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x17aa, 0x505d, "Thinkpad", ALC298_FIXUP_TPT470_DOCK), SND_PCI_QUIRK(0x17aa, 0x505f, "Thinkpad", ALC298_FIXUP_TPT470_DOCK), SND_PCI_QUIRK(0x17aa, 0x5062, "Thinkpad", ALC298_FIXUP_TPT470_DOCK), + SND_PCI_QUIRK(0x17aa, 0x508b, "Thinkpad X12 Gen 1", ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS), SND_PCI_QUIRK(0x17aa, 0x5109, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x511e, "Thinkpad", ALC298_FIXUP_TPT470_DOCK), SND_PCI_QUIRK(0x17aa, 0x511f, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),