Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3426154pxb; Mon, 4 Apr 2022 16:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2UjQn1QbVE5Xboz7WaQ0Vcd6zTTaX2FOhd76i8F3jspAoi47mQuFx8kcoGAqOYj/GK6z7 X-Received: by 2002:a17:902:aa4c:b0:156:547b:df7b with SMTP id c12-20020a170902aa4c00b00156547bdf7bmr581507plr.20.1649115474166; Mon, 04 Apr 2022 16:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649115474; cv=none; d=google.com; s=arc-20160816; b=Ox5EkPMwPneu8ADtNE7aJHv/OmAUjkJwpKK5XipMgvB9q00iEAEZwKYb77LoaO0MAI Q8m7vOHWh9g392CUsLr0PbmHS77v8eYnx37ep08pNAHPq7zPbB2S5V/mUxNylQkSndcE 4TvZ0WrNz3eaA92S8PuOGAsgRNYw5oHmScyGvpaGarbhsU+8hxqYlBlBHO/S0RmiSnjQ 6x5nwwcDFBtkOyMBqu8+jhF5xcV0jSoo6WprZp3JC9wUn4/RPsU6kXha3Jwy+esaG3OA mhK1qPCumK4WG6Khfrf7EngN8JQ/hRoCDBGQPX6lvlZhsNVlQmc4JG+C0C0BgPSbCJsk JFfw== 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=FHOZGe8wCvfiS+moqhRCO/whH+Z/Ndr4KEjfW+oGTXs=; b=HcJmvw4mhRzUc1a0OVzCf8ltVFnQ+Z/R/uq2MLo0LF4SGsifIRjNucfbLLgXyUNIrm ZwOJPfBahnorb8MtoKSw7vRdCUeYRUe8+VTrNXdyA5BbVsdiDvLQXEZU6gJVb725n/mC bwt6xXtnbl+B0eQ6EyKtpDM4dyMWz+gYNDCr5KOgV7V/FSGffaTEZDoG6RpuPXko2JEz CMA4MEVzXPlwGOInplASWhcwWSqhGAl612zwXzu6zT2MPubhW8v2b/nwX+ekkolopWUo ssTNKYAZs3Xk9ZujhA5zawxsmgBK86AP8xw41G56nEGJTcQibklSCOG6KMvV+O3FLJ+n I1ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q6A3008E; 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 c7-20020a170903234700b00153bc4c8388si12147410plh.499.2022.04.04.16.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 16:37:54 -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=Q6A3008E; 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 96F6C4BFEB; Mon, 4 Apr 2022 16:31:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352004AbiDCJB2 (ORCPT + 99 others); Sun, 3 Apr 2022 05:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237499AbiDCJBZ (ORCPT ); Sun, 3 Apr 2022 05:01:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AD636326 for ; Sun, 3 Apr 2022 01:59:32 -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 D4C0C60FED for ; Sun, 3 Apr 2022 08:59:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 261E9C36AE3; Sun, 3 Apr 2022 08:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648976371; bh=8NKDu5zCu7H/G9k0E5Bk0gLf0mwDJcqOkFVjnVIzf/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q6A3008EXzY+Ctoi7fg8HJhZuPlPKPT2rgVwf8xPIOZMkgp8xjpVi2obAI8fhwlls yHH77Jqfvejwt7sr0biqLKkhCQ6ydg5xIVDhjLtSBvJZ1uI4wldA7IxvI8SsL3/bk7 Ii2RLcaES4zIBYuGQJM2TCFeDxAfjz2JQxtoizGj9i6osZSrR747yRPzPbizvJ+f2p 1ScWo9XJPtV7hfANnNN7RujQB0XcyH6iES/92qVxCMM404Mfb+nX902OofKEYAKi6M GHkU6qEpl5JfixJsOC/sZYhzO5QFI/vONNbFD7+YJCGJQRHMc4LLF49Si6q2YLdfqJ SmuYiCMrUeftw== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1naw52-00D6f8-N1; Sun, 03 Apr 2022 10:59:28 +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, Mauro Carvalho Chehab Subject: [PATCH RFC 2/2] ASoC: Intel: sof_es8336: Huawei Matebook D15 uses a headphone gpio Date: Sun, 3 Apr 2022 10:59:25 +0200 Message-Id: <67d97e8a367511bc593395f33edcf2391f8066ef.1648975926.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 From: Mauro Carvalho Chehab 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 Signed-off-by: Mauro Carvalho Chehab --- See [PATCH RFC 0/2] at: https://lore.kernel.org/all/cover.1648975926.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 96920d3eed8a..fd47aba1bd5d 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -290,6 +290,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