File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3619,15 +3619,16 @@ static void skl_tplg_complete(struct snd_soc_component *component)
36193619
36203620 list_for_each_entry (dobj , & component -> dobj_list , list ) {
36213621 struct snd_kcontrol * kcontrol = dobj -> control .kcontrol ;
3622- struct soc_enum * se =
3623- (struct soc_enum * )kcontrol -> private_value ;
3624- char * * texts = dobj -> control .dtexts ;
3622+ struct soc_enum * se ;
3623+ char * * texts ;
36253624 char chan_text [4 ];
36263625
3627- if (dobj -> type != SND_SOC_DOBJ_ENUM ||
3628- dobj -> control .kcontrol -> put !=
3629- skl_tplg_multi_config_set_dmic )
3626+ if (dobj -> type != SND_SOC_DOBJ_ENUM || !kcontrol ||
3627+ kcontrol -> put != skl_tplg_multi_config_set_dmic )
36303628 continue ;
3629+
3630+ se = (struct soc_enum * )kcontrol -> private_value ;
3631+ texts = dobj -> control .dtexts ;
36313632 sprintf (chan_text , "c%d" , mach -> mach_params .dmic_num );
36323633
36333634 for (i = 0 ; i < se -> items ; i ++ ) {
You can’t perform that action at this time.
0 commit comments