diff options
author | Bard Liao <bardliao@realtek.com> | 2016-02-24 15:51:26 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-24 17:24:34 +0900 |
commit | 4b2fe3822ae16436ed0aba379c500558f7846ce1 (patch) | |
tree | 217e87fc8eb2c405052f2f571ccf0e079ff7731e /sound/soc/codecs/rt298.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-stable-4b2fe3822ae16436ed0aba379c500558f7846ce1.tar.gz linux-stable-4b2fe3822ae16436ed0aba379c500558f7846ce1.tar.bz2 linux-stable-4b2fe3822ae16436ed0aba379c500558f7846ce1.zip |
ASoC: rt298: enable IRQ for jack detection
There are some registers needed for enabling rt298 IRQ missed on
current driver.
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt298.c')
-rw-r--r-- | sound/soc/codecs/rt298.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c index 30c6de62ae6c..e67ef5f8d4f3 100644 --- a/sound/soc/codecs/rt298.c +++ b/sound/soc/codecs/rt298.c @@ -1225,6 +1225,12 @@ static int rt298_i2c_probe(struct i2c_client *i2c, regmap_update_bits(rt298->regmap, RT298_WIND_FILTER_CTRL, 0x0082, 0x0082); regmap_update_bits(rt298->regmap, RT298_IRQ_CTRL, 0x2, 0x2); + + regmap_write(rt298->regmap, RT298_UNSOLICITED_INLINE_CMD, 0x81); + regmap_write(rt298->regmap, RT298_UNSOLICITED_HP_OUT, 0x82); + regmap_write(rt298->regmap, RT298_UNSOLICITED_MIC1, 0x84); + regmap_update_bits(rt298->regmap, RT298_IRQ_FLAG_CTRL, 0x2, 0x2); + rt298->is_hp_in = -1; if (rt298->i2c->irq) { |