NetBSD-Bugs archive

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

kern/55687: Slowed down/noisy recording with audio(4) (probably incorrect sample rate)



>Number:         55687
>Category:       kern
>Synopsis:       Slowed down and noisy recording with audio(4) (probably incorrect sample rate)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 29 17:35:00 +0000 2020
>Originator:     Leonardo Taccari
>Release:        NetBSD 9.99.64
>Organization:
The NetBSD Foundation
>Environment:
System: NetBSD boh 9.99.64 NetBSD 9.99.64 (GENERIC) #0: Sat Jun 6 14:26:08 CEST 2020 leot@abacus:/tmp/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64

	Relevant dmesg output:

	hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
	hdaudio0: interrupting at msi0 vec 0
	hdaudio0: HDA ver. 1.0, OSS 2, ISS 0, BSS 0, SDO 1, 64-bit
	hdaudio0: autoconfiguration error: RIRB timeout
	hdaudio0: autoconfiguration error: RIRB timeout
	[...]
	hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
	hdaudio1: interrupting at msi1 vec 0
	hdaudio1: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
	hdafg0 at hdaudio1: vendor 14f1 product 510f
	hdafg0: DAC00 2ch: Speaker [Built-In]
	hdafg0: ADC01 2ch: Mic In [Built-In]
	hdafg0: ADC02 2ch: Mic In [Jack]
	hdafg0: DAC03 2ch: HP Out [Jack]
	hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz PCM16 PCM20 PCM24
	audio0 at hdafg0: playback, capture, full duplex, independent
	audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
	audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
	spkr0 at audio0: PC Speaker (synthesized)

	Output of `mixerctl -a' used when recording:

	outputs.master=0,0
	outputs.master.mute=off
	outputs.master2=159,159
	outputs.master2.mute=off
	inputs.beep=252,252
	inputs.reclvl=222,222
	inputs.reclvl.mute=off
	record.mic=170,170
	inputs.reclvl2=170,170
	outputs.dacsel=DAC00,DAC03
	record.source=ADC01,ADC02

	Output of `audiocfg list':

	0: [*] audio0 @ hdafg0: Conexant product 510f
	       playback: 2ch, 48000Hz
	       record:   2ch, 48000Hz
	       (PR) slinear_le 16/16, 2ch, { 44100, 48000, 96000 }
	       (PR) slinear_le 20/32, 2ch, { 44100, 48000, 96000 }
	       (PR) slinear_le 24/32, 2ch, { 44100, 48000, 96000 }

	Output of `audioctl -a':

	name=Conexant
	version=product 510f
	config=01h
	encodings=mulaw:8*,alaw:8*,slinear:8*,ulinear:8*,slinear_le:16*,ulinear_le:16*,slinear_be:16*,ulinear_be:16*,slinear_le:32*,ulinear_le:32*,slinear_be:32*,ulinear_be:32*
	properties=full_duplex,mmap,independent
	full_duplex=1
	fullduplex=1
	blocksize=2048
	hiwat=32
	lowat=24
	monitor_gain=0
	mode=
	play.rate=48000
	play.channels=2
	play.precision=16
	play.encoding=slinear_le
	play.gain=0
	play.balance=32
	play.port=0x0
	play.avail_ports=0x0
	play.seek=0
	play.samples=0
	play.eof=0
	play.pause=0
	play.error=0
	play.waiting=0
	play.open=0
	play.active=1
	play.buffer_size=65536
	record.rate=8000
	record.channels=1
	record.precision=8
	record.encoding=mulaw
	record.gain=0
	record.balance=32
	record.port=0x0
	record.avail_ports=0x0
	record.seek=0
	record.samples=0
	record.eof=0
	record.pause=0
	record.error=0
	record.waiting=0
	record.open=0
	record.active=0
	record.buffer_size=65536
	record.errors=0

	Output of `sysctl -a':

	hw.audio0.blk_ms = 10
	hw.audio0.multiuser = 0
>Description:
	Recording audio seems noisy/slowed down when using audiorecord(1) or
	www/firefox78 (78.3.0).

	A simpler way to reproduce it present later.
>How-To-Repeat:
	When recording audio via:

	 % audiorecord -F wav -t 2 -e linear -P 16 -s 48000 -c 2 test_linear.wav

	...and saying a couple of times `test test test' the voice seems slowed
	down circa 2x and it's grave/noisy.

	The recorded file can be played without any noise (so cleanly) via:

	 % audioplay -f -e linear -c 2 -s 96000 -P 16 test_linear.wav

	An example recording of me doing that is at:

	 https://www.NetBSD.org/~leot/tmp/test_linear.wav
>Fix:
	N/A, sorry!

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index