[alsa-devel] [PATCH] ASoC:rt5645:Add JD function support

Bard Liao bardliao at realtek.com
Thu Nov 6 03:14:14 CET 2014


> -----Original Message-----
> From: Mark Brown [mailto:broonie at kernel.org]
> Sent: Wednesday, November 05, 2014 10:52 PM
> To: Bard Liao
> Cc: lgirdwood at gmail.com; alsa-devel at alsa-project.org; lars at metafoo.de;
> Flove; Oder Chiou; yang.a.fang at intel.com
> Subject: Re: [PATCH] ASoC:rt5645:Add JD function support
> 
> On Wed, Nov 05, 2014 at 03:02:08PM +0800, bardliao at realtek.com
> wrote:
> > From: Bard Liao <bardliao at realtek.com>
> >
> > rt5645 codec support jack detection function. The patch will set
> > related registers if JD function is used.
> 
> How will the jack actually be detected - I'm not seeing anything here that
> looks for interrupts from the chip?

We handle the jack in/out event by rt5645_irq no matter who trigger the
irq. The jack detection event may generate by codec or an external
circuit. And rt5645_jack_detect will report the jack type.
If the jack detection event is generated by codec, we need to set
something to make it happen. This patch will configure the registers if
the platform is designed to use codec's JD function.

> 
> ------Please consider the environment before printing this e-mail.


More information about the Alsa-devel mailing list