Commit 695cd4a3 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Disable SPDIF only when no pin config set for HP with AD1981

Some HP laptops with AD1981 have SPDIF connections, but currently the
driver disables it statically.  Better to check the pin default config
to judge whether to enable or disable the SPDIF.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b4a655e8
...@@ -1922,7 +1922,8 @@ static int patch_ad1981(struct hda_codec *codec) ...@@ -1922,7 +1922,8 @@ static int patch_ad1981(struct hda_codec *codec)
spec->mixers[0] = ad1981_hp_mixers; spec->mixers[0] = ad1981_hp_mixers;
spec->num_init_verbs = 2; spec->num_init_verbs = 2;
spec->init_verbs[1] = ad1981_hp_init_verbs; spec->init_verbs[1] = ad1981_hp_init_verbs;
spec->multiout.dig_out_nid = 0; if (!is_jack_available(codec, 0x0a))
spec->multiout.dig_out_nid = 0;
spec->input_mux = &ad1981_hp_capture_source; spec->input_mux = &ad1981_hp_capture_source;
codec->patch_ops.init = ad1981_hp_init; codec->patch_ops.init = ad1981_hp_init;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment