Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Fix a typo with sc_out/inports when setting the hard...



details:   https://anonhg.NetBSD.org/src/rev/ab3eb2224bad
branches:  trunk
changeset: 322780:ab3eb2224bad
user:      nat <nat%NetBSD.org@localhost>
date:      Thu May 17 11:35:31 2018 +0000

description:
Fix a typo with sc_out/inports when setting the hardware recording gain on the
mix ring.  Found by mrg@

XXX pullup-8

diffstat:

 sys/dev/audio.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f551bd90b3b6 -r ab3eb2224bad sys/dev/audio.c
--- a/sys/dev/audio.c   Thu May 17 08:24:28 2018 +0000
+++ b/sys/dev/audio.c   Thu May 17 11:35:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.455 2018/05/15 10:23:03 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.456 2018/05/17 11:35:31 nat Exp $  */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.455 2018/05/15 10:23:03 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.456 2018/05/17 11:35:31 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -4766,8 +4766,8 @@
 
        if (SPECIFIED(r->gain)) {
                if (!sc->sc_usemixer || vc == &sc->sc_mixring) {
-                       au_get_gain(sc, &sc->sc_outports, &gain, &balance);
-                       error = au_set_gain(sc, &sc->sc_outports, r->gain, balance);
+                       au_get_gain(sc, &sc->sc_inports, &gain, &balance);
+                       error = au_set_gain(sc, &sc->sc_inports, r->gain, balance);
                        if (error)
                                goto cleanup;
                } else



Home | Main Index | Thread Index | Old Index