summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorKailang Yang <kailang@realtek.com>2019-07-04 04:02:10 -0400
committerTakashi Iwai <tiwai@suse.de>2019-07-04 09:09:06 -0400
commitd07a9a4f66e944fcc900812cbc2f6817bde6a43d (patch)
tree2ac79b5b8d74ea15a6280d231841d72708d7144f /sound/pci
parentb5c21c84705dbd96a0fff930d33022a17910b4f4 (diff)
ALSA: hda/realtek - Headphone Mic can't record after S3
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>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 48f3c5b8d6e9..0f776444ab86 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3268,6 +3268,7 @@ static void alc256_init(struct hda_codec *codec)
3268 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ 3268 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */
3269 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */ 3269 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */
3270 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15); 3270 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15);
3271 alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/
3271} 3272}
3272 3273
3273static void alc256_shutup(struct hda_codec *codec) 3274static void alc256_shutup(struct hda_codec *codec)
@@ -7838,7 +7839,6 @@ static int patch_alc269(struct hda_codec *codec)
7838 spec->shutup = alc256_shutup; 7839 spec->shutup = alc256_shutup;
7839 spec->init_hook = alc256_init; 7840 spec->init_hook = alc256_init;
7840 spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ 7841 spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */
7841 alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/
7842 break; 7842 break;
7843 case 0x10ec0257: 7843 case 0x10ec0257:
7844 spec->codec_variant = ALC269_TYPE_ALC257; 7844 spec->codec_variant = ALC269_TYPE_ALC257;