Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1022884pxb; Wed, 6 Apr 2022 06:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxJr0ZSkt8a/JMevdGfUZs1TOF2TDusLeooC4wXvGM7QJke5nBqKt8JhOyg1tDAi8Palu8 X-Received: by 2002:a63:2a0e:0:b0:380:aeb3:d46c with SMTP id q14-20020a632a0e000000b00380aeb3d46cmr7119863pgq.404.1649253556367; Wed, 06 Apr 2022 06:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649253556; cv=none; d=google.com; s=arc-20160816; b=Kz4ivt1a7JAgwgzW+K033f0sPPYggqh7EZ32WhkMh7hmwjC05K68AW9lcXP8r8Q640 0cm2bI59A+BIfzt1QFoajC4x+dUNU2hVFVdkSNrZ/cHSahrFnk/SumJVIBzgmCCEt4a0 aSUaJdtJeaPTYy+dh4X6HdOiJXDI6HTuvaQ+8cBrh4KEa8NIv576Hp9V1fucC/n2/rlg aq6YJ3Ib2xXXwHcsMn97A6+tCdho+MC5V/58k/eG0N6Fm4jVnixF+V35sx3LyuYDHXl8 138EU/dfJmab6T2WseRMWUarqI9YWANVMJPe6dSphGQurfAViRq+x7BgA3gE/OniAnup 4IuQ== 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:subject:cc:to:from:date :dkim-signature; bh=D2GQhqjt2zyQkMV5UMtdXCq6OZ+k0R5bOy+nRpOoyOU=; b=HI5NJSC491/rsrdB0BVozqEwoNST4xLwoLv20MkqGc6alUKFxy7QVr6pzUY3sectpH Jkb80KlW9QB3CiiVbZkEe738w3u1srhdvI+kJtY4BcsVaZPZYluGr0yyom94LNVAmlWt e7gtEZ8cUYz31f8wVAsGj8WY9f7wTHtHlXtmaCEd71+n4dKL68Zby52OiRNSAJxkkwbX dEo4SO91SePolIuM0F0c5RRY/IU5YoXj76NZjrVDKy+igfRHOT8ehZMeYkJ9A5wGeezg CZLzkKRoulEl41QqFZ/zHzdcx52b7CUUITJQBDcfV+ES3g6+1qJZd8Vx62L7PyXa8z++ KaYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNuQeoqh; 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 b9-20020a170902d88900b001568126be52si11441380plz.605.2022.04.06.06.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:59:16 -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=FNuQeoqh; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 285621FB536; Wed, 6 Apr 2022 04:51:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385972AbiDEVuY (ORCPT + 99 others); Tue, 5 Apr 2022 17:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392232AbiDEPfx (ORCPT ); Tue, 5 Apr 2022 11:35:53 -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 301D92DE for ; Tue, 5 Apr 2022 06:48:23 -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 23933618B3 for ; Tue, 5 Apr 2022 13:48:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9AD0C385AA; Tue, 5 Apr 2022 13:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649166502; bh=L940+BjtIFTE/F2hK7zJ5314fCg6+o2jSl+cZo4AB4U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FNuQeoqhWp7RKDV5m0kQMwRKrARsSVoOgz0olHveaHVLxFYUjdbVZffcnzjXejyQr mf8FSBreaRxwnvRMY/OY7wmmp6BJ015NqBl5ORDOnL+N96VODQ6srMUkpNeTGmAFA9 2krQIhtoV8wwCwd7kPPkIjaPLFa/2ev4jyw+X9Pu5zPIJuggg1Ftz5LxOECCuLRiP4 Pe3qUEbcDVpZokm30yH44Y41SZ4mzmfDq4KKvY7qbx0G6hdaA9GY8nV4BcwwXJbZIZ GHPSDkA4aq3ZYrg1yfyffUmvOjylqxRct/CybycerRgkggSilFau1F0xcPrQrWheav KQZ5zaK5yoWeg== Date: Tue, 5 Apr 2022 15:48:16 +0200 From: Mauro Carvalho Chehab To: Hans de Goede Cc: Pierre-Louis Bossart , =?UTF-8?B?UMOpdGVy?= Ujfalusi , 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: Re: [PATCH v2 0/2] Make headphone work on Huawei Matebook D15 Message-ID: <20220405154816.5cfdc49c@coco.lan> In-Reply-To: <168fe6c3-6a7d-4019-16e3-066caf394b8a@redhat.com> References: <168fe6c3-6a7d-4019-16e3-066caf394b8a@redhat.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Em Tue, 5 Apr 2022 11:00:44 +0200 Hans de Goede escreveu: > Hi, > > On 4/5/22 10:44, Mauro Carvalho Chehab wrote: > > At Huawei Matebook D15 two different GPIOs are used to control the output: > > - gpio0 controls the speaker output; > > - gpio1 controls the headphone output. > > > > Changing both at the same time cause spurious events that are mis-interpreted > > as input events, causing troubles on apps. So, a delay is needed before turning > > on such gpios. > > > > With this patch, plugging a headphone causes a jack event to trigger the speaker > > supply, powering down the speaker and powering up the headphone output. > > Removing the headphone also triggers the power supply, powering up the speaker > > and powering down the headphone. > > > > Mauro Carvalho Chehab (2): > > ASoC: Intel: sof_es8336: support a separate gpio to control headphone > > ASoC: Intel: sof_es8336: Huawei Matebook D15 uses a headphone gpio > > There is something weird with the patches here, at least for me in Thunderbird > both patches show up as nameless attachments to emails with empty bodies. Weird... I tested here on Thunderbird (Fedora 35), reading it from the ML and they opened ok here. There *is* an issue on such patches though: they ended using my past e-mail :-) I'll re-send those with your ack using the right SoB/From mchehab@kernel.org. > > After saving the attachments the patches look good to me, so: > > Acked-by: Hans de Goede Thanks! Regards, Mauro