[alsa-devel] [PATCH 2/2] ASoC: rt5645: Add combo jack support
bardliao at realtek.com
bardliao at realtek.com
Fri Oct 31 08:37:56 CET 2014
From: Bard Liao <bardliao at realtek.com>
This patch adds combo jack support of rt5645.
Signed-off-by: Bard Liao <bardliao at realtek.com>
---
sound/soc/codecs/rt5645.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 3131e91..0e9c77f 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -2573,6 +2573,12 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
}
+ regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1,
+ RT5645_CBJ_BST1_EN, RT5645_CBJ_BST1_EN);
+ regmap_update_bits(rt5645->regmap, RT5645_JD_CTRL3,
+ RT5645_JD_CBJ_EN | RT5645_JD_CBJ_POL,
+ RT5645_JD_CBJ_EN | RT5645_JD_CBJ_POL);
+
if (rt5645->i2c->irq) {
ret = request_threaded_irq(rt5645->i2c->irq, NULL, rt5645_irq,
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING
--
1.8.1.1.439.g50a6b54
More information about the Alsa-devel
mailing list