NetBSD Problem Report #30044

From viktor@netbsd.se  Sun Apr 24 03:29:06 2005
Return-Path: <viktor@netbsd.se>
Received: from nova.netbsd.se (nova.netbsd.se [83.140.44.3])
	by narn.netbsd.org (Postfix) with ESMTP id 4E07863B117
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Apr 2005 03:29:06 +0000 (UTC)
Message-Id: <20050424032904.3A5CB1B82C@nova.netbsd.se>
Date: Sun, 24 Apr 2005 05:29:04 +0200 (CEST)
From: viktor@netbsd.se
Reply-To: viktor@netbsd.se
To: gnats-bugs@netbsd.org
Subject: Problem using skype in netbsd with default settings.
X-Send-Pr-Version: 3.95

>Number:         30044
>Category:       kern
>Synopsis:       Soundcard is not by default in full-duplex mode, and causing trouble with skype and possible other applications using full duplex feature.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jmcneill
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 24 03:30:00 +0000 2005
>Closed-Date:    Mon Apr 25 23:07:00 +0000 2005
>Last-Modified:  Mon Apr 25 23:07:00 +0000 2005
>Originator:     viktor@netbsd.se
>Release:        NetBSD 2.0
>Organization:

>Environment:


System: NetBSD pluto.netbsd.se 2.0 NetBSD 2.0 (PLUTO) #0: Sat Jan 29 22:50:13 CET 2005 viktor@pluto.netbsd.se:/usr/src/sys/arch/i386/compile/PLUTO i386
Architecture: i386
Machine: i386
>Description:
	I installed skype (skype-1.0.0.20) from pkgsrc without any additional flags and recieved no error messages. When running skype, the sound output worked        but not the input. After investigating the problem I saw that the soundcard driver did not set the soundcard in full-duplex mode by default.

	Soundcard I used:

	$ dmesg|grep -i eap
	eap0 at pci0 dev 15 function 0: Ensoniq CT5880 CT5880-C (rev. 0x02)
	eap0: interrupting at irq 5
	eap0: ac97: TriTech TR28602 codec; no 3D stereo
	audio0 at eap0: full duplex, mmap, independent
	midi0 at eap0: AudioPCI MIDI UART

>How-To-Repeat:
	Installed skype as I said above, without applying fix using audioctl ulity.
>Fix:
	$ audioctl -w fullduplex=1
	$ audioctl -w full_duplex=1

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: misc-bug-people->jmcneill
Responsible-Changed-By: jmcneill@netbsd.org
Responsible-Changed-When: Sun, 24 Apr 2005 03:36:20 +0000
Responsible-Changed-Why:
I'll handle this.


From: "Jared D. McNeill" <jmcneill@invisible.ca>
To: gnats-bugs@netbsd.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: misc/30044: Problem using skype in netbsd with default
	settings.
Date: Sun, 24 Apr 2005 12:04:00 -0300

 On Sun, 2005-04-24 at 03:30 +0000, viktor@netbsd.se wrote:
 > >Synopsis:       Soundcard is not by default in full-duplex mode, and
 >  causing trouble with skype and possible other applications using full
 >  duplex feature.

 I'm able to reproduce this issue on my test system. Looks like the bug
 has existed for over 7 years.

 Looking at some of the Linux OSS code, it seems that they default the
 audio device to full-duplex mode if the device was opened read/write. We
 currently don't do this (it's commented out in sys/dev/audio.c):

         sc->sc_full_duplex = 0;
 /* doesn't always work right on SB.
                 (flags & (FWRITE|FREAD)) == (FWRITE|FREAD) &&
                 (hw->get_props(sc->hw_hdl) & AUDIO_PROP_FULLDUPLEX);
 */

 Proposal to change this odd behaviour was sent to tech-kern; waiting for
 feedback.

 Cheers,
 Jared

From: "Jared D. McNeill" <jmcneill@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30044 CVS commit: src/sys/dev
Date: Mon, 25 Apr 2005 13:19:46 +0000 (UTC)

 Module Name:	src
 Committed By:	jmcneill
 Date:		Mon Apr 25 13:19:46 UTC 2005

 Modified Files:
 	src/sys/dev: audio.c

 Log Message:
 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.


 To generate a diff of this commit:
 cvs rdiff -r1.192 -r1.193 src/sys/dev/audio.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@netbsd.org
State-Changed-When: Mon, 25 Apr 2005 13:21:26 +0000
State-Changed-Why:
I've patched this in -current and verified that it fixes the problem. Can you test this to confirm as well?


From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30044 CVS commit: [netbsd-3] src/sys/dev
Date: Mon, 25 Apr 2005 14:49:46 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Mon Apr 25 14:49:46 UTC 2005

 Modified Files:
 	src/sys/dev [netbsd-3]: audio.c

 Log Message:
 Pull up revision 1.193 (requested by jmcneill in ticket #200):
 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.


 To generate a diff of this commit:
 cvs rdiff -r1.192 -r1.192.4.1 src/sys/dev/audio.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: jmcneill@netbsd.org
State-Changed-When: Mon, 25 Apr 2005 23:07:00 +0000
State-Changed-Why:
Fixed in HEAD and the 3.0 branch. Submitter confirms this.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.