-----Original Message----- From: Mark Brown [mailto:broonie@kernel.org] Sent: Wednesday, November 05, 2014 10:52 PM To: Bard Liao Cc: lgirdwood@gmail.com; alsa-devel@alsa-project.org; lars@metafoo.de; Flove; Oder Chiou; yang.a.fang@intel.com Subject: Re: [PATCH] ASoC:rt5645:Add JD function support
On Wed, Nov 05, 2014 at 03:02:08PM +0800, bardliao@realtek.com wrote:
From: Bard Liao bardliao@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.