diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2015-09-29 16:41:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-05 17:42:49 +0100 |
commit | e5224f58e3efd74972f7dcf46264c3ba9aa807ba (patch) | |
tree | bce61a7abc0c5ee8d7bb4dc2550803d901ff34b9 /sound/soc/codecs/ad193x.h | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
download | linux-stable-e5224f58e3efd74972f7dcf46264c3ba9aa807ba.tar.gz linux-stable-e5224f58e3efd74972f7dcf46264c3ba9aa807ba.tar.bz2 linux-stable-e5224f58e3efd74972f7dcf46264c3ba9aa807ba.zip |
ASoC: ad193x: add support to ad1934
The AD1934 codec has no ADC feature. Hence it register mapping is slightly
different from the register mapping of other members of the AD193x family.
Some ASoC controls and widgets are related to the DAC feature so are not
relevant in the case of an AD1934 codec.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ad193x.h')
-rw-r--r-- | sound/soc/codecs/ad193x.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/codecs/ad193x.h b/sound/soc/codecs/ad193x.h index ab9a998f15be..8b1e65f928d2 100644 --- a/sound/soc/codecs/ad193x.h +++ b/sound/soc/codecs/ad193x.h @@ -13,8 +13,15 @@ struct device; +enum ad193x_type { + AD193X, + AD1933, + AD1934, +}; + extern const struct regmap_config ad193x_regmap_config; -int ad193x_probe(struct device *dev, struct regmap *regmap); +int ad193x_probe(struct device *dev, struct regmap *regmap, + enum ad193x_type type); #define AD193X_PLL_CLK_CTRL0 0x00 #define AD193X_PLL_POWERDOWN 0x01 |