hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/mt6351.c
....@@ -1066,11 +1066,6 @@
10661066 return 0;
10671067 }
10681068
1069
-/* DAPM Kcontrols */
1070
-static const struct snd_kcontrol_new mt_lineout_control =
1071
- SOC_DAPM_SINGLE("Switch", MT6351_AUDDEC_ANA_CON3,
1072
- RG_AUDLOLPWRUP_VAUDP32_BIT, 1, 0);
1073
-
10741069 /* DAPM Widgets */
10751070 static const struct snd_soc_dapm_widget mt6351_dapm_widgets[] = {
10761071 /* Digital Clock */
....@@ -1415,8 +1410,6 @@
14151410
14161411 static int mt6351_codec_init_reg(struct snd_soc_component *cmpnt)
14171412 {
1418
- int ret = 0;
1419
-
14201413 /* Disable CLKSQ 26MHz */
14211414 regmap_update_bits(cmpnt->regmap, MT6351_TOP_CLKSQ, 0x0001, 0x0);
14221415 /* disable AUDGLB */
....@@ -1434,7 +1427,7 @@
14341427 /* Reverse the PMIC clock*/
14351428 regmap_update_bits(cmpnt->regmap, MT6351_AFE_PMIC_NEWIF_CFG2,
14361429 0x8000, 0x8000);
1437
- return ret;
1430
+ return 0;
14381431 }
14391432
14401433 static int mt6351_codec_probe(struct snd_soc_component *cmpnt)