summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt1011.h
diff options
context:
space:
mode:
authorJack Yu <jack.yu@realtek.com>2021-09-06 18:12:08 +0800
committerMark Brown <broonie@kernel.org>2021-09-13 01:59:19 +0100
commit87f40af26c26233b060767f3e7cff5e54647cf2b (patch)
tree2cd5c1a4efb81b3c23308bf5eced546dc80d217f /sound/soc/codecs/rt1011.h
parent756bbe4205bc63a84ab032a1b76970afe55e2d9d (diff)
ASoC: rt1011: add i2s reference control for rt1011
Add i2s reference control for rt1011 amp. Signed-off-by: Jack Yu <jack.yu@realtek.com> Link: https://lore.kernel.org/r/20210906101208.11585-1-jack.yu@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1011.h')
-rw-r--r--sound/soc/codecs/rt1011.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt1011.h b/sound/soc/codecs/rt1011.h
index 68fadc15fa8c..afb2fad94216 100644
--- a/sound/soc/codecs/rt1011.h
+++ b/sound/soc/codecs/rt1011.h
@@ -654,6 +654,12 @@ enum {
RT1011_AIFS
};
+enum {
+ RT1011_I2S_REF_NONE,
+ RT1011_I2S_REF_LEFT_CH,
+ RT1011_I2S_REF_RIGHT_CH,
+};
+
/* BiQual & DRC related settings */
#define RT1011_BQ_DRC_NUM 128
struct rt1011_bq_drc_params {
@@ -692,6 +698,7 @@ struct rt1011_priv {
unsigned int r0_reg, cali_done;
unsigned int r0_calib, temperature_calib;
int recv_spk_mode;
+ unsigned int i2s_ref;
};
#endif /* end of _RT1011_H_ */