Hi, I have a USB-C type DAC for my headphones which has a 3.5mm connector. The DAC is a Ifi GO link MAX.
My laptop is a Thinkpad x13 gen2 (Intel processor) and while the sound works through azalia0 and the 3.5 jack, it would be great to be able to use the DAC for hifi vibes. Lots of lines in this mail but I figured something might be informative to anyone that has an idea what could be the reason for the DAC not working. Would be very grateful for any light shed on this. After changing device.server to 1 (from azalia0) and trying to play something with firefox, mpv or aucat this shows in dmesg: uaudio0: samples per frame too large audio1: failed to start playback sndioctl: ➜ ~ sndioctl server.device=1 server.device=1(uaudio0) ➜ ~ sndioctl output.level=1.000 output.mute=0 server.device=1(uaudio0) mixerctl has dac-0:1 (headphones) and dac-2:3 (speakers on laptop) defined with inputs and outputs and the other various settings. audioctl: ➜ ~ doas audioctl -f /dev/audio1 name=uaudio0 mode=play pause=0 active=0 nblks=16 blksz=768 rate=48000 encoding=s16le play.channels=2 play.bytes=0 play.errors=0 record.channels=2 record.bytes=0 record.errors=0 sndiod is started with -f rsnd/0 -F rsnd/1 from rc.conf.local Unplugging and plugging it back in displays: audio1 detached uaudio0 detached wskbd1: disconnecting from wsdisplay0 wskbd1 detached ucc0 detached uhidev0 detached uaudio0 at uhub1 port 5 configuration 1 interface 1 "iFi GO link Max" rev 2.00/2.01 addr 3 uaudio0: class v2, high-speed, async, channels: 2 play, 0 rec, 3 ctls audio1 at uaudio0 uhidev0 at uhub1 port 5 configuration 1 interface 2 "iFi GO link Max" rev 2.00/2.01 addr 3 uhidev0: iclass 3/0 ucc0 at uhidev0: 16 usages, 16 keys, enum wskbd1 at ucc0 mux 1 wskbd1: connecting to wsdisplay0 Full dmesg: OpenBSD 7.6-current (GENERIC.MP) #541: Tue Feb 11 09:38:51 MST 2025 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 16873091072 (16091MB) avail mem = 16335151104 (15578MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x910ac000 (61 entries) bios0: vendor LENOVO version "N35ET60W (1.60 )" date 11/14/2024 bios0: LENOVO 20WK00B2MX efi0 at bios0: UEFI 2.7 efi0: Lenovo rev 0x1600 acpi0 at bios0: ACPI 6.1 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT TPM2 ECDT HPET APIC SSDT SSDT SSDT NHLT SSDT SSDT SSDT LPIT WSMT SSDT DBGP DBG2 MSDM SSDT BATB DMAR MCFG SSDT BGRT PTDT UEFI FPDT acpi0: wakeup devices PEG0(S4) PEGP(S4) PEGP(S4) PEGP(S4) GLAN(S4) XHCI(S3) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpihpet0 at acpi0: 19200000 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.80 MHz, 06-8c-01, patch 000000ba 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=77fafbbf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND> cpu0: cpuid 6 eax=17eff7<SENSOR,ARAT> ecx=9<EFFFREQ> cpu0: cpuid 7.0 ebx=f3bfa7eb<FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,PT,AVX512CD,SHA,AVX512BW,AVX512VL> ecx=18c05fce<AVX512VBMI,UMIP,PKU> edx=fc100710<SRBDS_CTRL,MD_CLEAR,IBT,IBRS,IBPB,STIBP,L1DF,SSBD> cpu0: cpuid a vers=5, gp=8, gpwidth=48, ff=4, ffwidth=48 cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES> cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG> ecx=121<LAHF,ABM,3DNOWP> cpu0: cpuid 80000007 edx=100<ITSC> cpu0: msr 10a=a005c6b<IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,DOITM,FBSDP_NO,GDS_CTRL,RFDS_NO> cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 20-way L2 cache, 12MB 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 38MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.1.2.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 1 (application processor) cpu4: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu4: smt 1, core 0, package 0 cpu5 at mainbus0: apid 3 (application processor) cpu5: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu5: smt 1, core 1, package 0 cpu6 at mainbus0: apid 5 (application processor) cpu6: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu6: smt 1, core 2, package 0 cpu7 at mainbus0: apid 7 (application processor) cpu7: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000ba cpu7: smt 1, core 3, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xc0000000, bus 0-121 acpiprt0 at acpi0: bus 0 (PC00) acpiprt1 at acpi0: bus 4 (PEG0) acpiprt2 at acpi0: bus -1 (RP01) acpiprt3 at acpi0: bus -1 (RP02) acpiprt4 at acpi0: bus -1 (RP03) acpiprt5 at acpi0: bus -1 (RP04) acpiprt6 at acpi0: bus -1 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus -1 (RP07) acpiprt9 at acpi0: bus -1 (RP08) acpiprt10 at acpi0: bus -1 (RP09) acpiprt11 at acpi0: bus -1 (RP10) acpiprt12 at acpi0: bus -1 (RP11) acpiprt13 at acpi0: bus -1 (RP12) acpiprt14 at acpi0: bus -1 (RP13) acpiprt15 at acpi0: bus -1 (RP14) acpiprt16 at acpi0: bus -1 (RP15) acpiprt17 at acpi0: bus -1 (RP16) acpiprt18 at acpi0: bus -1 (RP17) acpiprt19 at acpi0: bus -1 (RP18) acpiprt20 at acpi0: bus -1 (RP19) acpiprt21 at acpi0: bus -1 (RP20) acpiprt22 at acpi0: bus -1 (RP21) acpiprt23 at acpi0: bus -1 (RP22) acpiprt24 at acpi0: bus -1 (RP23) acpiprt25 at acpi0: bus -1 (RP24) acpiprt26 at acpi0: bus 32 (TRP1) acpiprt27 at acpi0: bus 80 (TRP2) acpipci0 at acpi0 PC00: 0x00000000 0x00000011 0x00000001 acpithinkpad0 at acpi0: version 2.0 acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "5B10W51818" serial 3093 type LiP oem "SMP" "LEN0111" at acpi0 not configured "LEN0100" at acpi0 not configured "INTC1043" at acpi0 not configured "INTC1043" at acpi0 not configured "LEN0130" at acpi0 not configured "LEN0112" at acpi0 not configured "LEN0071" at acpi0 not configured "LEN0307" at acpi0 not configured "ELAN0676" at acpi0 not configured "ACPI000E" at acpi0 not configured pchgpio0 at acpi0 GPI0 addr 0xfd6e0000/0x10000 0xfd6d0000/0x10000 0xfd6a0000/0x10000 0xfd690000/0x10000 irq 14, 360 pins acpibtn0 at acpi0: SLPB(wakeup) "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured intelpmc0 at acpi0: PEPD state 0: 0x7f:1:2:0x00:0x0000000000000060 counter: 0x7f:64:0:0x00:0x0000000000000632 frequency: 0 state 1: 0x7f:1:2:0x00:0x0000000000000060 counter: 0x00:32:0:0x03:0x00000000fe00193c frequency: 8197 "INTC1051" at acpi0 not configured acpibtn1 at acpi0: LID_(wakeup) "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "INTC1040" at acpi0 not configured tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x00fc1050 rev 0x1 "USBC000" at acpi0 not configured acpipwrres0 at acpi0: PXP_, resource for PEG0 acpipwrres1 at acpi0: PUBS, resource for XHCI acpipwrres2 at acpi0: BTRT acpipwrres3 at acpi0: MRST acpipwrres4 at acpi0: DRST acpipwrres5 at acpi0: PXP_, resource for RP01 acpipwrres6 at acpi0: V0PR acpipwrres7 at acpi0: V1PR acpipwrres8 at acpi0: V2PR acpipwrres9 at acpi0: WRST acpipwrres10 at acpi0: TBT0, resource for TDM0, TRP0, TRP1 acpipwrres11 at acpi0: TBT1, resource for TDM1, TRP2, TRP3 acpipwrres12 at acpi0: D3C_, resource for TXHC, TDM0, TDM1, TRP0, TRP1, TRP2, TRP3 acpicpu0 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu2 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu3 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu4 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu5 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu6 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu7 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpitz0 at acpi0 acpitz0: critical temperature is 128 degC acpipwrres13 at acpi0: PIN_ acpipwrres14 at acpi0: PINP acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F acpivout1 at acpivideo0: DD2F cpu0: Enhanced SpeedStep 2693 MHz: speeds: 2701, 2700, 2600, 2500, 2300, 2100, 1900, 1700, 1600, 1400, 1200, 1100, 900, 700, 600, 400 MHz pci0 at mainbus0 bus 0 0:31:5: mem address conflict 0xfe010000/0x1000 pchb0 at pci0 dev 0 function 0 "Intel Core 11G Host" rev 0x01 inteldrm0 at pci0 dev 2 function 0 "Intel Xe Graphics" rev 0x01 drm0 at inteldrm0 inteldrm0: msi, TIGERLAKE, gen 12 "Intel Core 11G DTT" rev 0x01 at pci0 dev 4 function 0 not configured ppb0 at pci0 dev 6 function 0 "Intel Core 11G PCIE" rev 0x01: msi pci1 at ppb0 bus 4 nvme0 at pci1 dev 0 function 0 vendor "Toshiba", unknown product 0x011a rev 0x00: msix, NVMe 1.3 nvme0: KXG6AZNV512G TOSHIBA, firmware 5108AGLA, serial 11SF77HKFDP3 scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <NVMe, KXG6AZNV512G TOS, 5108> sd0: 488386MB, 512 bytes/sector, 1000215216 sectors ppb1 at pci0 dev 7 function 0 "Intel Core 11G PCIE" rev 0x01: msi pci2 at ppb1 bus 32 ppb2 at pci0 dev 7 function 2 "Intel Core 11G PCIE" rev 0x01: msi pci3 at ppb2 bus 80 "Intel Core 11G GNA" rev 0x01 at pci0 dev 8 function 0 not configured xhci0 at pci0 dev 13 function 0 "Intel Core 11G xHCI" rev 0x01: msi, xHCI 1.20 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 "Intel Core 11G TBT" rev 0x01 at pci0 dev 13 function 2 not configured "Intel Core 11G TBT" rev 0x01 at pci0 dev 13 function 3 not configured xhci1 at pci0 dev 20 function 0 "Intel 500 Series xHCI" rev 0x20: msi, xHCI 1.20 usb1 at xhci1: USB revision 3.0 uhub1 at usb1 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 "Intel 500 Series Shared SRAM" rev 0x20 at pci0 dev 20 function 2 not configured iwx0 at pci0 dev 20 function 3 "Intel Wi-Fi 6 AX201" rev 0x20, msix dwiic0 at pci0 dev 21 function 0 "Intel 500 Series I2C" rev 0x20: apic 2 int 27 iic0 at dwiic0 ihidev0 at iic0 addr 0x15 irq 118, vendor 0x4f3 product 0x3195, ELAN0676 ihidev0: 92 report ids imt0 at ihidev0: clickpad, 5 contacts wsmouse0 at imt0 mux 0 ims0 at ihidev0 reportid 1: 2 buttons wsmouse1 at ims0 mux 0 hid at ihidev0 reportid 5 not configured hid at ihidev0 reportid 6 not configured hid at ihidev0 reportid 7 not configured hid at ihidev0 reportid 11 not configured hid at ihidev0 reportid 12 not configured hid at ihidev0 reportid 13 not configured ims1 at ihidev0 reportid 14: 0 buttons wsmouse2 at ims1 mux 0 hid at ihidev0 reportid 92 not configured dwiic1 at pci0 dev 21 function 1 "Intel 500 Series I2C" rev 0x20: apic 2 int 40 iic1 at dwiic1 "Intel 500 Series HECI" rev 0x20 at pci0 dev 22 function 0 not configured pcib0 at pci0 dev 31 function 0 "Intel 500 Series eSPI" rev 0x20 azalia0 at pci0 dev 31 function 3 "Intel 500 Series HD Audio" rev 0x20: msi azalia0: codecs: Realtek ALC257, Intel/0x2812, using Realtek ALC257 audio0 at azalia0 ichiic0 at pci0 dev 31 function 4 "Intel 500 Series SMBus" rev 0x20: apic 2 int 16 iic2 at ichiic0 "Intel 500 Series SPI" rev 0x20 at pci0 dev 31 function 5 not configured em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x20: msi, address 90:2e:16:89:af:bc 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 pms0 at pckbc0 (aux slot) wsmouse3 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT efifb at mainbus0 not configured uvideo0 at uhub1 port 4 configuration 1 interface 0 "Azurewave Integrated RGB Camera" rev 2.01/60.16 addr 2 video0 at uvideo0 uvideo1 at uhub1 port 4 configuration 1 interface 2 "Azurewave Integrated RGB Camera" rev 2.01/60.16 addr 2 video1 at uvideo1 uaudio0 at uhub1 port 5 configuration 1 interface 1 "\M-*\M-*\M-*\M-*\M-*\M-*\M-n\M-n\M-n\M-n\M-n\M-n\M-n\M-n\M-~\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M-?\M-_\M-o\M-w\M-{ GO link Max UAC1" rev 2.00/1.01 addr 3 uaudio0: class v1, full-speed, sync, channels: 2 play, 0 rec, 3 ctls audio1 at uaudio0 uhidev0 at uhub1 port 5 configuration 1 interface 2 "\M-*\M-*\M-*\M-*\M-*\M-*\M-n\M-n\M-n\M-n\M-n\M-n\M-n\M-n\M-~\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M^?\M-?\M-_\M-o\M-w\M-{ GO link Max UAC1" rev 2.00/1.01 addr 3 uhidev0: iclass 3/0 ucc0 at uhidev0: 16 usages, 16 keys, enum wskbd1 at ucc0 mux 1 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd1: 488126MB, 512 bytes/sector, 999682111 sectors root on sd1a (addc682e4f8cb685.a) swap on sd1b dump on sd1b inteldrm0: 1920x1200, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) iwx0: hw rev 0x350, fw 77.a20fb07d.0, address a8:64:f1:be:5c:80 -- // Karl Jonsson