Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commit1c9609e

Browse files
committed
ALSA: hda - Reduce the suspend time consumption for ALC256
ALC256 has its own quirk to override the shutup call, and it containsthe COEF update for pulling down the headset jack control. Currently,the COEF update is called after clearing the headphone pin, and thisseems triggering a stall of the codec communication, and results in along delay over a second at suspend.A quick resolution is to swap the calls: at first with the COEFupdate, then clear the headphone pin.Fixes:4a219ef ("ALSA: hda/realtek - Add ALC256 HP depop function")Bugzilla:https://bugzilla.kernel.org/show_bug.cgi?id=198503Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>Cc: <stable@vger.kernel.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parentc86d95c commit1c9609e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,11 +3154,13 @@ static void alc256_shutup(struct hda_codec *codec)
31543154
if (hp_pin_sense)
31553155
msleep(85);
31563156

3157+
/* 3k pull low control for Headset jack. */
3158+
/* NOTE: call this before clearing the pin, otherwise codec stalls */
3159+
alc_update_coef_idx(codec,0x46,0,3 <<12);
3160+
31573161
snd_hda_codec_write(codec,hp_pin,0,
31583162
AC_VERB_SET_PIN_WIDGET_CONTROL,0x0);
31593163

3160-
alc_update_coef_idx(codec,0x46,0,3 <<12);/* 3k pull low control for Headset jack. */
3161-
31623164
if (hp_pin_sense)
31633165
msleep(100);
31643166

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp