提交 63b2413b 编写于 作者: T Takashi Iwai

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

Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 277a57c7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册