Commit 1561f09a2f91bc258a72225f919807c9e51c8290
Committed by
Jaroslav Kysela
1 parent
1459c7849e
Exists in
master
and in
7 other branches
[ALSA] AD1888 suspend/resume fix
This patch adds a write to an undocumented register, 0x60 Extended Codec Register Page in the AD1888 codec. It is neccessary in order to make suspend/resume work with the AD1888. Signed-off-by: Jaya Kumar <jayakumar.alsa@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff
sound/pci/ac97/ac97_patch.c
| ... | ... | @@ -1371,6 +1371,13 @@ |
| 1371 | 1371 | |
| 1372 | 1372 | snd_ac97_restore_iec958(ac97); |
| 1373 | 1373 | } |
| 1374 | + | |
| 1375 | +static void ad1888_resume(struct snd_ac97 *ac97) | |
| 1376 | +{ | |
| 1377 | + ad18xx_resume(ac97); | |
| 1378 | + snd_ac97_write_cache(ac97, AC97_CODEC_CLASS_REV, 0x8080); | |
| 1379 | +} | |
| 1380 | + | |
| 1374 | 1381 | #endif |
| 1375 | 1382 | |
| 1376 | 1383 | int patch_ad1819(struct snd_ac97 * ac97) |
| ... | ... | @@ -1844,7 +1851,7 @@ |
| 1844 | 1851 | .build_post_spdif = patch_ad198x_post_spdif, |
| 1845 | 1852 | .build_specific = patch_ad1888_specific, |
| 1846 | 1853 | #ifdef CONFIG_PM |
| 1847 | - .resume = ad18xx_resume, | |
| 1854 | + .resume = ad1888_resume, | |
| 1848 | 1855 | #endif |
| 1849 | 1856 | .update_jacks = ad1888_update_jacks, |
| 1850 | 1857 | }; |