Skip to content

Commit b487df8

Browse files
KailangYanggregkh
authored andcommitted
ALSA: hda/realtek - Headphone Mic can't record after S3
commit d07a9a4 upstream. Dell headset mode platform with ALC236. It doesn't recording after system resume from S3. S3 mode was deep. s2idle was not has this issue. S3 deep will cut of codec power. So, the register will back to default after resume back. This patch will solve this issue. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dd02526 commit b487df8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3236,6 +3236,7 @@ static void alc256_init(struct hda_codec *codec)
32363236
alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */
32373237
alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */
32383238
alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15);
3239+
alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/
32393240
}
32403241

32413242
static void alc256_shutup(struct hda_codec *codec)
@@ -7782,7 +7783,6 @@ static int patch_alc269(struct hda_codec *codec)
77827783
spec->shutup = alc256_shutup;
77837784
spec->init_hook = alc256_init;
77847785
spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */
7785-
alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/
77867786
break;
77877787
case 0x10ec0257:
77887788
spec->codec_variant = ALC269_TYPE_ALC257;

0 commit comments

Comments
 (0)