Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2020 06:26:31 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361002 - head/sys/dev/sound/pci/hda
Message-ID:  <202005130626.04D6QVWh069315@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed May 13 06:26:30 2020
New Revision: 361002
URL: https://svnweb.freebsd.org/changeset/base/361002

Log:
  snd_hda: fix typos related to quirks set via 'config' tunable
  
  One wrong quirk bit, one wrong variable name.
  
  MFC after:	1 week

Modified:
  head/sys/dev/sound/pci/hda/hdac.c

Modified: head/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.c	Wed May 13 06:24:54 2020	(r361001)
+++ head/sys/dev/sound/pci/hda/hdac.c	Wed May 13 06:26:30 2020	(r361002)
@@ -65,7 +65,7 @@ static const struct {
 	const char *key;
 	uint32_t value;
 } hdac_quirks_tab[] = {
-	{ "64bit", HDAC_QUIRK_DMAPOS },
+	{ "64bit", HDAC_QUIRK_64BIT },
 	{ "dmapos", HDAC_QUIRK_DMAPOS },
 	{ "msi", HDAC_QUIRK_MSI },
 };
@@ -279,10 +279,10 @@ hdac_config_fetch(struct hdac_softc *sc, uint32_t *on,
 			);
 			if (inv == 0) {
 				*on |= hdac_quirks_tab[k].value;
-				*on &= ~hdac_quirks_tab[k].value;
+				*off &= ~hdac_quirks_tab[k].value;
 			} else if (inv != 0) {
 				*off |= hdac_quirks_tab[k].value;
-				*off &= ~hdac_quirks_tab[k].value;
+				*on &= ~hdac_quirks_tab[k].value;
 			}
 			break;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005130626.04D6QVWh069315>