Hi, I recently switched my desktop workstation to a raspberry pi 4B with 8 GB RAM. Since the sound there doesn't work yet, I got a USB sound card, the make of the sound card is best read from usbdevs -v:
addr 08: 0ccd:00b1 TerraTec Electronic GmbH, Aureon 7.1 USB full speed, power 500 mA, config 1, rev 0.10 driver: uaudio0 driver: ugen0 Like the other AUREON card in the usb drivers I put this in usb quirks to not attach as a uhiddev (not sure if that was the right thing to do?). Now to my real question: mplayer sounds horrible, but iridium sound from youtube sounds OK. There is a lot of static interference when I play with mplayer. So what is it doing different than iridium? I tried messing with audioctl buffer sizes and nblocks but I don't really know what I'm doing here, so I'm writing to the list. The sound did not improve when I messed with the buffers. Here is the output of mplayer when I play a song: Playing [censored] libavformat version 58.45.100 (external) libavformat file format detected. [lavf] stream 0: audio (flac), -aid 0 Load subtitles in ./ ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders libavcodec version 58.91.100 (external) AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400) Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio) ========================================================================== AO: [sndio] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 1.3 (01.2) of 164.5 (02:44.5) 1.0% Immediately I heard static, at the time this was my audioctl output: root@neptune# audioctl name=uaudio0 mode= pause=1 active=0 nblks=16 blksz=480 rate=48000 encoding=s16le play.channels=2 play.bytes=0 play.errors=0 record.channels=2 record.bytes=0 record.errors=0 This is my dmesg: OpenBSD 6.8 (GENERIC.MP) #1: Sun Jan 17 21:19:32 CET 2021 p...@neptune.centroid.eu:/sys/arch/arm64/compile/GENERIC.MP real mem = 8378036224 (7989MB) avail mem = 8088367104 (7713MB) random: good seed from bootblocks mainbus0 at root: ACPI psci0 at mainbus0: PSCI 1.1, SMCCC 1.2 cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3 cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu0: 1024KB 64b/line 16-way L2 cache cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3 cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu1: 1024KB 64b/line 16-way L2 cache cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3 cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu2: 1024KB 64b/line 16-way L2 cache cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3 cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu3: 1024KB 64b/line 16-way L2 cache efi0 at mainbus0: UEFI 2.7 efi0: https://github.com/pftf/RPi4 rev 0x10000 smbios0 at efi0: SMBIOS 3.3.0 smbios0: vendor https://github.com/pftf/RPi4 version "UEFI Firmware v1.21" date 11/13/2020 smbios0: Raspberry Pi Foundation Raspberry Pi 4 Model B apm0 at mainbus0 ampintc0 at mainbus0 nirq 256, ncpu 4 ipi: 0, 1: "interrupt-controller" agtimer0 at mainbus0: tick rate 54000 KHz acpi0 at mainbus0: ACPI 6.3 acpi0: sleep states acpi0: tables DSDT FACP CSRT DBG2 GTDT IORT APIC PPTT BGRT acpi0: wakeup devices "BCM2849" at acpi0 not configured "BCM2835" at acpi0 not configured "BCM2854" at acpi0 not configured "ACPI0004" at acpi0 not configured xhci0 at acpi0 XHC0 addr 0x600000000/0x1000 irq 175, xHCI 1.0 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0004" at acpi0 not configured "BCM2848" at acpi0 not configured "BCM2850" at acpi0 not configured "BCM2856" at acpi0 not configured "BCM2845" at acpi0 not configured "BCM2841" at acpi0 not configured "BCM2841" at acpi0 not configured "BCM2838" at acpi0 not configured "BCM2839" at acpi0 not configured "BCM2844" at acpi0 not configured pluart0 at acpi0 URT0 addr 0xfe201000/0x1000 irq 153 "BCM2836" at acpi0 not configured "BCM2EA6" at acpi0 not configured "MSFT8000" at acpi0 not configured "BCM2847" at acpi0 not configured "BCM2855" at acpi0 not configured bse0 at acpi0 ETH0 addr 0xfd580000/0x10000 irq 189: address dc:a6:32:cc:db:a7 brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2 "PNP0C06" at acpi0 not configured acpitz at acpi0 not configured simplefb0 at mainbus0: 1920x1080, 32bpp wsdisplay0 at simplefb0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub" rev 2.10 /4.21 addr 2 uhidev0 at uhub1 port 1 configuration 1 interface 0 "American Power Conversion B ack-UPS CS 650 FW:817.v9.I USB FW:v9" rev 1.10/0.06 addr 3 uhidev0: iclass 3/0, 98 report ids upd0 at uhidev0 uhub2 at uhub1 port 2 configuration 1 interface 0 "Asmedia ASM107x" rev 2.10/1.0 0 addr 4 uhub3 at uhub1 port 3 configuration 1 interface 0 "Apple, Inc. Keyboard Hub" rev 2.00/96.15 addr 5 uhidev1 at uhub3 port 2 configuration 1 interface 0 "Apple Inc. Apple Keyboard" rev 2.00/0.74 addr 6 uhidev1: iclass 3/1 ukbd0 at uhidev1: 8 variable keys, 5 key codes, country code 13 wskbd0 at ukbd0: console keyboard, using wsdisplay0 uhidev2 at uhub3 port 2 configuration 1 interface 1 "Apple Inc. Apple Keyboard" rev 2.00/0.74 addr 6 uhidev2: iclass 3/0 uhid0 at uhidev2: input=1, output=0, feature=0 uhidev3 at uhub3 port 3 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/43.01 addr 7 uhidev3: iclass 3/1 ums0 at uhidev3: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uaudio0 at uhub1 port 4 configuration 1 interface 1 "TerraTec Electronic GmbH Au reon 7.1 USB" rev 1.10/0.10 addr 8 uaudio0: class v1, full-speed, sync, channels: 8 play, 2 rec, 25 ctls audio0 at uaudio0 ugen0 at uhub1 port 4 configuration 1 "TerraTec Electronic GmbH Aureon 7.1 USB" rev 1.10/0.10 addr 8 uhub4 at uhub0 port 3 configuration 1 interface 0 "Asmedia ASM107x" rev 3.00/1.0 0 addr 9 umass0 at uhub4 port 3 configuration 1 interface 0 "ASMT ASM105x" rev 3.00/1.00 addr 10 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <ASMT, ASM105x, 0> serial.174c55aa12345679B3D8 sd0: 953869MB, 512 bytes/sector, 1953525168 sectors vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on sd0a (8c1699786972c1f6.a) swap on sd0b dump on sd0b WARNING: clock lost 65 days WARNING: CHECK AND RESET THE DATE! iridium[14614]: pledge "", syscall 289 iridium[92842]: pledge "", syscall 289 iridium[61380]: pledge "", syscall 289 uaudio0: play xfer, err = 6 uaudio0: rec xfer, err = 6 And here is the usbdevs -v output: Controller /dev/usb0: addr 01: 0000:0000 Generic, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 2109:3431 VIA Labs, USB2.0 Hub high speed, self powered, config 1, rev 4.21 driver: uhub1 addr 03: 051d:0002 American Power Conversion, Back-UPS CS 650 FW:817.v9.I USB FW:v9 low speed, self powered, config 1, rev 0.06, iSerial 4B1814P12028 driver: uhidev0 addr 04: 174c:2074 Asmedia, ASM107x high speed, self powered, config 1, rev 1.00, iSerial 123456789ABCDEF driver: uhub2 addr 05: 05ac:1006 Apple, Inc., Keyboard Hub high speed, power 300 mA, config 1, rev 96.15, iSerial 000000000000 driver: uhub3 addr 06: 05ac:0250 Apple Inc., Apple Keyboard low speed, power 20 mA, config 1, rev 0.74 driver: uhidev1 driver: uhidev2 addr 07: 046d:c018 Logitech, USB Optical Mouse low speed, power 100 mA, config 1, rev 43.01 driver: uhidev3 addr 08: 0ccd:00b1 TerraTec Electronic GmbH, Aureon 7.1 USB full speed, power 500 mA, config 1, rev 0.10 driver: uaudio0 driver: ugen0 addr 09: 174c:3074 Asmedia, ASM107x super speed, self powered, config 1, rev 1.00, iSerial 123456789ABCDEF driver: uhub4 addr 10: 174c:55aa ASMT, ASM105x super speed, self powered, config 1, rev 1.00, iSerial 12345679B3D8 driver: umass0 and here is the mixerctl output (I had tuned the outputs.output down to 127,127 I think: root@neptune# mixerctl -a inputs.mix=151,151 inputs.mix_mute=off inputs.dig-in_mute=off inputs.record_line-in=151,151 inputs.record_line-in_=off inputs.record_mic_1=151,151 inputs.record_mic_1_mu=off inputs.mix_line-in_2=194,194 inputs.mix_line-in_2_m=on inputs.mix_mic_3=194,194 inputs.mix_mic_3_mute=on outputs.output=127,127 outputs.output_mute=off record.enable=sysctl Thanks for any help! -peter