diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-09 05:45:59 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-09 05:45:59 -0400 |
commit | 63b2413b2ff446e30286c2bd775fd10b12d188c6 (patch) | |
tree | 6de15ad754b402fa550f8848c7e0ebcac7f75fae /sound | |
parent | 277a57c710ff73af1213f5d4b42bf6458c1ebca3 (diff) |
ALSA: hda - don't build digital output controls if not exist
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 57251d72b12..f5527380a24 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -779,6 +779,9 @@ static int build_digital_output(struct hda_codec *codec) | |||
779 | struct cs_spec *spec = codec->spec; | 779 | struct cs_spec *spec = codec->spec; |
780 | int err; | 780 | int err; |
781 | 781 | ||
782 | if (!spec->multiout.dig_out_nid) | ||
783 | return 0; | ||
784 | |||
782 | err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid); | 785 | err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid); |
783 | if (err < 0) | 786 | if (err < 0) |
784 | return err; | 787 | return err; |