summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2015-06-10 20:02:42 +0000
committerratchov <ratchov@openbsd.org>2015-06-10 20:02:42 +0000
commit1a6274a5b75c403ddfc9895db0b3182cfe632ea6 (patch)
treee0ba02bf21f19eaaf29c21d5ea80b2a1d0a42eb1
parentDo not set "rcvif", if_input() does it for us. (diff)
downloadwireguard-openbsd-1a6274a5b75c403ddfc9895db0b3182cfe632ea6.tar.xz
wireguard-openbsd-1a6274a5b75c403ddfc9895db0b3182cfe632ea6.zip
Use first 4 channels of the board. The previous channel setting
caused DMA on the wrong memory location during recording. ok kettenis@
-rw-r--r--sys/dev/pci/autri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/autri.c b/sys/dev/pci/autri.c
index 1ba41523840..55e15990655 100644
--- a/sys/dev/pci/autri.c
+++ b/sys/dev/pci/autri.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autri.c,v 1.37 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: autri.c,v 1.38 2015/06/10 20:02:42 ratchov Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@@ -697,8 +697,8 @@ autri_init(void *sc_)
if (sc->sc_devid == AUTRI_DEVICE_ID_ALI_M5451) {
sc->sc_play.ch = 0;
sc->sc_play.ch_intr = 1;
- sc->sc_rec.ch = 31;
- sc->sc_rec.ch_intr = 2;
+ sc->sc_rec.ch = 2;
+ sc->sc_rec.ch_intr = 3;
} else {
sc->sc_play.ch = 0x20;
sc->sc_play.ch_intr = 0x21;