Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3402541rwa; Tue, 23 Aug 2022 04:18:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jdP1MgA52YEbMUOg3tiE+gYwO/uVhXmTvWU/VYh2+SFQeMqg+LM27xePwgMeTy6EBs9jJ X-Received: by 2002:a17:902:d58b:b0:16d:c9ff:3c26 with SMTP id k11-20020a170902d58b00b0016dc9ff3c26mr23952857plh.10.1661253506270; Tue, 23 Aug 2022 04:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253506; cv=none; d=google.com; s=arc-20160816; b=HpKbqZepqccgWSLOYrpvZB/xnoaXHcAF3IXKyfcZGlREuxdPy6FzeuuIf64sK0zD5+ zmmuRss2PsOd7F48e0MEGhDJlYM/qz5SAT9n5OSkd4VN/K8V4qqg1T3kF5j5w2zUrQdy js23yNYvrASLrbckJX8WzUfjdxyg0by3CUtVITl54NBvdKahQMRDIrrIbvprHMLEqF0B NK5tiGTwmiC4LndsZZ+6PFBaT7Ac7e4H5uciwrSI28+11WpVB4HxBV71NiS6QaK6tfdg 1BciX2jXjV0HTYYEQY3iY3CW6VFjKWqlNySCAOahWowevv4rcoHqRsgFtwW8b4mBC3hG Egsw== 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=r+K3EaDX8a2SPExxZsUGZ+F6p51zbi3KA8EWxE18Ymg=; b=QXeBDetgAc2Tdr8j6+pXHF/R7AzieiTIkQAfyT+AYMvvb9YylNyAz//3xN7zTVcMWl CfheLA++LypwCX+u+2gkxEdC5YXFJMaoNgAVJSrQnykw+9d8VKwo2M6rjx8VAelEmZOB bCrwdv0AVJk2bMkXodnGgyuhZjWWl0uYn6vP0AXYvpwHZMKMg197NX5OzGcGyKjnTE/V RMYgun0MJXMD8SoqCuyMesJG8RiIPcXMvO/j+zoSoxtdo7y7xnc8i3W0ZpT5wiRTyRWq /8BwGUoWu2Axv4BubneAW+37SbjKG93ICXdLgHvxoM6/ToMSbU3PwmoDarQDC+kzf2Eb K0zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xF4z6Hnc; 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 c11-20020a630d0b000000b0041bbf561c71si14866105pgl.455.2022.08.23.04.18.14; Tue, 23 Aug 2022 04:18:26 -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=xF4z6Hnc; 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 S1349700AbiHWJYJ (ORCPT + 99 others); Tue, 23 Aug 2022 05:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350534AbiHWJVw (ORCPT ); Tue, 23 Aug 2022 05:21:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BEAA8E0DF; Tue, 23 Aug 2022 01:34:55 -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 C39B1B81C48; Tue, 23 Aug 2022 08:33:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D31CC433C1; Tue, 23 Aug 2022 08:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243638; bh=K+ir609JSd1Xoem7Z547dEqv671JPfbFvoqdmpiy38o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xF4z6Hncd71Rbvl5XJvwZplrfqO0KKyXiFW/ZHXtaqFZ4u71Cr/WGeBWUcVkp7AK2 Sjnw+jlvnOvLGoVhHfsQlO5PdWPTvfOdrHbcqhCDgtlaP3GX9/Q8vhRml2xKI63+58 wVGf6BFcf4jOoUBJv4VUtaseaV1zN13eb6x8v1og= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Andrey Turkin , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.19 341/365] ASoC: Intel: sof_es8336: ignore GpioInt when looking for speaker/headset GPIO lines Date: Tue, 23 Aug 2022 10:04:02 +0200 Message-Id: <20220823080132.481528437@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 From: Andrey Turkin [ Upstream commit 751e77011f7a43a204bf2a5d02fbf5f8219bc531 ] This fixes speaker GPIO detection on machines those ACPI tables list their jack detection GpioInt before output GpioIo. GpioInt entry can never be the speaker/headphone amplifier control so it makes sense to only look for GpioIo entries when looking for them. Reviewed-by: Andy Shevchenko Signed-off-by: Andrey Turkin Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20220725194909.145418-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_es8336.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index 4d0c361fc277..d70d8255b8c7 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -57,23 +57,23 @@ static const struct acpi_gpio_params enable_gpio0 = { 0, 0, true }; static const struct acpi_gpio_params enable_gpio1 = { 1, 0, true }; static const struct acpi_gpio_mapping acpi_speakers_enable_gpio0[] = { - { "speakers-enable-gpios", &enable_gpio0, 1 }, + { "speakers-enable-gpios", &enable_gpio0, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, { } }; static const struct acpi_gpio_mapping acpi_speakers_enable_gpio1[] = { - { "speakers-enable-gpios", &enable_gpio1, 1 }, + { "speakers-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, }; static const struct acpi_gpio_mapping acpi_enable_both_gpios[] = { - { "speakers-enable-gpios", &enable_gpio0, 1 }, - { "headphone-enable-gpios", &enable_gpio1, 1 }, + { "speakers-enable-gpios", &enable_gpio0, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, + { "headphone-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, { } }; static const struct acpi_gpio_mapping acpi_enable_both_gpios_rev_order[] = { - { "speakers-enable-gpios", &enable_gpio1, 1 }, - { "headphone-enable-gpios", &enable_gpio0, 1 }, + { "speakers-enable-gpios", &enable_gpio1, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, + { "headphone-enable-gpios", &enable_gpio0, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO }, { } }; -- 2.35.1