Skip to contentSkip to conversation

ALSA: hda/senary: Ensure EAPD is enabled during init

PATCH Applied [email protected] 2 participants 2 messages Mar 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ALSA: hda/senary: Ensure EAPD is enabled during init

From: wangdicheng <[email protected]>

The driver sets spec->gen.own_eapd_ctl to take manual control of the EAPD (External Amplifier). However, senary_init does not turn on the EAPD, while senary_shutdown turns it off.

Since the generic driver skips EAPD handling when own_eapd_ctl is set, the EAPD remains off after initialization (e.g., after resume), leaving the codec in a non-functional state.

Explicitly call senary_auto_turn_eapd in senary_init to ensure the EAPD is enabled and the codec is functional.

---

v1->v2:
Change the email address to be consistent with the Signed-off-by line.

 sound/hda/codecs/senarytech.c | 5 +++++
 1 file changed, 5 insertions(+)
sound/hda/codecs/senarytech.c +5 -0
index 8822d4dc5e36..6239a25bb8f3 100644
@@ -25,6 +25,7 @@ struct senary_spec {
 	/* extra EAPD pins */
 	unsigned int num_eapds;
 	hda_nid_t eapds[4];
+	bool dynamic_eapd;
 	hda_nid_t mute_led_eapd;
 
 	unsigned int parse_flags; /* flag for snd_hda_parse_pin_defcfg() */
@@ -131,8 +132,12 @@ static void senary_init_gpio_led(struct hda_codec *codec)
 
 static int senary_init(struct hda_codec *codec)
 {
+	struct senary_spec *spec = codec->spec;
+
 	snd_hda_gen_init(codec);
 	senary_init_gpio_led(codec);
+	if (!spec->dynamic_eapd)
+		senary_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, true);
 	snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT);
 
 	return 0;
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 11 lines · On Tue, 03 Mar 2026 09:15:16 +0100, [email protected] wrote:

From: wangdicheng <[email protected]>

The driver sets spec->gen.own_eapd_ctl to take manual control of the EAPD (External Amplifier). However, senary_init does not turn on the EAPD, while senary_shutdown turns it off.

Since the generic driver skips EAPD handling when own_eapd_ctl is set, the EAPD remains off after initialization (e.g., after resume), leaving the codec in a non-functional state.

Quoted 8 lines

Explicitly call senary_auto_turn_eapd in senary_init to ensure the EAPD is enabled and the codec is functional.

---

v1->v2:
Change the email address to be consistent with the Signed-off-by line.

Thanks, applied now.

Takashi