Thread (101 messages) 101 messages, 7 authors, 2022-05-07

Re: [PATCH 18/48] ARM: pxa: hx4700: use gpio descriptors for audio

From: Arnd Bergmann <arnd@kernel.org>
Date: 2022-05-05 15:00:00
Also in: dri-devel, linux-arm-kernel, linux-clk, linux-ide, linux-input, linux-leds, linux-mips, linux-mmc, linux-pm, linux-rtc, linux-usb, lkml

On Thu, May 5, 2022 at 4:39 PM Mark Brown [off-list ref] wrote:
On Thu, May 05, 2022 at 04:33:06PM +0200, Linus Walleij wrote:
quoted
On Thu, May 5, 2022 at 8:04 AM Arnd Bergmann [off-list ref] wrote:
quoted
quoted
/* 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,
        },
quoted
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.
It's saying that when the headphone is inserted the headphone output
should be enabled and the speaker output should be disabled, and vice
versa.
Ok, that sounds like I should remove the flag here if I declare the
GPIO line as GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH, right?

         Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help