Subject: kern/16385: recording on uaudio causes noise
To: None <gnats-bugs@gnats.netbsd.org>
From: None <toshii@netbsd.org>
List: netbsd-bugs
Date: 04/17/2002 12:31:31
>Number:         16385
>Category:       kern
>Synopsis:       recording on uaudio causes noise
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 16 20:32:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     IWAMOTO Toshihiro
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
System: NetBSD miyuki.my.domain 1.5ZC NetBSD 1.5ZC #67: Sat Apr 6 00:59:23 JST 2002
Architecture: i386
Machine: i386
>Description:
	Recording on uaudio causes noise.  I supppose this is due to
	rev. 1.54 of uaudio.c, but I don't have time to look at it.

	Another problem is that playing sound on the device switches
	it to monaural recording mode.

>How-To-Repeat:
	Use a Roland UA-3 (at /dev/sound1) with the following script.
	This causes impulse noises every 100~200 samples.
	
#!/bin/sh
audioctl -f /dev/audioctl1 -w record=8000,1,8,mulaw
audioctl -f /dev/audioctl1 -w record=44100,2,16,slinear play=44100,2,16,slinear
dev=/dev/sound1

l=$(($3*60*344))
dd if=$dev of=$2 count=$l

	To invoke the second problem, run the above script first and
	play some mp3 with madplay on the same device.
	Then running the recording script generates a monaural recording
	file.
>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: