From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: John Watts <contact@jookia.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: How to add jack GPIOs to audio-graph-cards?
Date: Wed, 27 Mar 2024 05:04:37 +0000 [thread overview]
Message-ID: <87le64clju.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <ZgL8Cr1t5aUhrClM@titan>
Hi John
> audio-graph-card's device tree schema indicates it supports the following:
>
> - pa-gpios
> - hp-det-gpio
> - mic-det-gpio
>
> But only implements pa-gpios.
I have never use x-gpio, but it seems below function handling hp-det / mic-det,
and ${LINUX}/sound/soc/fsl/fsl-asoc-card.c is only user of it.
${LINUX}/sound/soc/generic/simple-card-utils.c :: simple_util_init_jack()
> audio-graph-card2 doesn't implement any of these but will still attempts to
> grab pa-gpios but never use it (possibly a bug?)
>
> When using audio graph cards, how are you intended to add detection GPIOs?
> Are there future plans to add a jacks { } section of some sort for this?
simple-card / audio-graph-card / audio-graph-card2 are similar,
and sharing data setting. But not all features are cross implemented.
No special rule exist, but if someone want to use it on, 1st user need to
implement it. But he/you can re-use existing function (on -utils.c), or just
copy-and-paste is enough (?)
# it seems card2 has "pa-gpios" implement on audio_graph2_parse_of() ?
Thank you for your help !!
Best regards
---
Renesas Electronics
Ph.D. Kuninori Morimoto
prev parent reply other threads:[~2024-03-27 5:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-26 16:47 How to add jack GPIOs to audio-graph-cards? John Watts
2024-03-27 5:04 ` Kuninori Morimoto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le64clju.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=alsa-devel@alsa-project.org \
--cc=contact@jookia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.