Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp7173pxb; Wed, 6 Apr 2022 19:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm7R4orpx3txzRZ/aMLnmqpCpXzbORQ7EUGxyCPA0xcZbJzTOg/ZD3kHUM73FDaPOdMdfs X-Received: by 2002:a05:6a00:1312:b0:4e1:58c4:ddfd with SMTP id j18-20020a056a00131200b004e158c4ddfdmr11891284pfu.65.1649299866522; Wed, 06 Apr 2022 19:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649299866; cv=none; d=google.com; s=arc-20160816; b=WTA72R+nxdym7+IoxQwcdy51CN1+hmydo4e57u3zlzjxvjMbW5sxNKV1yR3cJwo5Fn 4p69qmRfILvYK7AkjJ056+/CmCvPcvRzGfTMVXF9n6h8j0W3+XpEj3/kLmjq8T6l5BkG +J7lES33TSxEHECcbgz5AH/f2+PJzU8MT/s974xtDDt9SNRXUez7yb+G1ex5YfKeGQbM XL+sBtjqQANC8IyYAZUbQTfHfX4EfrFQYBHeLxyQes6z+EZT+7hxojH/uhNz3MJrr1c8 LdNHNY9Fns8/skac3LiLudclHfqFxZcEzGT1Y0lOoFpKp2PHAvAaiU5bdb8tQl+dZh5N BtDw== 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=KaGp+LBNxCTup7ZrGxiRRI5WKWRWMxZ0z3gPYi2I/so=; b=wq76RnLma34zkfwnqBYz4KN5uXz1dBmMMgUHpQTR1qESbDRwORqjcIiYDXl0IQ1YK1 Xmofn+oWLJJfvMZARq0OUjg+/OsJyE7dEvEEqfX0rZHz5h+myZTWyHEW/SRu3dpYv/0L HPkq6UnoONPFWYzbGWXes3a3MOGcmfR8R34F//pV2q9Xk5XUj69kzmrWWtwIl0c+56W9 zCx2nAv4yPI1GN82EZkcJdHbW/yHJRahjIM94j7K6z22ZrnI++1KjnKq/LmAJDebxvSU gEaQnfLwZ+lxvS8lj9rn9zUQ7SVutYk2TAXGNcXF1sGTfXSQ2W7Q0guQHGBkbzuF+cd/ L6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YwquvnPI; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a170903234600b00153b2d165ecsi18804662plh.500.2022.04.06.19.50.44; Wed, 06 Apr 2022 19:51:06 -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=@kernel.org header.s=k20201202 header.b=YwquvnPI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235632AbiDFVZC (ORCPT + 99 others); Wed, 6 Apr 2022 17:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235394AbiDFVYB (ORCPT ); Wed, 6 Apr 2022 17:24:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5D52EC4ED for ; Wed, 6 Apr 2022 13:19:26 -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 9066AB8254F for ; Wed, 6 Apr 2022 20:19:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F510C385A3; Wed, 6 Apr 2022 20:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649276363; bh=uYwQNf4aBCpGoDJHxfG+lIO94Xv7pYvgXWwzyJ3IDhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YwquvnPIe2o/tbGz7xsGoji7vymngVe+SOBBOBq3EJuiO53zpIivN72W0CAs+lRWw chqzfStNFbGnb/RSK+fM56Pyn3s4HqVFjXAyRnQGrS1XANG91xDBaOVNBy4NYzyoeG I/bqFUBN2a9dkpQuAotCiJcdU8oel7sIbkRJevAEtdpwu7slc04MUmyKv1yMi2CX2B bQZ+g8EvDbYjb7+PiRWuibYZpshDZ4kxN1mCDViMDlNU11k0CEwM8LZMVedEftdeoi jsi3IsJ9qNY7AlXdtDlKa704meIBdoGlOmA+Z3OzlORvYoia8Cyg+aL9Boz2INPvTm iPC2DJBMcfVWA== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1ncC7c-00GGaV-OQ; Wed, 06 Apr 2022 22:19:20 +0200 From: Mauro Carvalho Chehab To: alsa-devel@alsa-project.org Cc: Mauro Carvalho Chehab , "Hans de Goede" , "Pierre-Louis Bossart" , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , Bard Liao , Cezary Rojewski , Jaroslav Kysela , Jie Yang , Liam Girdwood , Mark Brown , Takashi Iwai , linux-kernel@vger.kernel.org Subject: [PATCH v4 4/4] ASoC: Intel: sof_es8336: Add a quirk for Huawei Matebook D15 Date: Wed, 6 Apr 2022 22:19:18 +0200 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 Based on experimental tests, Huawei Matebook D15 actually uses both gpio0 and gpio1: the first one controls the speaker, while the other one controls the headphone. Also, the headset is mapped as MIC1, instead of MIC2. So, add a quirk for it. Signed-off-by: Mauro Carvalho Chehab --- See [PATCH v4 0/4] at: https://lore.kernel.org/all/cover.1649275618.git.mchehab@kernel.org/ sound/soc/intel/boards/sof_es8336.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index bc5bc6124223..e9bf516ae4c9 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -309,6 +309,15 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = { }, .driver_data = (void *)(SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK) }, + { + .callback = sof_es8336_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"), + DMI_MATCH(DMI_BOARD_NAME, "BOHB-WAX9-PCB-B2"), + }, + .driver_data = (void *)(SOF_ES8336_HEADPHONE_GPIO | + SOC_ES8336_HEADSET_MIC1) + }, {} }; -- 2.35.1