Re: [PATCH v2 0/3] ASoC: imx-rpmsg: Add headphone jack detection and driver_name support

From: Andrew Lunn

Date: Thu May 28 2026 - 10:42:50 EST


On Thu, May 28, 2026 at 03:18:05PM +0100, Mark Brown wrote:
> On Thu, May 28, 2026 at 04:12:58PM +0200, Andrew Lunn wrote:
> > On Thu, May 28, 2026 at 11:07:22AM +0900, Chancel Liu wrote:
>
> > > This series adds two features to the i.MX RPMSG ASoC card:
> > > 1. Headphone jack detection via GPIO: Introduce the "hp-det-gpios"
> > > device tree property and use simple_util_init_jack() to
> > > register a headphone jack with GPIO-based insertion detection.
>
> > I'm not familiar with ASoC, but have been in a long discussion about
> > RPMSG and GPIO....
>
> > I just want to confirm the GPIO you are talking about is a local GPIO?
> > You are not tunnelling the GPIO over RPMSG using some vendor protocol?
>
> This is a GPIO accessed via gpiolib, the driver is for an audio
> subsystem accessed via rpmsg.

Great, thanks.

When we eventually get GPIO over RPMSG, it should also just look like
a standard gpiolib GPIO. But we are not there yet, defining the one
protocol that all vendors must use, rather than each vendor doing
their own thing.

Andrew