@@ -975,8 +975,8 @@ static inline void wm_adsp_debugfs_clear(struct wm_adsp *dsp)
975975}
976976#endif
977977
978- static int wm_adsp_fw_get (struct snd_kcontrol * kcontrol ,
979- struct snd_ctl_elem_value * ucontrol )
978+ int wm_adsp_fw_get (struct snd_kcontrol * kcontrol ,
979+ struct snd_ctl_elem_value * ucontrol )
980980{
981981 struct snd_soc_codec * codec = snd_soc_kcontrol_codec (kcontrol );
982982 struct soc_enum * e = (struct soc_enum * )kcontrol -> private_value ;
@@ -986,9 +986,10 @@ static int wm_adsp_fw_get(struct snd_kcontrol *kcontrol,
986986
987987 return 0 ;
988988}
989+ EXPORT_SYMBOL_GPL (wm_adsp_fw_get );
989990
990- static int wm_adsp_fw_put (struct snd_kcontrol * kcontrol ,
991- struct snd_ctl_elem_value * ucontrol )
991+ int wm_adsp_fw_put (struct snd_kcontrol * kcontrol ,
992+ struct snd_ctl_elem_value * ucontrol )
992993{
993994 struct snd_soc_codec * codec = snd_soc_kcontrol_codec (kcontrol );
994995 struct soc_enum * e = (struct soc_enum * )kcontrol -> private_value ;
@@ -1012,8 +1013,9 @@ static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
10121013
10131014 return ret ;
10141015}
1016+ EXPORT_SYMBOL_GPL (wm_adsp_fw_put );
10151017
1016- static const struct soc_enum wm_adsp_fw_enum [] = {
1018+ const struct soc_enum wm_adsp_fw_enum [] = {
10171019 SOC_ENUM_SINGLE (0 , 0 , ARRAY_SIZE (wm_adsp_fw_text ), wm_adsp_fw_text ),
10181020 SOC_ENUM_SINGLE (0 , 1 , ARRAY_SIZE (wm_adsp_fw_text ), wm_adsp_fw_text ),
10191021 SOC_ENUM_SINGLE (0 , 2 , ARRAY_SIZE (wm_adsp_fw_text ), wm_adsp_fw_text ),
@@ -1022,29 +1024,7 @@ static const struct soc_enum wm_adsp_fw_enum[] = {
10221024 SOC_ENUM_SINGLE (0 , 5 , ARRAY_SIZE (wm_adsp_fw_text ), wm_adsp_fw_text ),
10231025 SOC_ENUM_SINGLE (0 , 6 , ARRAY_SIZE (wm_adsp_fw_text ), wm_adsp_fw_text ),
10241026};
1025-
1026- const struct snd_kcontrol_new wm_adsp_fw_controls [] = {
1027- SOC_ENUM_EXT ("DSP1 Firmware" , wm_adsp_fw_enum [0 ],
1028- wm_adsp_fw_get , wm_adsp_fw_put ),
1029- SOC_ENUM_EXT ("DSP2 Firmware" , wm_adsp_fw_enum [1 ],
1030- wm_adsp_fw_get , wm_adsp_fw_put ),
1031- SOC_ENUM_EXT ("DSP3 Firmware" , wm_adsp_fw_enum [2 ],
1032- wm_adsp_fw_get , wm_adsp_fw_put ),
1033- SOC_ENUM_EXT ("DSP4 Firmware" , wm_adsp_fw_enum [3 ],
1034- wm_adsp_fw_get , wm_adsp_fw_put ),
1035- SOC_ENUM_EXT ("DSP5 Firmware" , wm_adsp_fw_enum [4 ],
1036- wm_adsp_fw_get , wm_adsp_fw_put ),
1037- SOC_ENUM_EXT ("DSP6 Firmware" , wm_adsp_fw_enum [5 ],
1038- wm_adsp_fw_get , wm_adsp_fw_put ),
1039- SOC_ENUM_EXT ("DSP7 Firmware" , wm_adsp_fw_enum [6 ],
1040- wm_adsp_fw_get , wm_adsp_fw_put ),
1041- };
1042- EXPORT_SYMBOL_GPL (wm_adsp_fw_controls );
1043-
1044- static const struct snd_kcontrol_new wm_adsp_ao_fw_controls [] = {
1045- SOC_ENUM_EXT ("DSP1AO Firmware" , wm_adsp_fw_enum [0 ],
1046- wm_adsp_fw_get , wm_adsp_fw_put ),
1047- };
1027+ EXPORT_SYMBOL_GPL (wm_adsp_fw_enum );
10481028
10491029static struct wm_adsp_region const * wm_adsp_find_region (struct wm_adsp * dsp ,
10501030 int type )
@@ -3934,7 +3914,6 @@ EXPORT_SYMBOL_GPL(wm_halo_event);
39343914int wm_adsp2_codec_probe (struct wm_adsp * dsp , struct snd_soc_codec * codec )
39353915{
39363916 char preload [32 ];
3937- int ret ;
39383917
39393918 if (!dsp -> suffix )
39403919 dsp -> suffix = "" ;
@@ -3948,16 +3927,7 @@ int wm_adsp2_codec_probe(struct wm_adsp *dsp, struct snd_soc_codec *codec)
39483927
39493928 dsp -> codec = codec ;
39503929
3951- if (dsp -> ao_dsp )
3952- ret = snd_soc_add_codec_controls (codec ,
3953- & wm_adsp_ao_fw_controls [dsp -> num - 1 ],
3954- 1 );
3955- else
3956- ret = snd_soc_add_codec_controls (codec ,
3957- & wm_adsp_fw_controls [dsp -> num - 1 ],
3958- 1 );
3959-
3960- return ret ;
3930+ return 0 ;
39613931}
39623932EXPORT_SYMBOL_GPL (wm_adsp2_codec_probe );
39633933
0 commit comments