summaryrefslogtreecommitdiff
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2010-08-02 11:13:25 (GMT)
committerTakashi Iwai <tiwai@suse.de>2010-08-02 12:51:01 (GMT)
commit7bfb9c031ec2d220d48bf679553d6177c2e66625 (patch)
tree9771798d7144d0bbdc4d77d4c5aa0e65bcd2a502 /sound/pci/hda
parentc7a9434dd6ea74464b0419a274463c914197bc98 (diff)
downloadlinux-7bfb9c031ec2d220d48bf679553d6177c2e66625.tar.xz
ALSA: hda - Do not try to create speaker NIDs for ALC268 if there aren't any
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 49c04fc..cf14b00 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -13216,7 +13216,7 @@ static int alc268_auto_create_multi_out_ctls(struct alc_spec *spec,
HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_INPUT));
if (err < 0)
return err;
- } else {
+ } else if (nid) {
err = alc268_new_analog_output(spec, nid, "Speaker", 0);
if (err < 0)
return err;