commit | 63b2413b2ff446e30286c2bd775fd10b12d188c6 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Thu Jul 09 11:45:59 2009 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Thu Jul 09 11:45:59 2009 +0200 |
tree | 6de15ad754b402fa550f8848c7e0ebcac7f75fae | |
parent | 277a57c710ff73af1213f5d4b42bf6458c1ebca3 [diff] [blame] |
ALSA: hda - don't build digital output controls if not exist Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 57251d7..f552738 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c
@@ -779,6 +779,9 @@ struct cs_spec *spec = codec->spec; int err; + if (!spec->multiout.dig_out_nid) + return 0; + err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid); if (err < 0) return err;