File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -176,17 +176,10 @@ static int cs35l45_activate_ctl(struct snd_soc_component *component,
176
176
struct snd_kcontrol * kcontrol ;
177
177
struct snd_kcontrol_volatile * vd ;
178
178
unsigned int index_offset ;
179
- char name [SNDRV_CTL_ELEM_ID_NAME_MAXLEN ];
180
179
181
- if (component -> name_prefix )
182
- snprintf (name , SNDRV_CTL_ELEM_ID_NAME_MAXLEN , "%s %s" ,
183
- component -> name_prefix , ctl_name );
184
- else
185
- snprintf (name , SNDRV_CTL_ELEM_ID_NAME_MAXLEN , "%s" , ctl_name );
186
-
187
- kcontrol = snd_soc_card_get_kcontrol_locked (component -> card , name );
180
+ kcontrol = snd_soc_component_get_kcontrol_locked (component , ctl_name );
188
181
if (!kcontrol ) {
189
- dev_err (component -> dev , "Can't find kcontrol %s\n" , name );
182
+ dev_err (component -> dev , "Can't find kcontrol %s\n" , ctl_name );
190
183
return - EINVAL ;
191
184
}
192
185
You can’t perform that action at this time.
0 commit comments