Skip to content

Commit

Permalink
ASoC: Convert DA7210 to table based DAPM 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 Oct 14, 2011
1 parent bc6ae96 commit a6f096f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/codecs/da7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,6 @@ static int da7210_probe(struct snd_soc_codec *codec)
/* Activate all enabled subsystem */
snd_soc_write(codec, DA7210_STARTUP1, DA7210_SC_MST_EN);

snd_soc_add_controls(codec, da7210_snd_controls,
ARRAY_SIZE(da7210_snd_controls));

dev_info(codec->dev, "DA7210 Audio Codec %s\n", DA7210_VERSION);

return 0;
Expand All @@ -542,6 +539,9 @@ static struct snd_soc_codec_driver soc_codec_dev_da7210 = {
.reg_word_size = sizeof(u8),
.reg_cache_default = da7210_reg,
.volatile_register = da7210_volatile_register,

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

#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
Expand Down

0 comments on commit a6f096f

Please sign in to comment.