Current-Users archive

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

Re: Audio recording (using ossaudio)



Dear Tetsuya,

On 2020-03-20, Tetsuya Isaki wrote:
> At Thu, 19 Mar 2020 21:40:24 +0200,
> Yorick Hardy wrote:
> > To reproduce:
> > 
> >  1) install audio/audacity (I have audacity-2.3.3nb2)
> >  2) start audacity and press the record button!
> > 
> > and audacity becomes unresponsive (and also does not repaint when uncovered).
> 
> Hmm..  I was not able to reproduce.
> My audacity was able to record silence (I don't have recording
> source now), and stop button also worked.

It seems to be stuck in select (or poll, I did not check the source)
in portaudio.

Updating audio/portaudio from portaudio-190600.20161030nb1 to portaudio-190600.20161030nb2
fixes the problem (maybe because of the patch to disable non-blocking I/O ?).

Now 44100 MHz does not sound right (I will send the example off-list), but
48000 MHz is fine (this is the same behaviour as audiorecord).

> My "uname -srm" is "NetBSD 9.0 amd64" and audacity is 2.3.3.
> 
> Please show your dmesg.

The dmesg is below, thank you for looking at this!

-- 
Kind regards,

Yorick Hardy

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.99.50 (YORICK.amd64) #11: Wed Mar 18 21:29:11 SAST 2020
	root@HOME:/root/build.amd64.local/obj/sys/arch/amd64/compile/YORICK.amd64
total memory = 16127 MB
avail memory = 15610 MB
rnd: seeded with 256 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
MSI MS-7641 (2.0)
mainbus0 (root)
ACPI: RSDP 0x00000000000FADA0 000014 (v00 ACPIAM)
ACPI: RSDT 0x00000000BFF90000 000040 (v01 7641MS A7641100 20111122 MSFT 00000097)
ACPI: FACP 0x00000000BFF90200 000084 (v01 7641MS A7641100 20111122 MSFT 00000097)
ACPI: DSDT 0x00000000BFF905D0 005DCA (v01 A7641  A7641100 00000100 INTL 20051117)
ACPI: FACS 0x00000000BFF9E000 000040
ACPI: APIC 0x00000000BFF90390 00007C (v01 7641MS A7641100 20111122 MSFT 00000097)
ACPI: MCFG 0x00000000BFF90410 00003C (v01 7641MS OEMMCFG  20111122 MSFT 00000097)
ACPI: OEMB 0x00000000BFF9E040 000072 (v01 7641MS A7641100 20111122 MSFT 00000097)
ACPI: SRAT 0x00000000BFF963A0 0000D8 (v03 AMD    FAM_F_10 00000002 AMD  00000001)
ACPI: HPET 0x00000000BFF96480 000038 (v01 7641MS OEMHPET  20111122 MSFT 00000097)
ACPI: SSDT 0x00000000BFF964C0 000672 (v01 A M I  POWERNOW 00000001 AMD  00000001)
ACPI: 2 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 3: pa 0xfec00000, version 0x21, 24 pins
cpu0 at mainbus0 apid 0
cpu0: AMD Athlon(tm) II X3 450 Processor, id 0x100f53
cpu0: node 0, package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: AMD Athlon(tm) II X3 450 Processor, id 0x100f53
cpu1: node 0, package 0, core 1, smt 0
cpu2 at mainbus0 apid 2
cpu2: AMD Athlon(tm) II X3 450 Processor, id 0x100f53
cpu2: node 0, package 0, core 2, smt 0
acpi0 at mainbus0: Intel ACPICA 20191213
acpi0: X/RSDT: OemId <7641MS,A7641100,20111122>, AslId <MSFT,00000097>
acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
BROD (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
SPKR (PNP0800) at acpi0 not configured
SIOR (PNP0C02) at acpi0 not configured
OMSC (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
PCIE (PNP0C02) at acpi0 not configured
RMEM (PNP0C01) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: AMD RS785/RS880 Host Bridge (rev. 0x00)
ppb0 at pci0 dev 1 function 0: AMD RS780/RS880 PCI-PCI Bridge (int gfx) (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
radeon0 at pci1 dev 5 function 0: ATI Technologies Radeon HD4250 GPU (RS880) (rev. 0x00)
ppb1 at pci0 dev 5 function 0: AMD RS780/RS880 PCI-PCIE Bridge (port 1) (rev. 0x00)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re0: interrupting at ioapic0 pin 17
re0: Ethernet address 6c:62:6d:44:b6:9e
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8211E 1000BASE-T media interface
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ahcisata0 at pci0 dev 17 function 0: ATI Technologies SB700-SB900 SATA Controller (AHCI mode) (rev. 0x40)
ahcisata0: 64-bit DMA
ahcisata0: ignoring broken port multiplier support
ahcisata0: ignoring broken NCQ support
ahcisata0: AHCI revision 1.20, 6 ports, 32 slots, CAP 0xb730ff05<PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSNTF,S64A>
ahcisata0: interrupting at ioapic0 pin 19
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
atabus4 at ahcisata0 channel 4
atabus5 at ahcisata0 channel 5
ohci0 at pci0 dev 18 function 0: ATI Technologies SB700-SB900 USB OHCI Controller (rev. 0x00)
ohci0: interrupting at ioapic0 pin 18
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ehci0 at pci0 dev 18 function 2: ATI Technologies SB700-SB900 USB EHCI Controller (rev. 0x00)
ehci0: interrupting at ioapic0 pin 17
ehci0: dropped intr workaround enabled
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: 1 companion controller, 5 ports: ohci0
usb1 at ehci0: USB revision 2.0
ohci1 at pci0 dev 19 function 0: ATI Technologies SB700-SB900 USB OHCI Controller (rev. 0x00)
ohci1: interrupting at ioapic0 pin 18
ohci1: OHCI version 1.0, legacy support
usb2 at ohci1: USB revision 1.0
ehci1 at pci0 dev 19 function 2: ATI Technologies SB700-SB900 USB EHCI Controller (rev. 0x00)
ehci1: interrupting at ioapic0 pin 17
ehci1: dropped intr workaround enabled
ehci1: EHCI version 1.0
ehci1: 1 companion controller, 5 ports: ohci1
usb3 at ehci1: USB revision 2.0
piixpm0 at pci0 dev 20 function 0: ATI Technologies SBx00 SMBus Controller (rev. 0x42)
piixpm0: interrupting at SMI, 
iic0 at piixpm0 port 0: I2C bus
iic1 at piixpm0 port 1: I2C bus
iic2 at piixpm0 port 2: I2C bus
iic3 at piixpm0 port 3: I2C bus
hdaudio0 at pci0 dev 20 function 2: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 16
hdaudio0: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
hdafg0 at hdaudio0: vendor 10ec product 0887
hdafg0: DAC00 2ch: Speaker [Jack]
hdafg0: DAC01 2ch: HP Out [Jack]
hdafg0: DIG02 2ch: SPDIF Out [Jack]
hdafg0: ADC03 2ch: Line In [Jack], Mic In [Jack]
hdafg0: ADC04 2ch: Mic In [Jack]
hdafg0: 2ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: playback, capture, full duplex, independent
audio0: slinear_le:16 2ch 48000Hz, blk 4ms for playback
audio0: slinear_le:16 2ch 48000Hz, blk 4ms for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
pcib0 at pci0 dev 20 function 3: ATI Technologies SB700-SB900 LPC Host Controller (rev. 0x40)
ppb2 at pci0 dev 20 function 4: ATI Technologies SBx00 PCI to PCI Bridge (rev. 0x40)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
ohci2 at pci0 dev 20 function 5: ATI Technologies SB700-SB900 USB OHCI Controller (rev. 0x00)
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb4 at ohci2: USB revision 1.0
ohci3 at pci0 dev 22 function 0: ATI Technologies SB700-SB900 USB OHCI Controller (rev. 0x00)
ohci3: interrupting at ioapic0 pin 18
ohci3: OHCI version 1.0, legacy support
usb5 at ohci3: USB revision 1.0
ehci2 at pci0 dev 22 function 2: ATI Technologies SB700-SB900 USB EHCI Controller (rev. 0x00)
ehci2: interrupting at ioapic0 pin 17
ehci2: dropped intr workaround enabled
ehci2: EHCI version 1.0
ehci2: 1 companion controller, 4 ports: ohci3
usb6 at ehci2: USB revision 2.0
pchb1 at pci0 dev 24 function 0: AMD AMD64 Family10h HyperTransport Configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 1: AMD AMD64 Family10h Address Map Configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 2: AMD AMD64 Family10h DRAM Configuration (rev. 0x00)
amdnb_misc0 at pci0 dev 24 function 3: AMD NB Misc Configuration
amdtemp0 at amdnb_misc0: AMD CPU Temperature Sensors (Family10h)
pchb4 at pci0 dev 24 function 4: AMD AMD64 Family10h Link Configuration (rev. 0x00)
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu0: P0: FFH, lat   4 us, pow 34375 mW, 3200 MHz
acpicpu0: P1: FFH, lat   4 us, pow 25245 mW, 2500 MHz
acpicpu0: P2: FFH, lat   4 us, pow 22200 mW, 2000 MHz
acpicpu0: P3: FFH, lat   4 us, pow 12095 mW,  800 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 3200408550 Hz quality 3000
IPsec: Initialized Security Association Processing.
uhub0 at usb1: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 5 ports with 5 removable, self powered
uhub1 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub1: 5 ports with 5 removable, self powered
uhub2 at usb5: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
uhub3 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
uhub4 at usb2: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub4: 5 ports with 5 removable, self powered
uhub5 at usb4: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub5: 2 ports with 2 removable, self powered
uhub6 at usb6: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub6: 4 ports with 4 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
wd0 at atabus0 drive 0
wd0: <WDC WD10EFRX-68FYTN0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors (0 bytes/physsect; first aligned sector: 8)
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (32 tags) w/PRIO
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/amd64/9.99.50/modules
kern info: [drm] initializing kernel modesetting (RS880 0x1002:0x9715 0x1462:0x7641).
kern info: [drm] register mmio base: 0xfe9e0000
kern info: [drm] register mmio size: 65536
kern info: ATOM BIOS: B43106_DVI
radeon0: info: VRAM: 256M 0x00000000C0000000 - 0x00000000CFFFFFFF (256M used)
radeon0: info: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF
kern info: [drm] Detected VRAM RAM=100M, BAR=256M
kern info: [drm] RAM width 32bits DDR
Zone  kernel: Available graphics memory: 5284782 kiB
Zone   dma32: Available graphics memory: 2097152 kiB
kern info: [drm] radeon: 256M of VRAM memory ready
kern info: [drm] radeon: 512M of GTT memory ready.
kern info: [drm] Loading RS780 Microcode
kern info: [drm] GART: num cpu pages 131072, num gpu pages 131072
kern info: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0x0xfffffe66ca5b4c00
radeon0: info: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0x0xffffd4014b1c6038
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
radeon0: info: radeon: MSI limited to 32-bit
radeon0: interrupting at ioapic0 pin 18 (radeon0)
kern info: [drm] radeon: irq initialized.
kern info: [drm] ring test on 0 succeeded in 1 usecs
kern info: [drm] ring test on 5 succeeded in 1 usecs
kern info: [drm] UVD initialized successfully.
kern info: [drm] ib test on ring 0 succeeded in 0 usecs
kern info: [drm] ib test on ring 5 succeeded
kern info: [drm] Radeon Display Connectors
kern info: [drm] Connector 0:
kern info: [drm]   VGA-1
kern info: [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
kern info: [drm]   Encoders:
kern info: [drm]     CRT1: INTERNAL_KLDSCP_DAC1
kern info: [drm] Connector 1:
kern info: [drm]   DVI-D-1
kern info: [drm]   HPD3
kern info: [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
kern info: [drm]   Encoders:
kern info: [drm]     DFP3: INTERNAL_KLDSCP_LVTMA
radeondrmkmsfb0 at radeon0
radeondrmkmsfb0: framebuffer at 0xffffd4014b6e2000, size 1600x900, depth 32, stride 6400
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: NOVATEK (0x0603) USB Keyboard (0x00f2), rev 1.10/1.12, addr 2, iclass 3/1
ukbd0 at uhidev0
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 1
uhidev1: NOVATEK (0x0603) USB Keyboard (0x00f2), rev 1.10/1.12, addr 2, iclass 3/0
uhidev1: 4 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 4: input=2, output=0, feature=0
uhidev2 at uhub4 port 2 configuration 1 interface 0
uhidev2: Logitech (0x046d) Trackball (0xc404), rev 1.10/2.20, addr 2, iclass 3/1
ums0 at uhidev2: 3 buttons and Z dir
wsmouse0 at ums0 mux 0
uhidev3 at uhub4 port 3 configuration 1 interface 0
uhidev3: Wacom Co.,Ltd. (0x056a) Intuos PTS (0x033c), rev 2.00/1.00, addr 3, iclass 3/0
uhidev3: 192 report ids
uhid3 at uhidev3 reportid 2: input=0, output=0, feature=1
uhid4 at uhidev3 reportid 3: input=0, output=0, feature=1
uhid5 at uhidev3 reportid 4: input=0, output=0, feature=1
uhid6 at uhidev3 reportid 5: input=0, output=0, feature=1
uhid7 at uhidev3 reportid 7: input=0, output=0, feature=9
uhid8 at uhidev3 reportid 8: input=0, output=0, feature=9
uintuos0 at uhidev3 reportid 16
wsmouse1 at uintuos0 mux 0
uhid9 at uhidev3 reportid 17: input=0, output=0, feature=16
uhid10 at uhidev3 reportid 19: input=0, output=0, feature=1
uhid11 at uhidev3 reportid 20: input=0, output=0, feature=31
uhid12 at uhidev3 reportid 32: input=0, output=0, feature=5
uhid13 at uhidev3 reportid 33: input=0, output=0, feature=1
uhid14 at uhidev3 reportid 34: input=0, output=0, feature=1
uhid15 at uhidev3 reportid 35: input=0, output=0, feature=14
uhid16 at uhidev3 reportid 36: input=0, output=0, feature=31
uhid17 at uhidev3 reportid 37: input=0, output=0, feature=4
uhid18 at uhidev3 reportid 48: input=0, output=0, feature=2
uhid19 at uhidev3 reportid 49: input=0, output=0, feature=33
uhid20 at uhidev3 reportid 50: input=0, output=0, feature=33
uhid21 at uhidev3 reportid 51: input=0, output=0, feature=1
uhid22 at uhidev3 reportid 64: input=0, output=0, feature=10
uhid23 at uhidev3 reportid 192: input=9, output=0, feature=0
uhidev4 at uhub4 port 3 configuration 1 interface 1
uhidev4: Wacom Co.,Ltd. (0x056a) Intuos PTS (0x033c), rev 2.00/1.00, addr 3, iclass 3/0
uhidev4: 3 report ids
uhid24 at uhidev4 reportid 2: input=63, output=0, feature=0
uhid25 at uhidev4 reportid 3: input=63, output=0, feature=0
uhidev5 at uhub4 port 3 configuration 1 interface 2
uhidev5: Wacom Co.,Ltd. (0x056a) Intuos PTS (0x033c), rev 2.00/1.00, addr 3, iclass 3/1
uhidev5: 1 report ids
ums1 at uhidev5 reportid 1: 5 buttons
wsmouse2 at ums1 mux 0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)


Home | Main Index | Thread Index | Old Index