summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt298.h
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2016-02-24 15:51:26 +0800
committerMark Brown <broonie@kernel.org>2016-02-24 17:24:34 +0900
commit4b2fe3822ae16436ed0aba379c500558f7846ce1 (patch)
tree217e87fc8eb2c405052f2f571ccf0e079ff7731e /sound/soc/codecs/rt298.h
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
downloadlwn-4b2fe3822ae16436ed0aba379c500558f7846ce1.tar.gz
lwn-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.h')
-rw-r--r--sound/soc/codecs/rt298.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt298.h b/sound/soc/codecs/rt298.h
index 31da16265f2b..d66f8847b676 100644
--- a/sound/soc/codecs/rt298.h
+++ b/sound/soc/codecs/rt298.h
@@ -34,6 +34,7 @@
#define RT298_HP_OUT 0x21
#define RT298_MIXER_IN1 0x22
#define RT298_MIXER_IN2 0x23
+#define RT298_INLINE_CMD 0x55
#define RT298_SET_PIN_SFT 6
#define RT298_SET_PIN_ENABLE 0x40
@@ -124,6 +125,12 @@
VERB_CMD(AC_VERB_SET_COEF_INDEX, RT298_VENDOR_REGISTERS, 0)
#define RT298_PROC_COEF\
VERB_CMD(AC_VERB_SET_PROC_COEF, RT298_VENDOR_REGISTERS, 0)
+#define RT298_UNSOLICITED_INLINE_CMD\
+ VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_INLINE_CMD, 0)
+#define RT298_UNSOLICITED_HP_OUT\
+ VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_HP_OUT, 0)
+#define RT298_UNSOLICITED_MIC1\
+ VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_MIC1, 0)
/* Index registers */
#define RT298_A_BIAS_CTRL1 0x01
@@ -148,6 +155,7 @@
#define RT298_DEPOP_CTRL2 0x67
#define RT298_DEPOP_CTRL3 0x68
#define RT298_DEPOP_CTRL4 0x69
+#define RT298_IRQ_FLAG_CTRL 0x7c
/* SPDIF (0x06) */
#define RT298_SPDIF_SEL_SFT 0