Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63b2413b authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - don't build digital output controls if not exist



Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 277a57c7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;