Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3789570iob; Sat, 7 May 2022 15:29:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykk+W1LECMoCmhVuwEramUMEoYBVdSgmaEbu3ZhxDqril/I8t1C3tziC2URKx5BSeo1jT7 X-Received: by 2002:a05:6402:155a:b0:425:c0b1:ab07 with SMTP id p26-20020a056402155a00b00425c0b1ab07mr10362177edx.258.1651962572946; Sat, 07 May 2022 15:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651962572; cv=none; d=google.com; s=arc-20160816; b=fy3xxo23EtGIck75FCzEkqxO/HTmA9zS6YuGA0LShDYyMBgahvuAhqpWj8VJlvEo9H cvib7IETy24eggolS8fh+6LQX6NiLXRL9x/21QqvqON0UK61wpqLHFPOZgVEj8XZ+jSK 5jAP0zYajIq8yYaZFSqrzGfgm/8zeRbme1h+2LduPuHaDBYSce6iaRyUMIXdAXzk43jF q05pTEaVP0fPL5bl/2cuw0IR9N0AwCfi84cxwMAJw7qGYCCXSBRgaLiDgRWyoxkXMPyw gQXhP6t6ZMPqfQAhhJCE086C/2CaLpqHRrTPkFMrakEWBcJQle4q3k6AxwrtJuIm9U55 P7Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mjPMNwsrp6J5GYko2SAtRJngBnVXhB8jFuWLYKEwiPY=; b=nMDyIjdlGJmY4DxY0r/QkLoBHHske8dVJbdtiWAt6zI4KyPuWF27z4HS0YysnWcy8d fM0DZl98KquvIjXgUo5AolpvvRwDdoZQxUaeUUx03NgSBppyVE4UQWCkf6lk59BYADy/ qC1YRBFOZCfjNZgj9gTjRG1awvjb1wtXWMiXatiQHikVP+NPwdYumNTipriH7I83FIow /DChMKK2T4S1jyRK98swG+vsXGrq2NuUujfCaG5whDbPW89UCDZ8fT9PmGfzCwXav0y+ nWKgcORYZo7IQffwDgEqjmu0Q+8wFQEISDZWawH98/MZd7izzrWdoE/cFUznB5mrTeWJ 5TAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fewd6t0m; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020aa7c5ce000000b00425e3c772b9si7285026eds.333.2022.05.07.15.29.07; Sat, 07 May 2022 15:29:32 -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=@linaro.org header.s=google header.b=fewd6t0m; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347793AbiEEOhC (ORCPT + 99 others); Thu, 5 May 2022 10:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380685AbiEEOg7 (ORCPT ); Thu, 5 May 2022 10:36:59 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB745AA6F for ; Thu, 5 May 2022 07:33:18 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id s30so7937473ybi.8 for ; Thu, 05 May 2022 07:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mjPMNwsrp6J5GYko2SAtRJngBnVXhB8jFuWLYKEwiPY=; b=fewd6t0m8AlbJsOL8rMMtmdSbrblLC+tou4WQa5Ukx0fDLML8yOTTiI03IEYZHxp2c 5W5CFU2Qo00NadwNz4fu2sdMo4N/fhzCDiGLHlJnCCs1Ua3dcldY61sEg61hMdSawUir 7eSZQI2CebwLUn4u4p9Bz1nt0xWXEswSQ1mxvA/ee4Uu5XXGOucd4+6oSzUonl+Kg0LI 8uOzDzX7qYjSqNbAmA90tOmmW4qdH/x0e5n5IbhGhckydFuX0s17/FQo0madWUU2q0+q rIcDxGLzvzfaBFeSvXHNgwp/tqsLvfCOnU4JqRfERHcRhzltPIYSlpBkJGsKowlUJZN7 2CtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mjPMNwsrp6J5GYko2SAtRJngBnVXhB8jFuWLYKEwiPY=; b=punCZUt7k+2tCMr1jxdbjwLN+WvxsrDrTmcP7dlKrHUljgSU0WBMc4ECqwOgLDn3ix GIimsXAKhZu6J1PiDMtMVraGcaMrcHZOxYve/aLGbbnxTdl92wsC6zpzPJQZFpK9MRl5 TjtyU5AyLU6kCLOxlsGfiEpza47LHXKuFeIL0K0cEZogwiv2yGcL4f/OJ0X16sEhU4Yo THPWzH0BWGf237iBBpbKQtLCUYwCj09NNYqE3Vf4jn0lYZX4uC20jHdTC9dubvU094Ss bPVGEhmv/SIGmVqmnffONcGgv58Adla6awk76TQ+YKKyVqzTWpkZXxM0TIA0ZiYT/tSg FtVQ== X-Gm-Message-State: AOAM530WKvW9DF5kfiEy1EEKb9kE1qpi1ryW7/D6acYV/fMufSSwk+Fs wxgocJEN0Dfl+elUupyEkMSAAN4qk33udqEAHx5nUQ== X-Received: by 2002:a25:bcc7:0:b0:648:d728:d39 with SMTP id l7-20020a25bcc7000000b00648d7280d39mr22199185ybm.514.1651761198027; Thu, 05 May 2022 07:33:18 -0700 (PDT) MIME-Version: 1.0 References: <20220419163810.2118169-1-arnd@kernel.org> <20220419163810.2118169-19-arnd@kernel.org> In-Reply-To: From: Linus Walleij Date: Thu, 5 May 2022 16:33:06 +0200 Message-ID: Subject: Re: [PATCH 18/48] ARM: pxa: hx4700: use gpio descriptors for audio To: Arnd Bergmann Cc: Robert Jarzmik , Linux ARM , Arnd Bergmann , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Tomas Cech , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , IDE-ML , linux-clk , Linux PM list , "open list:HID CORE LAYER" , patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc , linux-mtd , linux-rtc@vger.kernel.org, USB list , Linux Fbdev development list , dri-devel , ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On Thu, May 5, 2022 at 8:04 AM Arnd Bergmann wrote: > On Wed, May 4, 2022 at 11:59 PM Linus Walleij wrote: > > Thus drop one ! in front of the expression, just !SND_SOC_DAPM_EVENT_ON(event) > > Ok, done. But I still leave the extra 'invert=1' in hs_jack_pin[], right? > > /* Headphones jack detection DAPM pin */ > static struct snd_soc_jack_pin hs_jack_pin[] = { > { > .pin = "Headphone Jack", > .mask = SND_JACK_HEADPHONE, > }, > { > .pin = "Speaker", > /* disable speaker when hp jack is inserted */ > .mask = SND_JACK_HEADPHONE, > .invert = 1, > }, Hm some ASoC thingie. No idea what that is, but I suppose another place where a subsystem for legacy reasons try to do the gpiolib inversion on it's own accord. That one isn't flagged as active low in the descriptor so it's fine I guess. Possible this should be fixed in ASoC to rely on gpiolib but we can't fix the entire world. Yours, Linus Walleij