diff options
author | Mark Brown <broonie@kernel.org> | 2016-02-10 14:23:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-10 14:23:01 -0500 |
commit | 2022d24e2bc03639da2630b7299d723bf88fc487 (patch) | |
tree | 946427fa40131730720aab9e27b7f7e020d22d52 | |
parent | 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95 (diff) | |
parent | 41d80025a83b9c7a94f97ef25c4cd3345bdc3c5e (diff) |
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
-rw-r--r-- | sound/soc/soc-dapm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 5a2812fa8946..0d3707987900 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -310,7 +310,7 @@ struct dapm_kcontrol_data { | |||
310 | }; | 310 | }; |
311 | 311 | ||
312 | static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget, | 312 | static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget, |
313 | struct snd_kcontrol *kcontrol) | 313 | struct snd_kcontrol *kcontrol, const char *ctrl_name) |
314 | { | 314 | { |
315 | struct dapm_kcontrol_data *data; | 315 | struct dapm_kcontrol_data *data; |
316 | struct soc_mixer_control *mc; | 316 | struct soc_mixer_control *mc; |
@@ -333,7 +333,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget, | |||
333 | if (mc->autodisable) { | 333 | if (mc->autodisable) { |
334 | struct snd_soc_dapm_widget template; | 334 | struct snd_soc_dapm_widget template; |
335 | 335 | ||
336 | name = kasprintf(GFP_KERNEL, "%s %s", kcontrol->id.name, | 336 | name = kasprintf(GFP_KERNEL, "%s %s", ctrl_name, |
337 | "Autodisable"); | 337 | "Autodisable"); |
338 | if (!name) { | 338 | if (!name) { |
339 | ret = -ENOMEM; | 339 | ret = -ENOMEM; |
@@ -371,7 +371,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget, | |||
371 | if (e->autodisable) { | 371 | if (e->autodisable) { |
372 | struct snd_soc_dapm_widget template; | 372 | struct snd_soc_dapm_widget template; |
373 | 373 | ||
374 | name = kasprintf(GFP_KERNEL, "%s %s", kcontrol->id.name, | 374 | name = kasprintf(GFP_KERNEL, "%s %s", ctrl_name, |
375 | "Autodisable"); | 375 | "Autodisable"); |
376 | if (!name) { | 376 | if (!name) { |
377 | ret = -ENOMEM; | 377 | ret = -ENOMEM; |
@@ -871,7 +871,7 @@ static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w, | |||
871 | 871 | ||
872 | kcontrol->private_free = dapm_kcontrol_free; | 872 | kcontrol->private_free = dapm_kcontrol_free; |
873 | 873 | ||
874 | ret = dapm_kcontrol_data_alloc(w, kcontrol); | 874 | ret = dapm_kcontrol_data_alloc(w, kcontrol, name); |
875 | if (ret) { | 875 | if (ret) { |
876 | snd_ctl_free_one(kcontrol); | 876 | snd_ctl_free_one(kcontrol); |
877 | goto exit_free; | 877 | goto exit_free; |