mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Fix distorted sound on ASUS P1-AH2 caused by accumulated input / output.
Reported/Tested by: Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp>
This commit is contained in:
parent
b3d93fd0c9
commit
4ed06071e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165103
@ -190,6 +190,7 @@ SND_DECLARE_FILE("$FreeBSD$");
|
||||
#define ASUS_M5200_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1993)
|
||||
#define ASUS_U5F_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1263)
|
||||
#define ASUS_A8JC_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1153)
|
||||
#define ASUS_P1AH2_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x81cb)
|
||||
#define ASUS_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0xffff)
|
||||
|
||||
/* IBM / Lenovo */
|
||||
@ -3527,6 +3528,15 @@ hdac_vendor_patch_parse(struct hdac_devinfo *devinfo)
|
||||
w->enable = 0;
|
||||
}
|
||||
break;
|
||||
case HDA_CODEC_ALC861:
|
||||
if (subvendor == ASUS_P1AH2_SUBVENDOR) {
|
||||
struct hdac_audio_ctl *ctl;
|
||||
|
||||
ctl = hdac_audio_ctl_amp_get(devinfo, 28, 1, 1);
|
||||
if (ctl != NULL)
|
||||
ctl->muted = HDA_AMP_MUTE_ALL;
|
||||
}
|
||||
break;
|
||||
case HDA_CODEC_ALC880:
|
||||
for (i = devinfo->startnode; i < devinfo->endnode; i++) {
|
||||
w = hdac_widget_get(devinfo, i);
|
||||
|
Loading…
Reference in New Issue
Block a user