From 8a3238521b704c52bcc5fb9f9c67096c93a9e1f6 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 19 Aug 2019 21:45:25 +0000 Subject: [PATCH] Partially revert the previous commit. It was an experiment and not meant to be committed. :-( --- sys/dev/sound/pci/hda/hdaa_patches.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c index dae2984f1294..64d29997cbaa 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -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));