diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2017-04-13 18:52:09 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-21 20:01:38 +0300 |
commit | 06bdf385f66a53b335b324e28a43788b03e6f3e3 (patch) | |
tree | 1727efbc7f9e2095011561653e89f0f96ea69bc7 /sound/soc/codecs/cs35l35.h | |
parent | fbeea237af65c6dceca00886aba30839bc986fd7 (diff) | |
download | linux-06bdf385f66a53b335b324e28a43788b03e6f3e3.tar.xz |
ASoC: cs35l35: Allow user to configure IMON SCALE
On the chip the IMON signal is a full 24-bits however normally only
some of the bits will be sent over the bus. The chip provides a field
to select which bits of the IMON will be sent back, this is the only
feedback signal that has this feature.
Add an additional entry to the cirrus,imon device tree property to
allow the IMON scale parameter to be passed.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l35.h')
-rw-r--r-- | sound/soc/codecs/cs35l35.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l35.h b/sound/soc/codecs/cs35l35.h index 54e9ac536b20..5a6e43a87c4d 100644 --- a/sound/soc/codecs/cs35l35.h +++ b/sound/soc/codecs/cs35l35.h @@ -148,6 +148,9 @@ #define CS35L35_MON_FRM_MASK 0x80 #define CS35L35_MON_FRM_SHIFT 7 +#define CS35L35_IMON_SCALE_MASK 0xF8 +#define CS35L35_IMON_SCALE_SHIFT 3 + #define CS35L35_MS_MASK 0x80 #define CS35L35_MS_SHIFT 7 #define CS35L35_SPMODE_MASK 0x40 |