summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5670.h
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2014-11-11 17:59:50 +0800
committerMark Brown <broonie@kernel.org>2014-11-11 12:07:13 +0000
commit0cf1863219b474e82af9cb1f6715a0bbfa3fdf1a (patch)
tree1235900c2f1ffa9cd60908c196d3e3ac221c32f3 /sound/soc/codecs/rt5670.h
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
ASoC: rt5670: add rt5672 codec support
rt5672 is very similar to rt5670. Therefore we use one codec driver to support both codecs. The difference between rt5670 and rt5672 is there is some difference in their dapm routing table. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5670.h')
-rw-r--r--sound/soc/codecs/rt5670.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.h b/sound/soc/codecs/rt5670.h
index a0b5c855b492..d11b9c207e26 100644
--- a/sound/soc/codecs/rt5670.h
+++ b/sound/soc/codecs/rt5670.h
@@ -228,6 +228,12 @@
#define RT5670_R_VOL_MASK (0x3f)
#define RT5670_R_VOL_SFT 0
+/* SW Reset & Device ID (0x00) */
+#define RT5670_ID_MASK (0x3 << 1)
+#define RT5670_ID_5670 (0x0 << 1)
+#define RT5670_ID_5672 (0x1 << 1)
+#define RT5670_ID_5671 (0x2 << 1)
+
/* Combo Jack Control 1 (0x0a) */
#define RT5670_CBJ_BST1_MASK (0xf << 12)
#define RT5670_CBJ_BST1_SFT (12)