提交 bf1b0225 编写于 作者: K Kailang Yang 提交者: Takashi Iwai

ALSA: hda - Add alc_init_jacks() call to other codecs

Signed-off-by: NKailang Yang <kailang@realtek.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 1cc9e8f4
...@@ -11006,6 +11006,8 @@ static int patch_alc882(struct hda_codec *codec) ...@@ -11006,6 +11006,8 @@ static int patch_alc882(struct hda_codec *codec)
codec->patch_ops = alc_patch_ops; codec->patch_ops = alc_patch_ops;
if (board_config == ALC882_AUTO) if (board_config == ALC882_AUTO)
spec->init_hook = alc882_auto_init; spec->init_hook = alc882_auto_init;
alc_init_jacks(codec);
#ifdef CONFIG_SND_HDA_POWER_SAVE #ifdef CONFIG_SND_HDA_POWER_SAVE
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc882_loopbacks; spec->loopback.amplist = alc882_loopbacks;
...@@ -12914,6 +12916,8 @@ static int patch_alc262(struct hda_codec *codec) ...@@ -12914,6 +12916,8 @@ static int patch_alc262(struct hda_codec *codec)
codec->patch_ops = alc_patch_ops; codec->patch_ops = alc_patch_ops;
if (board_config == ALC262_AUTO) if (board_config == ALC262_AUTO)
spec->init_hook = alc262_auto_init; spec->init_hook = alc262_auto_init;
alc_init_jacks(codec);
#ifdef CONFIG_SND_HDA_POWER_SAVE #ifdef CONFIG_SND_HDA_POWER_SAVE
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc262_loopbacks; spec->loopback.amplist = alc262_loopbacks;
...@@ -13993,6 +13997,8 @@ static int patch_alc268(struct hda_codec *codec) ...@@ -13993,6 +13997,8 @@ static int patch_alc268(struct hda_codec *codec)
if (board_config == ALC268_AUTO) if (board_config == ALC268_AUTO)
spec->init_hook = alc268_auto_init; spec->init_hook = alc268_auto_init;
alc_init_jacks(codec);
return 0; return 0;
} }
...@@ -14359,6 +14365,7 @@ static void alc269_speaker_automute(struct hda_codec *codec) ...@@ -14359,6 +14365,7 @@ static void alc269_speaker_automute(struct hda_codec *codec)
HDA_AMP_MUTE, bits); HDA_AMP_MUTE, bits);
snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1, snd_hda_codec_amp_stereo(codec, 0x0c, HDA_INPUT, 1,
HDA_AMP_MUTE, bits); HDA_AMP_MUTE, bits);
alc_report_jack(codec, nid);
} }
/* unsolicited event for HP jack sensing */ /* unsolicited event for HP jack sensing */
...@@ -14695,7 +14702,6 @@ static void alc269_auto_init(struct hda_codec *codec) ...@@ -14695,7 +14702,6 @@ static void alc269_auto_init(struct hda_codec *codec)
alc269_auto_init_hp_out(codec); alc269_auto_init_hp_out(codec);
alc269_auto_init_analog_input(codec); alc269_auto_init_analog_input(codec);
alc_auto_init_digital(codec); alc_auto_init_digital(codec);
alc_init_jacks(codec);
if (spec->unsol_event) if (spec->unsol_event)
alc_inithook(codec); alc_inithook(codec);
} }
...@@ -15128,6 +15134,8 @@ static int patch_alc269(struct hda_codec *codec) ...@@ -15128,6 +15134,8 @@ static int patch_alc269(struct hda_codec *codec)
#endif #endif
if (board_config == ALC269_AUTO) if (board_config == ALC269_AUTO)
spec->init_hook = alc269_auto_init; spec->init_hook = alc269_auto_init;
alc_init_jacks(codec);
#ifdef CONFIG_SND_HDA_POWER_SAVE #ifdef CONFIG_SND_HDA_POWER_SAVE
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc269_loopbacks; spec->loopback.amplist = alc269_loopbacks;
...@@ -19393,6 +19401,8 @@ static int patch_alc662(struct hda_codec *codec) ...@@ -19393,6 +19401,8 @@ static int patch_alc662(struct hda_codec *codec)
alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 0); alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 0);
} }
alc_init_jacks(codec);
#ifdef CONFIG_SND_HDA_POWER_SAVE #ifdef CONFIG_SND_HDA_POWER_SAVE
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc662_loopbacks; spec->loopback.amplist = alc662_loopbacks;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册