Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132888
b: refs/heads/master
c: 07495f3
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Mar 6, 2009
1 parent 4de1404 commit 5a1ab18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0c5033f02182d1e9634edc737df88b82264e820
refs/heads/master: 07495f3e5af3a472f0f49957692cac15168fa528
7 changes: 3 additions & 4 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static int dapm_new_mixer(struct snd_soc_codec *codec,
* kcontrol name.
*/
name_len = strlen(w->kcontrols[i].name) + 1;
if (w->id == snd_soc_dapm_mixer)
if (w->id != snd_soc_dapm_mixer_named_ctl)
name_len += 1 + strlen(w->name);

path->long_name = kmalloc(name_len, GFP_KERNEL);
Expand All @@ -341,15 +341,14 @@ static int dapm_new_mixer(struct snd_soc_codec *codec,
return -ENOMEM;

switch (w->id) {
case snd_soc_dapm_mixer:
default:
snprintf(path->long_name, name_len, "%s %s",
w->name, w->kcontrols[i].name);
break;
break;
case snd_soc_dapm_mixer_named_ctl:
snprintf(path->long_name, name_len, "%s",
w->kcontrols[i].name);
break;
break;
}

path->long_name[name_len - 1] = '\0';
Expand Down

0 comments on commit 5a1ab18

Please sign in to comment.