diff options
-rw-r--r-- | sound/pci/hda/hda_codec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 5c6419ead015..37c413923db8 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1055,6 +1055,12 @@ int snd_hda_add_vmaster(struct hda_codec *codec, char *name, | |||
1055 | const char **s; | 1055 | const char **s; |
1056 | int err; | 1056 | int err; |
1057 | 1057 | ||
1058 | for (s = slaves; *s && !snd_hda_find_mixer_ctl(codec, *s); s++) | ||
1059 | ; | ||
1060 | if (!*s) { | ||
1061 | snd_printdd("No slave found for %s\n", name); | ||
1062 | return 0; | ||
1063 | } | ||
1058 | kctl = snd_ctl_make_virtual_master(name, tlv); | 1064 | kctl = snd_ctl_make_virtual_master(name, tlv); |
1059 | if (!kctl) | 1065 | if (!kctl) |
1060 | return -ENOMEM; | 1066 | return -ENOMEM; |