Skip to content

Commit

Permalink
ASoC: Convert WM8804 to table based control init
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Dec 9, 2011
1 parent bc9c040 commit 5a37452
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/soc/codecs/wm8804.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,6 @@ static int wm8804_probe(struct snd_soc_codec *codec)

wm8804_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

snd_soc_add_controls(codec, wm8804_snd_controls,
ARRAY_SIZE(wm8804_snd_controls));
return 0;

err_reg_enable:
Expand Down Expand Up @@ -715,7 +713,10 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8804 = {
.reg_cache_size = ARRAY_SIZE(wm8804_reg_defs),
.reg_word_size = sizeof(u8),
.reg_cache_default = wm8804_reg_defs,
.volatile_register = wm8804_volatile
.volatile_register = wm8804_volatile,

.controls = wm8804_snd_controls,
.num_controls = ARRAY_SIZE(wm8804_snd_controls),
};

static const struct of_device_id wm8804_of_match[] = {
Expand Down

0 comments on commit 5a37452

Please sign in to comment.