File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -528,9 +528,6 @@ static int da7210_probe(struct snd_soc_codec *codec)
528
528
/* Activate all enabled subsystem */
529
529
snd_soc_write (codec , DA7210_STARTUP1 , DA7210_SC_MST_EN );
530
530
531
- snd_soc_add_controls (codec , da7210_snd_controls ,
532
- ARRAY_SIZE (da7210_snd_controls ));
533
-
534
531
dev_info (codec -> dev , "DA7210 Audio Codec %s\n" , DA7210_VERSION );
535
532
536
533
return 0 ;
@@ -542,6 +539,9 @@ static struct snd_soc_codec_driver soc_codec_dev_da7210 = {
542
539
.reg_word_size = sizeof (u8 ),
543
540
.reg_cache_default = da7210_reg ,
544
541
.volatile_register = da7210_volatile_register ,
542
+
543
+ .controls = da7210_snd_controls ,
544
+ .num_controls = ARRAY_SIZE (da7210_snd_controls ),
545
545
};
546
546
547
547
#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE )
You can’t perform that action at this time.
0 commit comments