Module Name: src
Committed By: jmcneill
Date: Mon Apr 9 10:16:46 UTC 2018
Modified Files:
src/sys/dev/ic: pl041.c
Log Message:
Use AC97_SLOT_* definitions instead of magic numbers. NFC.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/pl041.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/pl041.c
diff -u src/sys/dev/ic/pl041.c:1.3 src/sys/dev/ic/pl041.c:1.4
--- src/sys/dev/ic/pl041.c:1.3 Thu Jun 8 11:05:16 2017
+++ src/sys/dev/ic/pl041.c Mon Apr 9 10:16:46 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: pl041.c,v 1.3 2017/06/08 11:05:16 jmcneill Exp $ */
+/* $NetBSD: pl041.c,v 1.4 2018/04/09 10:16:46 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pl041.c,v 1.3 2017/06/08 11:05:16 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pl041.c,v 1.4 2018/04/09 10:16:46 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -203,7 +203,7 @@ aaci_trigger_output(void *priv, void *st
AACI_WRITE(sc, AACIIE, AACIIE_TXIE | AACIIE_TXUIE);
AACI_WRITE(sc, AACITXCR, AACITXCR_TXFEN | AACITXCR_TXEN |
AACITXCR_TXCM | AACITXCR_TSIZE_16 |
- AACITXCR_TX(3) | AACITXCR_TX(4));
+ AACITXCR_TX(AC97_SLOT_PCM_L) | AACITXCR_TX(AC97_SLOT_PCM_R));
return 0;
}