Skip to contentSkip to conversation

ALSA: hda - fixup ALC262 to skip depop delay before D3 on Intel BayleyBay

PATCH Applied [email protected] 2 participants 2 messages Dec 3, 2013 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda - fixup ALC262 to skip depop delay before D3 on Intel BayleyBay

From: Mengdong Lin <[email protected]>

This patch sets a 0ms depop delay in fixup funtion 'alc_fixup_no_depop_delay'. And Realteck ALC262 applies this on Intel Baytrail BayleyBay platform to reduce codec suspend time.

sound/pci/hda/patch_realtek.c +3 -1
index 21dcb7b..69f11e2 100644
@@ -374,8 +374,10 @@ static void alc_fixup_no_depop_delay(struct hda_codec *codec,
 {
 	struct alc_spec *spec = codec->spec;
 
-	if (action == HDA_FIXUP_ACT_PROBE)
+	if (action == HDA_FIXUP_ACT_PROBE) {
 		spec->no_depop_delay = 1;
+		codec->depop_delay = 0;
+	}
 }
 
 static int alc_auto_parse_customize_define(struct hda_codec *codec)
Signature · 1 line
1.8.1.2
Applied
#1 lore raw

At Mon, 2 Dec 2013 22:26:03 -0500,

Quoted 9 lines · [email protected] wrote:

From: Mengdong Lin <[email protected]>

This patch sets a 0ms depop delay in fixup funtion 'alc_fixup_no_depop_delay'. And Realteck ALC262 applies this on Intel Baytrail BayleyBay platform to reduce codec suspend time.

Thanks, applied.

Takashi

Quoted 20 lines
sound/pci/hda/patch_realtek.c +3 -1
index 21dcb7b..69f11e2 100644
@@ -374,8 +374,10 @@ static void alc_fixup_no_depop_delay(struct hda_codec *codec,
 {
 	struct alc_spec *spec = codec->spec;
 
-	if (action == HDA_FIXUP_ACT_PROBE)
+	if (action == HDA_FIXUP_ACT_PROBE) {
 		spec->no_depop_delay = 1;
+		codec->depop_delay = 0;
+	}
 }
 
 static int alc_auto_parse_customize_define(struct hda_codec *codec)
Signature · 1 line
1.8.1.2