Skip to content

Commit

Permalink
ALSA: hda - don't build digital output controls if not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jul 9, 2009
1 parent 277a57c commit 63b2413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63b2413

Please sign in to comment.