mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
ALSA: hda - don't build digital output controls if not exist
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
277a57c710
commit
63b2413b2f
@ -779,6 +779,9 @@ static int build_digital_output(struct hda_codec *codec)
|
|||||||
struct cs_spec *spec = codec->spec;
|
struct cs_spec *spec = codec->spec;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
if (!spec->multiout.dig_out_nid)
|
||||||
|
return 0;
|
||||||
|
|
||||||
err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid);
|
err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user