svn commit: r361002 - head/sys/dev/sound/pci/hda

Andriy Gapon avg at FreeBSD.org
Wed May 13 06:26:31 UTC 2020


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;
 		}


More information about the svn-src-all mailing list