1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Partially revert the previous commit.

It was an experiment and not meant to be committed. :-(
This commit is contained in:
Jung-uk Kim 2019-08-19 21:45:25 +00:00
parent 5059f7c3ed
commit 8a3238521b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351233

View File

@ -778,12 +778,6 @@ hdaa_patch_direct(struct hdaa_devinfo *devinfo)
hda_command(dev, HDA_CMD_12BIT(0, devinfo->nid,
0xf88, 0xc0));
break;
case HDA_CODEC_ALC255:
case HDA_CODEC_ALC256:
case HDA_CODEC_ALC285:
val = hdaa_read_coef(dev, 0x20, 0x46);
hdaa_write_coef(dev, 0x20, 0x46, val | 0x3000);
break;
case HDA_CODEC_ALC1150:
if (subid == 0xd9781462) {
/* Too low volume on MSI H170 GAMING M3. */
@ -791,6 +785,10 @@ hdaa_patch_direct(struct hdaa_devinfo *devinfo)
}
break;
}
if (id == HDA_CODEC_ALC255 || id == HDA_CODEC_ALC256) {
val = hdaa_read_coef(dev, 0x20, 0x46);
hdaa_write_coef(dev, 0x20, 0x46, val|0x3000);
}
if (subid == APPLE_INTEL_MAC)
hda_command(dev, HDA_CMD_12BIT(0, devinfo->nid,
0x7e7, 0));