All of lore.kernel.org
 help / color / mirror / Atom feed
* How to add jack GPIOs to audio-graph-cards?
@ 2024-03-26 16:47 John Watts
  2024-03-27  5:04 ` Kuninori Morimoto
  0 siblings, 1 reply; 2+ messages in thread
From: John Watts @ 2024-03-26 16:47 UTC (permalink / raw)
  To: alsa-devel

Hi there,

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.

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?

John.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to add jack GPIOs to audio-graph-cards?
  2024-03-26 16:47 How to add jack GPIOs to audio-graph-cards? John Watts
@ 2024-03-27  5:04 ` Kuninori Morimoto
  0 siblings, 0 replies; 2+ messages in thread
From: Kuninori Morimoto @ 2024-03-27  5:04 UTC (permalink / raw)
  To: John Watts; +Cc: alsa-devel


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-27  5:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 16:47 How to add jack GPIOs to audio-graph-cards? John Watts
2024-03-27  5:04 ` Kuninori Morimoto

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.