Skip to content

Commit

Permalink
ASoC: ab8500: Use ASoC I/O functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Sep 20, 2013
1 parent 38bfd48 commit 51f20e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sound/soc/codecs/ab8500-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,12 +2527,10 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
}

/* Override HW-defaults */
ab8500_codec_write_reg(codec,
AB8500_ANACONF5,
BIT(AB8500_ANACONF5_HSAUTOEN));
ab8500_codec_write_reg(codec,
AB8500_SHORTCIRCONF,
BIT(AB8500_SHORTCIRCONF_HSZCDDIS));
snd_soc_write(codec, AB8500_ANACONF5,
BIT(AB8500_ANACONF5_HSAUTOEN));
snd_soc_write(codec, AB8500_SHORTCIRCONF,
BIT(AB8500_SHORTCIRCONF_HSZCDDIS));

/* Add filter controls */
status = snd_soc_add_codec_controls(codec, ab8500_filter_controls,
Expand Down

0 comments on commit 51f20e4

Please sign in to comment.