Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133105
b: refs/heads/master
c: 7a411ee
h: refs/heads/master
i:
  133103: f67dcee
v: v3
  • Loading branch information
Takashi Iwai committed Mar 6, 2009
1 parent 27ed672 commit bd63e1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 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: dc04d1b4d2043e2fca2d94d6d5542b930f2bc5b3
refs/heads/master: 7a411ee01bf3114ba2a2ae013eaae4e3c41f8eb5
21 changes: 13 additions & 8 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,15 +1552,20 @@ int snd_hda_add_vmaster(struct hda_codec *codec, char *name,

for (s = slaves; *s; s++) {
struct snd_kcontrol *sctl;

sctl = snd_hda_find_mixer_ctl(codec, *s);
if (!sctl) {
snd_printdd("Cannot find slave %s, skipped\n", *s);
continue;
int i = 0;
for (;;) {
sctl = _snd_hda_find_mixer_ctl(codec, *s, i);
if (!sctl) {
if (!i)
snd_printdd("Cannot find slave %s, "
"skipped\n", *s);
break;
}
err = snd_ctl_add_slave(kctl, sctl);
if (err < 0)
return err;
i++;
}
err = snd_ctl_add_slave(kctl, sctl);
if (err < 0)
return err;
}
return 0;
}
Expand Down

0 comments on commit bd63e1c

Please sign in to comment.