Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

src: Use AC97_SLOT_* definitions instead of magic numbers. NFC.



details:   https://anonhg.NetBSD.org/src/rev/d07826ffbfe5
branches:  trunk
changeset: 317934:d07826ffbfe5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Apr 09 10:16:46 2018 +0000
description:
Use AC97_SLOT_* definitions instead of magic numbers. NFC.

diffstat:

 sys/dev/ic/pl041.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fa122d41a69c -r d07826ffbfe5 sys/dev/ic/pl041.c
--- a/sys/dev/ic/pl041.c        Mon Apr 09 10:15:57 2018 +0000
+++ b/sys/dev/ic/pl041.c        Mon Apr 09 10:16:46 2018 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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_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;
 }



Home | Main Index | Thread Index | Old Index