提交 60e53882 编写于 作者: T Takashi Iwai

ALSA: hda - Fix double creation of SPDIF input controls

Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 40c20fa0
......@@ -471,12 +471,9 @@ static int parse_digital_input(struct hda_codec *codec)
struct auto_pin_cfg *cfg = &spec->autocfg;
int idx;
if (!cfg->dig_in_pin)
return 0;
spec->dig_in = get_adc(codec, cfg->dig_in_pin, &idx);
if (!spec->dig_in)
return 0;
return snd_hda_create_spdif_in_ctls(codec, spec->dig_in);
if (cfg->dig_in_pin)
spec->dig_in = get_adc(codec, cfg->dig_in_pin, &idx);
return 0;
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册