Skip to content

Commit a6f096f

Browse files
committed
ASoC: Convert DA7210 to table based DAPM init
Signed-off-by: Mark Brown <[email protected]>
1 parent bc6ae96 commit a6f096f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/codecs/da7210.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,6 @@ static int da7210_probe(struct snd_soc_codec *codec)
528528
/* Activate all enabled subsystem */
529529
snd_soc_write(codec, DA7210_STARTUP1, DA7210_SC_MST_EN);
530530

531-
snd_soc_add_controls(codec, da7210_snd_controls,
532-
ARRAY_SIZE(da7210_snd_controls));
533-
534531
dev_info(codec->dev, "DA7210 Audio Codec %s\n", DA7210_VERSION);
535532

536533
return 0;
@@ -542,6 +539,9 @@ static struct snd_soc_codec_driver soc_codec_dev_da7210 = {
542539
.reg_word_size = sizeof(u8),
543540
.reg_cache_default = da7210_reg,
544541
.volatile_register = da7210_volatile_register,
542+
543+
.controls = da7210_snd_controls,
544+
.num_controls = ARRAY_SIZE(da7210_snd_controls),
545545
};
546546

547547
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)

0 commit comments

Comments
 (0)