Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp922624pxb; Wed, 6 Apr 2022 04:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy//31ZXMp62tN6aXBty3GwurOX93yIP+xwSe9EfrTPmOX7Ahoi/JDHNdUWcFTdU+qy3Pdw X-Received: by 2002:a63:4f46:0:b0:382:56b2:f8 with SMTP id p6-20020a634f46000000b0038256b200f8mr6722577pgl.90.1649244183488; Wed, 06 Apr 2022 04:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244183; cv=none; d=google.com; s=arc-20160816; b=j50QhhgX4J/mDLIBWuz+egGvkDjdUNFOzCnNqb24PNfUB6Atp/JCHLX9UbcwTAXNJg cohmM2bAYT0yvO+V1uwY4uS7dosXSrOT66k0CmQb+GbWcAcl8t48+9P5p8NPZfJGm0E5 dMpD94XJwB5+NFWMG+fp7vpa0nCy4uiONAVSnGUPitsURceQ+kmk4Lgvaex7OM4ABiOV AF/oVk78gu7X9fWYcXI5NXN/w1cUwBD1YVrjVe8FB4az7FKfRNB/GfyV3jVKa05+a9Hi O17gXT14y50DVQrrqIt1Q5mJ/Nq4rK5GnelNXrdF2B5jul4hsKBhPjM3xy0AdyI2p6oY Ob1Q== 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=GjR5FDaq8qTf90egX3vCg6vJWg+YqH5GRkPII7miCp0=; b=0Nkg/WDQedL0v8ih4pE7RgGl2NNTO2Lb433BKykEcmoP/uJDANQEKo3I+vscOKZJZK xwp1MPCbxIP9WpnffWxZfBAQoJdjnnRtXp7RGv16I+BwtIEzpX05Stl9+3yfRX4BKDy1 gxaSet89m6Y3VTX0hFRDhpDMdd6hLm4x/hcqGEhVEw3FMjQTvDNRjgWP2V5d05vu6C41 6B/hlZZICoBgYwFhXGdoRbAwVfXVED1N9ZeRjjM9wrKoB7AbyEZdyXQCcVuiRWCO5WFj Ox7yjnAzWOm+qPV79/anTWNCLueF7CLJdgJtxBAjMG8Z9D65T6eVFYpuK5TIKEPz7HHk OziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YIXABeKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ik2-20020a170902ab0200b00153b2d16596si15125909plb.414.2022.04.06.04.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YIXABeKS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8845F16D8CC; Wed, 6 Apr 2022 02:44:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387235AbiDEVvD (ORCPT + 99 others); Tue, 5 Apr 2022 17:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442791AbiDEPiR (ORCPT ); Tue, 5 Apr 2022 11:38:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96EB717A2FE for ; Tue, 5 Apr 2022 06:53:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 31A6E61909 for ; Tue, 5 Apr 2022 13:53:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 817C3C385A0; Tue, 5 Apr 2022 13:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649166801; bh=uRCqPiSmDm50AsV2xR5Q4AxiYFD6rvyaw7Au70Xqr6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIXABeKSO6EetTKWYp/B5wn78lHER0NNxbIHWF/2eiybNzyn9aktzwdpguALXmIpF FWI21vFN+mRcQSaSTG5aXuVGdFLq/ypYu30dPI9Z95oXio+45gge2I6NY+pHCyStCw Ww/qvoFlCqJtZibYrVUBDULM3FtU4oUYVcGPPfNXAbIzjq8lTB60F+ouM1xAVJWeY8 IrClZPQ7ovoG7/feMaWLd2/2Vdp62Qg/XLfkxNMJWMZq9Qlgcm+ZnxVt6JojQtLDuh gBHnqpXU3O09/W4gviRTs/T3B/V7xE4fa7/HlgoJhTCrLrLBoGXHcmz1Va1swAvwVT Aj4HkAwCvZTfQ== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nbjcV-001lTa-71; Tue, 05 Apr 2022 15:53:19 +0200 From: Mauro Carvalho Chehab To: Pierre-Louis Bossart Cc: Mauro Carvalho Chehab , "Hans de Goede" , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , Bard Liao , Cezary Rojewski , Jaroslav Kysela , Jie Yang , Liam Girdwood , Mark Brown , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND 2/2] ASoC: Intel: sof_es8336: Huawei Matebook D15 uses a headphone gpio Date: Tue, 5 Apr 2022 15:53:17 +0200 Message-Id: <2e5821bf815a97786d2b58c62dcef98bc7b19ed8.1649166634.git.mchehab@kernel.org> 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=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 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. Add a quirk for that. Signed-off-by: Mauro Carvalho Chehab --- See [PATCH v2 RESEND 0/2] at: https://lore.kernel.org/all/cover.1649166634.git.mchehab@kernel.org/ sound/soc/intel/boards/sof_es8336.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index bcd80870d252..79cf9777c4fc 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -292,6 +292,14 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = { }, .driver_data = (void *)(SOF_ES8336_TGL_GPIO_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) + }, {} }; -- 2.35.1