Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Enable full-duplex mode by default on drivers that s...



details:   https://anonhg.NetBSD.org/src/rev/273458125fca
branches:  trunk
changeset: 580477:273458125fca
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Apr 25 13:19:46 2005 +0000

description:
Enable full-duplex mode by default on drivers that support it if the
underlying audio device was opened read/write. This is consistent with
Linux OSS behaviour and fixes a bug with certain applications (including
Skype) that assume this behaviour.

Fixes PR# 30044.

diffstat:

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

diffs (31 lines):

diff -r 6ed05a0bd193 -r 273458125fca sys/dev/audio.c
--- a/sys/dev/audio.c   Mon Apr 25 12:28:10 2005 +0000
+++ b/sys/dev/audio.c   Mon Apr 25 13:19:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.192 2005/02/13 23:53:20 fredb Exp $        */
+/*     $NetBSD: audio.c,v 1.193 2005/04/25 13:19:46 jmcneill Exp $     */
 
 /*
  * Copyright (c) 1991-1993 Regents of the University of California.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.192 2005/02/13 23:53:20 fredb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.193 2005/04/25 13:19:46 jmcneill Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -1306,11 +1306,9 @@
        sc->sc_eof = 0;
        sc->sc_playdrop = 0;
 
-       sc->sc_full_duplex = 0;
-/* doesn't always work right on SB.
+       sc->sc_full_duplex = 
                (flags & (FWRITE|FREAD)) == (FWRITE|FREAD) &&
                (hw->get_props(sc->hw_hdl) & AUDIO_PROP_FULLDUPLEX);
-*/
 
        mode = 0;
        if (flags & FREAD) {



Home | Main Index | Thread Index | Old Index