ASoC: rt5670: add codec irq support
Subsystems (3)
PATCH 4/4 ASoC: rt5670: add codec irq support
From: Bard Liao <[email protected]>
This patch provide the jack function of rt5670. We use a irq pin to notice the jack event. rt5670_irq_detection will determine which status should be reported.
We can get gpio information from gpio number or gpiod_dev. That's why we define both on platform data.
--- include/sound/rt5670.h | 2 + sound/soc/codecs/rt5670.c | 176 +++++++++++++++++++++++++++++++++++++++++++++- sound/soc/codecs/rt5670.h | 2 + 3 files changed, 178 insertions(+), 2 deletions(-)
include/sound/rt5670.h +2 -0
@@ -14,6 +14,8 @@struct rt5670_platform_data {int jd_mode;bool in2_diff; +int codec_gpio; +bool dev_gpio;bool dmic_en;unsigned int dmic1_data_pin;
sound/soc/codecs/rt5670.c +174 -2
204 lines not on this page · raw message
sound/soc/codecs/rt5670.h +2 -0
@@ -1987,6 +1987,8 @@ struct rt5670_priv {struct snd_soc_codec *codec;struct rt5670_platform_data pdata;struct regmap *regmap; +struct snd_soc_jack jack; +struct snd_soc_jack_gpio hp_gpio;int sysclk;int sysclk_src;
Signature · 1 line
1.8.1.1.439.g50a6b54
Mark Brown
maintainerQuoted 7 lines · On Wed, Nov 12, 2014 at 02:28:01PM +0800, [email protected] wrote:
From: Bard Liao <[email protected]>
This patch provide the jack function of rt5670. We use a irq pin to notice the jack event.
rt5670_irq_detectionwill determine which status should be reported.
We can get gpio information from gpio number orgpiod_dev. That's why we define both on platform data.
I'm missing patches 1-3 of this series.
Quoted 12 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 12, 2014 7:46 PM
To: Bard Liao
Cc: [email protected]; [email protected]; [email protected]; Flove; Oder Chiou; [email protected]; [email protected]
Subject: Re: [PATCH 4/4] ASoC: rt5670: add codec irq supportQuoted 2 lines · On Wed, Nov 12, 2014 at 02:28:01PM +0800, [email protected] wrote:
From: Bard Liao <[email protected]>
Quoted 8 lines
Quoted 4 lines
This patch provide the jack function of rt5670. We use a irq pin to notice the jack event.
rt5670_irq_detectionwill determine which status should be reported.
We can get gpio information from gpio number orgpiod_dev. That'swhy
Quoted 1 line
we define both on platform data.
I'm missing patches 1-3 of this series.
I just resent these patches.
Thanks.
Quoted 2 lines
------Please consider the environment before printing this e-mail.