> On Thu, Mar 06, 2025 at 10:48:06AM +0100, Andrath of the Abyss wrote:
> > I was wondering if people with USB audio interfaces have the same issue
> > as me. When using the microphone of my usb audio interface, the recorded
> > audio starts to stutter/pop, indicating buffering problems, usually when
> > I do something that causes a bit of load on the system (e.g. starting a
> > browser).

This is to confirm that I can replicate xruns
with this cheapo Sennheiser USB headphones+mic combo:

uaudio0 at uhub5 port 1 configuration 1 interface 1 "Sennheiser Sennheiser SC 
160 USB" rev 2.00/0.18 addr 3

Recording simply with aucat -o /tmp/file.wav,
here is the log of a running

/usr/bin/sndiod -f rsnd/0 -F rsnd/1

where the Sennheiser attaches as the -F rsnd/1,
overriding the on-board azalia (rsnd/0).

The xruns start being logged as soon
as I start firefox on this otherwise idle machine
(an office PC, full dmesg below).

default: play 0:1, rec 0:1, dup, vol = 8388608
0: play 0:1, rec 0:1, dup, vol = 8388608
1: play 0:1, rec 0:1, dup, vol = 8388608
ctl1: app/aucat0.level = 127 at slot_level:aucat0: added
ctl2: 1/output0.level = 255 at hw:1/0: added
ctl3: 1/output1.level = 255 at hw:1/1: added
ctl4: 1/output0.mute = 0 at hw:1/32: added
ctl5: 1/output1.mute = 0 at hw:1/33: added
ctl6: 1/input0.level = 255 at hw:1/64: added
ctl7: 1/input0.mute = 0 at hw:1/96: added
ctl8: 1/server.device[0] (uaudio0) = 1 at hw:1/128: added
rsnd/1: 32000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 320 frames
ctl9: 0/output0.level = 126 at hw:0/0: added
ctl10: 0/output1.level = 126 at hw:0/1: added
ctl11: 0/output0.mute = 0 at hw:0/32: added
ctl12: 0/output1.mute = 0 at hw:0/33: added
ctl13: 0/input0.level = 125 at hw:0/64: added
ctl14: 0/input1.level = 125 at hw:0/65: added
ctl15: 0/input0.mute = 0 at hw:0/96: added
ctl16: 0/input1.mute = 0 at hw:0/97: added
ctl17: 0/server.device[0] (azalia0) = 1 at hw:0/128: added
rsnd/0: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
ctl18: default/server.device[0] (azalia0) = 0 at opt_dev:default/0: added
ctl19: default/server.device[1] (uaudio0) = 1 at opt_dev:default/1: added
aucat0: 48000Hz, s24le4lsb, rec 0:1, 20 blocks of 480 frames
rsnd/1: started
aucat0: attached at -7680 + 0 / 480
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 960 / 5120
rsnd/1: play hw xrun, pused = 4160 / 5120
rsnd/1: rec hw xrun, rused = 640 / 5120
rsnd/1: play hw xrun, pused = 4480 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
rsnd/1: rec hw xrun, rused = 320 / 5120
rsnd/1: play hw xrun, pused = 4800 / 5120
aucat0: detached at 0 + 0 / 320


The resulting file.wav sound fine though.

        Jan



OpenBSD 7.6-current (GENERIC.MP) #550: Mon Feb 17 20:02:43 MST 2025
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 14727774208 (14045MB)
avail mem = 14254891008 (13594MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (36 entries)
bios0: vendor Award Software International, Inc. version "F2" date 04/20/2011
bios0: Gigabyte Technology Co., Ltd. Z68MX-UD2H-B3
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG ASPT SSPT EUDS MATS TAMG APIC SSDT MATS
acpi0: wakeup devices PCI0(S5) PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) 
PEX5(S5) PEX6(S5) PEX7(S5) HUB0(S5) UAR1(S3) USBE(S3) USE2(S3) AZAL(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 3192.77 MHz, 06-2a-07, patch 
0000002f
cpu0: cpuid 1 
edx=bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
 
ecx=17bae3ff<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX>
cpu0: cpuid 6 eax=77<SENSOR,ARAT> ecx=9<EFFFREQ>
cpu0: cpuid 7.0 edx=9c000400<MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD>
cpu0: cpuid a vers=3, gp=8, gpwidth=48, ff=3, ffwidth=48
cpu0: cpuid d.1 eax=1<XSAVEOPT>
cpu0: cpuid 80000001 edx=28100800<NXE,RDTSCP,LONG> ecx=1<LAHF>
cpu0: cpuid 80000007 edx=100<ITSC>
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
8-way L2 cache, 6MB 64b/line 12-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 3192.83 MHz, 06-2a-07, patch 
0000002f
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 3192.88 MHz, 06-2a-07, patch 
0000002f
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 3192.92 MHz, 06-2a-07, patch 
0000002f
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins, remapped
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG0)
acpiprt2 at acpi0: bus 2 (PEG1)
acpiprt3 at acpi0: bus 4 (PEX0)
acpiprt4 at acpi0: bus -1 (PEX1)
acpiprt5 at acpi0: bus -1 (PEX2)
acpiprt6 at acpi0: bus 5 (PEX3)
acpiprt7 at acpi0: bus 6 (PEX4)
acpiprt8 at acpi0: bus 7 (PEX5)
acpiprt9 at acpi0: bus 8 (PEX6)
acpiprt10 at acpi0: bus 9 (PEX7)
acpibtn0 at acpi0: PWRB
acpipci0 at acpi0 PCI0
acpicmos0 at acpi0
com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
"PNP0303" at acpi0 not configured
"pnp0c14" at acpi0 not configured
acpicpu0 at acpi0: C3(350@96 mwait.1@0x20), C2(500@64 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
acpicpu1 at acpi0: C3(350@96 mwait.1@0x20), C2(500@64 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
acpicpu2 at acpi0: C3(350@96 mwait.1@0x20), C2(500@64 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
acpicpu3 at acpi0: C3(350@96 mwait.1@0x20), C2(500@64 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 3192 MHz: speeds: 3301, 3300, 3200, 3100, 3000, 2900, 
2800, 2700, 2600, 2500, 2400, 2300, 2200, 2100, 2000, 1900, 1800, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: apic 2 int 16
pci1 at ppb0 bus 1
ppb1 at pci0 dev 1 function 1 "Intel Core 2G PCIE" rev 0x09: apic 2 int 16
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci3 at ppb2 bus 3
bnx0 at pci3 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 2 int 17
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09
drm0 at inteldrm0
inteldrm0: apic 2 int 16, SANDYBRIDGE, gen 6
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: apic 2 
int 22
azalia0: codecs: Realtek ALC889, Intel/0x2805, using Realtek ALC889
audio0 at azalia0
ppb3 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 16
pci4 at ppb3 bus 4
nvme0 at pci4 dev 0 function 0 "Toshiba NVMe" rev 0x01: apic 2 int 16, NVMe 1.2
nvme0: KBG30ZMV128G TOSHIBA, firmware ADHA0102, serial 29OPC7NPPZWP
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, KBG30ZMV128G TOS, ADHA>
sd0: 122104MB, 512 bytes/sector, 250069680 sectors
ppb4 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 19
pci5 at ppb4 bus 5
em0 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: apic 2 int 19, address 
68:05:ca:33:6a:61
ppb5 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 16
pci6 at ppb5 bus 6
ahci0 at pci6 dev 0 function 0 "Marvell 88SE9172 SATA" rev 0x11: apic 2 int 16, 
AHCI 1.0
scsibus2 at ahci0: 32 targets
ppb6 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 17
pci7 at ppb6 bus 7
xhci0 at pci7 dev 0 function 0 "Etron EJ168 xHCI" rev 0x01: apic 2 int 17, xHCI 
1.0
usb1 at xhci0: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "Etron xHCI root hub" rev 3.00/1.00 
addr 1
ppb7 at pci0 dev 28 function 6 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 18
pci8 at ppb7 bus 8
ppb8 at pci0 dev 28 function 7 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 19
pci9 at ppb8 bus 9
xhci1 at pci9 dev 0 function 0 "Etron EJ168 xHCI" rev 0x01: apic 2 int 19, xHCI 
1.0
usb2 at xhci1: USB revision 3.0
uhub2 at usb2 configuration 1 interface 0 "Etron xHCI root hub" rev 3.00/1.00 
addr 1
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2 int 23
usb3 at ehci1: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
ppb9 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci10 at ppb9 bus 10
pcib0 at pci0 dev 31 function 0 "Intel Z68 LPC" rev 0x05
ahci1 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: apic 2 int 19, 
AHCI 1.3
ahci1: port 0: 6.0Gb/s
ahci1: port 2: 1.5Gb/s
scsibus3 at ahci1: 32 targets
sd1 at scsibus3 targ 0 lun 0: <ATA, SanDisk SD8SNAT1, Z233> naa.5001b444a4987c3a
sd1: 122104MB, 512 bytes/sector, 250069680 sectors, thin
cd0 at scsibus3 targ 2 lun 0: <ATAPI, iHAS122, ZL0E> removable
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 2 int 18
iic0 at ichiic0
iic0: addr 0x4e 03=c7 04=c7 06=0d 07=01 08=0f 0c=ae 0d=fa 0e=c6 0f=88 12=ff 
13=ff 20=14 26=03 28=83 29=12 2a=23 2c=10 2f=e4 3c=28 3e=01 47=99 71=ff 80=ff 
82=ff 84=ff 86=ff 90=ff 91=ff 92=ff 93=ff 94=ff 95=ff 96=ff 98=ff 99=ff 9a=ff 
9b=ff 9c=ff 9d=ff 9e=ff a0=ff a1=ff a2=ff a3=ff a4=ff a5=ff a6=ff a8=ff a9=ff 
aa=ff ab=ff ac=ff ad=ff ae=ff f0=ff f1=30 f2=2c f3=07 f4=e5 f5=3f f6=0c f7=eb 
f8=3c words 00=0000 01=0000 02=00c7 03=c7c7 04=c700 05=000d 06=0d01 07=010f
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600
spdmem2 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0x290
vmm0 at mainbus0: VMX/EPT
uhub4 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 
2.00/0.00 addr 2
uplcom0 at uhub4 port 3 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller" rev 1.10/3.00 addr 3
ucom0 at uplcom0: usb0.1.00003.0
uplcom1 at uhub4 port 4 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller" rev 1.10/3.00 addr 4
ucom1 at uplcom1: usb0.1.00004.0
uhidev0 at uhub2 port 1 configuration 1 interface 0 "Logitech USB Optical 
Mouse" rev 2.00/54.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 8 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhub5 at uhub3 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 
2.00/0.00 addr 2
uaudio0 at uhub5 port 1 configuration 1 interface 1 "Sennheiser Sennheiser SC 
160 USB" rev 2.00/0.18 addr 3
uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 7 ctls
audio1 at uaudio0
uhidev1 at uhub5 port 1 configuration 1 interface 3 "Sennheiser Sennheiser SC 
160 USB" rev 2.00/0.18 addr 3
uhidev1: iclass 3/0, 26 report ids
ucc0 at uhidev1 reportid 1: 3 usages, 2 keys, enum
wskbd1 at ucc0 mux 1
uhid0 at uhidev1 reportid 2: input=1, output=1, feature=0
uhid1 at uhidev1 reportid 4: input=0, output=38, feature=0
uhid2 at uhidev1 reportid 5: input=34, output=0, feature=0
uhid3 at uhidev1 reportid 6: input=0, output=36, feature=0
uhid4 at uhidev1 reportid 7: input=32, output=0, feature=0
uhid5 at uhidev1 reportid 8: input=1, output=0, feature=0
uhid6 at uhidev1 reportid 9: input=0, output=1, feature=0
uhid7 at uhidev1 reportid 26: input=2, output=0, feature=0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd1a (99773ec819a093a8.a) swap on sd1b dump on sd1b
bnx0: address 00:1e:0b:bc:ca:a4
brgphy0 at bnx0 phy 1: BCM5708C, rev. 6
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
uid 0 on /usr: file system full
uvn_flush: obj=0xfffffd8326c16450, offset=0xbc40000.  error during pageout.
uvn_flush: WARNING: changes to page may be lost!
umodem0 at uhub5 port 2 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" 
rev 2.10/c.00 addr 4
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom2 at umodem0: usb3.1.00002.2
ugen0 at uhub5 port 2 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.10/c.00 
addr 4
ucom2 detached
umodem0 detached
ugen0 detached
umodem0 at uhub5 port 2 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" 
rev 2.10/c.00 addr 4
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom2 at umodem0: usb3.1.00002.2
ugen0 at uhub5 port 2 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.10/c.00 
addr 4
ucom2 detached
umodem0 detached
ugen0 detached
umodem0 at uhub5 port 2 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" 
rev 2.10/c.00 addr 4
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom2 at umodem0: usb3.1.00002.2
ugen0 at uhub5 port 2 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.10/c.00 
addr 4
ucom2 detached
umodem0 detached
ugen0 detached
umodem0 at uhub5 port 2 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" 
rev 2.10/c.00 addr 4
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom2 at umodem0: usb3.1.00002.2
ugen0 at uhub5 port 2 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.10/c.00 
addr 4
ucom2 detached
umodem0 detached
ugen0 detached
umodem0 at uhub5 port 2 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" 
rev 2.10/c.00 addr 4
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom2 at umodem0: usb3.1.00002.2
ugen0 at uhub5 port 2 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.10/c.00 
addr 4
audio1 detached
uaudio0 detached
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ucc0 detached
uhid0 detached
uhid1 detached
uhid2 detached
uhid3 detached
uhid4 detached
uhid5 detached
uhid6 detached
uhid7 detached
uhidev1 detached
uaudio0 at uhub5 port 1 configuration 1 interface 1 "Sennheiser Sennheiser SC 
160 USB" rev 2.00/0.18 addr 3
uaudio0: class v1, full-speed, sync, channels: 2 play, 2 rec, 7 ctls
audio1 at uaudio0
uhidev1 at uhub5 port 1 configuration 1 interface 3 "Sennheiser Sennheiser SC 
160 USB" rev 2.00/0.18 addr 3
uhidev1: iclass 3/0, 26 report ids
ucc0 at uhidev1 reportid 1: 3 usages, 2 keys, enum
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhid0 at uhidev1 reportid 2: input=1, output=1, feature=0
uhid1 at uhidev1 reportid 4: input=0, output=38, feature=0
uhid2 at uhidev1 reportid 5: input=34, output=0, feature=0
uhid3 at uhidev1 reportid 6: input=0, output=36, feature=0
uhid4 at uhidev1 reportid 7: input=32, output=0, feature=0
uhid5 at uhidev1 reportid 8: input=1, output=0, feature=0
uhid6 at uhidev1 reportid 9: input=0, output=1, feature=0
uhid7 at uhidev1 reportid 26: input=2, output=0, feature=0

Reply via email to