ALSA: hda/realtek: reset eapd coeff to default value for alc287
Subsystems (2)
PATCH 1/1 ALSA: hda/realtek: reset eapd coeff to default value for alc287
Ubuntu users reported an audio bug on the Lenovo Yoga Slim 7 14IIL05, he installed dual OS (Windows + Linux), if he booted to the Linux from Windows, the Speaker can't work well, it has crackling noise, if he poweroff the machine first after Windows, the Speaker worked well.
Before rebooting or shutdown from Windows, the Windows changes the codec eapd coeff value, but the BIOS doesn't re-initialize its value, when booting into the Linux from Windows, the eapd coeff value is not correct. To fix it, set the codec default value to that coeff register in the alsa driver.
--- sound/pci/hda/patch_realtek.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
sound/pci/hda/patch_realtek.c +4 -1
@@ -395,7 +395,6 @@ static void alc_fill_eapd_coef(struct hda_codec *codec)case 0x10ec0282 :case 0x10ec0283 :case 0x10ec0286 : -case 0x10ec0287 :case 0x10ec0288 :case 0x10ec0285 :case 0x10ec0298 :
@@ -406,6 +405,10 @@ static void alc_fill_eapd_coef(struct hda_codec *codec)case 0x10ec0275 :alc_update_coef_idx (codec,0xe ,0 ,1 <<0 );break ; +case 0x10ec0287 : +alc_update_coef_idx (codec,0x10 ,1 <<9 ,0 ); +alc_write_coef_idx (codec,0x8 ,0x4ab7 ); +break ;case 0x10ec0293 :alc_update_coef_idx (codec,0xa ,1 <<13 ,0 );break ;
Signature · 1 line
2.25.1
Takashi Iwai
AppliedQuoted 13 lines · Hui Wang
Ubuntu users reported an audio bug on the Lenovo Yoga Slim 7 14IIL05, he installed dual OS (Windows + Linux), if he booted to the Linux from Windows, the Speaker can't work well, it has crackling noise, if he poweroff the machine first after Windows, the Speaker worked well.
Before rebooting or shutdown from Windows, the Windows changes the codec eapd coeff value, but the BIOS doesn't re-initialize its value, when booting into the Linux from Windows, the eapd coeff value is not correct. To fix it, set the codec default value to that coeff register in the alsa driver.
Quoted 4 lines
Suggested-by Kailang Yang <[email protected]>Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>
Thanks, applied.
Takashi