projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
277a57c
)
ALSA: hda - don't build digital output controls if not exist
author
Takashi Iwai
<tiwai@suse.de>
Thu, 9 Jul 2009 09:45:59 +0000
(11:45 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 9 Jul 2009 09:45:59 +0000
(11:45 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_cirrus.c
b/sound/pci/hda/patch_cirrus.c
index 57251d72b124481ff51a19153efc8b28c456b944..f5527380a2456cb3ad9921528af4b7b769476272 100644
(file)
--- 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)
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;