diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-19 14:25:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-20 12:42:47 -0400 |
commit | 51f20e4cd83e804fb4fd940873763f29616f12a8 (patch) | |
tree | fbf9adb8b02392d72fac1c88c3878e184e19e94a | |
parent | 38bfd48b87c44f6958f75bfcd5ae5a53bd3ca07b (diff) |
ASoC: ab8500: Use ASoC I/O functions
In preparation for moving away from implementing the ASoC level register
I/O functionality change direct calls to the ab8500 implementation of that
to use snd_soc_write()
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | sound/soc/codecs/ab8500-codec.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/codecs/ab8500-codec.c b/sound/soc/codecs/ab8500-codec.c index 7cea5a8487d0..c2b663696611 100644 --- a/sound/soc/codecs/ab8500-codec.c +++ b/sound/soc/codecs/ab8500-codec.c | |||
@@ -2527,12 +2527,10 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec) | |||
2527 | } | 2527 | } |
2528 | 2528 | ||
2529 | /* Override HW-defaults */ | 2529 | /* Override HW-defaults */ |
2530 | ab8500_codec_write_reg(codec, | 2530 | snd_soc_write(codec, AB8500_ANACONF5, |
2531 | AB8500_ANACONF5, | 2531 | BIT(AB8500_ANACONF5_HSAUTOEN)); |
2532 | BIT(AB8500_ANACONF5_HSAUTOEN)); | 2532 | snd_soc_write(codec, AB8500_SHORTCIRCONF, |
2533 | ab8500_codec_write_reg(codec, | 2533 | BIT(AB8500_SHORTCIRCONF_HSZCDDIS)); |
2534 | AB8500_SHORTCIRCONF, | ||
2535 | BIT(AB8500_SHORTCIRCONF_HSZCDDIS)); | ||
2536 | 2534 | ||
2537 | /* Add filter controls */ | 2535 | /* Add filter controls */ |
2538 | status = snd_soc_add_codec_controls(codec, ab8500_filter_controls, | 2536 | status = snd_soc_add_codec_controls(codec, ab8500_filter_controls, |