Sndio with >16 audio channels

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Sndio with >16 audio channels

Samuel Larkin

>Synopsis: Sndiod failds with >16 audio channels
>Category: system
>Environment:
        System      : OpenBSD 6.5
        Details     : OpenBSD 6.5-current (GENERIC.MP) #148: Sat Jul 27 10:00:49 MDT 2019
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        I am using a Focusrite Scarlett 18i8 2nd Gen, which has 18 input
        audio channels. When I run 'sndiod -ddd -f rsnd/1' I get the output

        snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
        helper(helper|ini): created
        worker(worker|ini): created
        listen(/tmp/sndio/sock0|ini): created
        sock(sock|ini): created
        helper: recv: cmd = 0, num = 0, mode = 3, fd = -1
        helper: send: cmd = 3, num = 0, mode = 0, fd = 3
        sock,rmsg,widl: AUTH message
        sock,rmsg,widl: HELLO message
        sock,rmsg,widl: hello from <firefox>, mode = 1, ver 7
        snd0 pst=cfg: device requested
        worker: send: cmd = 0, num = 0, mode = 3, fd = -1
        worker: recv: cmd = 3, num = 0, mode = 0, fd = 6
        rsnd/1: 18: unsupported number of rec channels
        snd0 pst=cfg: rsnd/1: failed to open audio device
        sock,rmsg,widl: closing
        sock(sock|zom): destroyed
        worker(worker|zom): destroyed
        listen(/tmp/sndio/sock0|zom): destroyed
        snd0 pst=cfg: draining
        nothing to do...
        snd0 pst=cfg: deleting
        helper: hup
        helper(helper|zom): destroyed
        nothing to do...

        Note the line 'rsnd/1: 18: unsupported number of rec channels'
       
        I can see that in /src/usr.bin/sndiod/defs.h that 'NCHAN_MAX' is set to 16.
        Is this something that can easily be set higher?

>How-To-Repeat:
        run 'sndiod -f rsnd/1' with rsnd/1 having more than 16 audio channels
>Fix:
        It could be as easy as setting NCHAN_MAX higher but I am not familiar
        with sndio so I don't know if that will work


dmesg:
OpenBSD 6.5-current (GENERIC.MP) #148: Sat Jul 27 10:00:49 MDT 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17090342912 (16298MB)
avail mem = 16562249728 (15794MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x9ceac000 (47 entries)
bios0: vendor Insyde version "F.30" date 10/24/2014
bios0: Hewlett-Packard HP ENVY 15 Notebook PC
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI FPDT MSDM ASF! HPET APIC MCFG SSDT BOOT LPIT ASPT DBGP SSDT SSDT SSDT DMAR BGRT
acpi0: wakeup devices P0P1(S4) PS2K(S3) PS2M(S3) EHC1(S4) EHC2(S4) XHC_(S3) HDEF(S4) RP02(S4) PXSX(S5) PEG0(S4) PEGP(S4) PEG1(S4) PEG2(S4) AWAD(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.39 MHz, 06-3c-03
cpu0: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 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.2.4, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu1: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu2: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu3: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 4 (application processor)
cpu4: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu4: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 5 (application processor)
cpu5: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu5: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 6 (application processor)
cpu6: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu6: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz, 2594.00 MHz, 06-3c-03
cpu7: 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,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,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu7: 256KB 64b/line 8-way L2 cache
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP03)
acpiprt5 at acpi0: bus -1 (PEG0)
acpiprt6 at acpi0: bus -1 (PEG1)
acpiprt7 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu4 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu5 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu6 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu7 at acpi0: C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0acpitz0: TZ01: failed to read _CRT
acpitz0: TZ01: failed to read _CRT
: no critical temperature defined
acpibat0 at acpi0: BAT0 not present
acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
acpicmos0 at acpi0
"SYN1EC9" at acpi0 not configured
"HPQ6007" at acpi0 not configured
"HPQ6001" at acpi0 not configured
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
"ACPI000E" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2594 MHz: speeds: 2601, 2600, 2500, 2300, 2200, 2100, 2000, 1800, 1700, 1600, 1400, 1300, 1200, 1100, 900, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4600" rev 0x06
drm0 at inteldrm0
inteldrm0: msi
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi
azalia0: No codecs found
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x05: msi, xHCI 1.0
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 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x05: apic 2 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x05: msi
azalia1: codecs: Realtek/0x0290
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd5: msi
pci1 at ppb0 bus 1
iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless AC 3160" rev 0x83, msi
ppb1 at pci0 dev 28 function 1 "Intel 8 Series PCIE" rev 0xd5: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x10: RTL8168GU/8111GU (0x5080), msi, address 3c:a8:2a:a4:bf:eb
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb2 at pci0 dev 28 function 2 "Intel 8 Series PCIE" rev 0xd5: msi
pci3 at ppb2 bus 3
ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x05: apic 2 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel HM87 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x05: msi, AHCI 1.3
ahci0: port 4: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 4 lun 0: <ATA, WDC WDS500G2B0A-, X611> SCSI3 0/direct fixed naa.5001b448b6a022e1
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x05: apic 2 int 18
iic0 at ichiic0
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)
wsmouse0 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.1, 0x1e2b1 0x840300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhub3 at uhub0 port 1 configuration 1 interface 0 "GenesysLogic USB2.0 Hub" rev 2.10/92.24 addr 2
uhidev0 at uhub3 port 2 configuration 1 interface 0 "Corsair Corsair STRAFE Gaming Keyboard" rev 2.00/2.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub3 port 2 configuration 1 interface 1 "Corsair Corsair STRAFE Gaming Keyboard" rev 2.00/2.04 addr 3
uhidev1: iclass 3/0, 14 report ids
ukbd1 at uhidev1 reportid 1: 128 variable keys, 0 key codes
wskbd2 at ukbd1 mux 1
uhid0 at uhidev1 reportid 2: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=63, output=0, feature=0
uhid2 at uhidev1 reportid 14: input=63, output=0, feature=0
uhidev2 at uhub3 port 2 configuration 1 interface 2 "Corsair Corsair STRAFE Gaming Keyboard" rev 2.00/2.04 addr 3
uhidev2: no input interrupt endpoint
uaudio0 at uhub0 port 2 configuration 1 interface 1 "Focusrite Scarlett 18i8 USB" rev 2.00/4.34 addr 4
uaudio0: class v2, high-speed, async, channels: 8 play, 18 rec, 0 ctls
audio1 at uaudio0
umidi0 at uhub0 port 2 configuration 1 interface 4 "Focusrite Scarlett 18i8 USB" rev 2.00/4.34 addr 4
umidi0: (genuine USB-MIDI)
umidi0: out=1, in=1
midi0 at umidi0: <USB MIDI I/F>
ugen0 at uhub0 port 2 configuration 1 "Focusrite Scarlett 18i8 USB" rev 2.00/4.34 addr 4
uhidev3 at uhub0 port 6 configuration 1 interface 0 "Logitech Gaming Mouse G402" rev 2.00/90.02 addr 5
uhidev3: iclass 3/1
ums0 at uhidev3: 16 buttons, Z and W dir
wsmouse1 at ums0 mux 0
uhidev4 at uhub0 port 6 configuration 1 interface 1 "Logitech Gaming Mouse G402" rev 2.00/90.02 addr 5
uhidev4: iclass 3/0, 17 report ids
ukbd2 at uhidev4 reportid 1: 8 variable keys, 6 key codes
wskbd3 at ukbd2 mux 1
uhid3 at uhidev4 reportid 3: input=4, output=0, feature=0
uhid4 at uhidev4 reportid 4: input=1, output=0, feature=0
uhid5 at uhidev4 reportid 16: input=6, output=6, feature=0
uhid6 at uhidev4 reportid 17: input=19, output=19, feature=0
uhub4 at uhub0 port 16 configuration 1 interface 0 "GenesysLogic USB3.0 Hub" rev 3.00/92.24 addr 6
uhub5 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.05 addr 2
uvideo0 at uhub5 port 1 configuration 1 interface 0 "Chicony Electronics Co., Ltd. HP Truevision HD" rev 2.00/69.39 addr 3
video0 at uvideo0
ugen1 at uhub5 port 3 "Intel product 0x07dc" rev 2.00/0.01 addr 4
ugen2 at uhub5 port 4 "Validity Sensors product 0x0050" rev 1.10/0.60 addr 5
uhub6 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.05 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (33d73aacbca58f15.a) swap on sd0b dump on sd0b
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwm0: hw rev 0x160, fw ver 16.242414.0, address 34:e6:ad:54:e9:da

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub0
addr 02: 05e3:0610 GenesysLogic, USB2.0 Hub
         high speed, self powered, config 1, rev 92.24
         driver: uhub3
addr 03: 1b1c:1b15 Corsair, Corsair STRAFE Gaming Keyboard
         full speed, power 500 mA, config 1, rev 2.04, iSerial 1400C028AEA7A44454E1C396F5001940
         driver: uhidev0
         driver: uhidev1
         driver: uhidev2
addr 04: 1235:8204 Focusrite, Scarlett 18i8 USB
         high speed, self powered, config 1, rev 4.34, iSerial 00029772
         driver: uaudio0
         driver: umidi0
         driver: ugen0
addr 05: 046d:c07e Logitech, Gaming Mouse G402
         full speed, power 300 mA, config 1, rev 90.02, iSerial 8D8727884949
         driver: uhidev3
         driver: uhidev4
addr 06: 05e3:0612 GenesysLogic, USB3.0 Hub
         super speed, self powered, config 1, rev 92.24
         driver: uhub4
Controller /dev/usb1:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub1
addr 02: 8087:8008 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.05
         driver: uhub5
addr 03: 04f2:b40e Chicony Electronics Co., Ltd., HP Truevision HD
         high speed, power 500 mA, config 1, rev 69.39
         driver: uvideo0
addr 04: 8087:07dc Intel, product 0x07dc
         full speed, self powered, config 1, rev 0.01
         driver: ugen1
addr 05: 138a:0050 Validity Sensors, product 0x0050
         full speed, power 100 mA, config 1, rev 0.60, iSerial c516ff2024e3
         driver: ugen2
Controller /dev/usb2:
addr 01: 8086:0000 Intel, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub2
addr 02: 8087:8000 Intel, Rate Matching Hub
         high speed, self powered, config 1, rev 0.05
         driver: uhub6

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

Alexandre Ratchov-2
On Sat, Jul 27, 2019 at 05:26:30PM -0600, Samuel Larkin wrote:

>
> >Synopsis: Sndiod failds with >16 audio channels
> >Category: system
> >Environment:
> System      : OpenBSD 6.5
> Details     : OpenBSD 6.5-current (GENERIC.MP) #148: Sat Jul 27 10:00:49 MDT 2019
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
> I am using a Focusrite Scarlett 18i8 2nd Gen, which has 18 input
> audio channels. When I run 'sndiod -ddd -f rsnd/1' I get the output
>
> snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
> helper(helper|ini): created
> worker(worker|ini): created
> listen(/tmp/sndio/sock0|ini): created
> sock(sock|ini): created
> helper: recv: cmd = 0, num = 0, mode = 3, fd = -1
> helper: send: cmd = 3, num = 0, mode = 0, fd = 3
> sock,rmsg,widl: AUTH message
> sock,rmsg,widl: HELLO message
> sock,rmsg,widl: hello from <firefox>, mode = 1, ver 7
> snd0 pst=cfg: device requested
> worker: send: cmd = 0, num = 0, mode = 3, fd = -1
> worker: recv: cmd = 3, num = 0, mode = 0, fd = 6
> rsnd/1: 18: unsupported number of rec channels
> snd0 pst=cfg: rsnd/1: failed to open audio device
> sock,rmsg,widl: closing
> sock(sock|zom): destroyed
> worker(worker|zom): destroyed
> listen(/tmp/sndio/sock0|zom): destroyed
> snd0 pst=cfg: draining
> nothing to do...
> snd0 pst=cfg: deleting
> helper: hup
> helper(helper|zom): destroyed
> nothing to do...
>
> Note the line 'rsnd/1: 18: unsupported number of rec channels'
>
> I can see that in /src/usr.bin/sndiod/defs.h that 'NCHAN_MAX' is set to 16.
> Is this something that can easily be set higher?
>
> >How-To-Repeat:
> run 'sndiod -f rsnd/1' with rsnd/1 having more than 16 audio channels
> >Fix:
> It could be as easy as setting NCHAN_MAX higher but I am not familiar
> with sndio so I don't know if that will work

Yes that should work. I'll look at this. Meanwhile, you could crank
sndiod and aucat's NCHAN_MAX to 64.  They are defined in
src/usr.bin/sndiod/defs.h and src/usr.bin/aucat/defs.h respectively.

I'm very curious to know how the uaudio driver handles this device,
it's the first time someone tries a device with that many channels on
OpenBSD. Until now the record was held by the 12-channel Delta-1010.

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

Samuel Larkin
>
> Yes that should work. I'll look at this. Meanwhile, you could crank
> sndiod and aucat's NCHAN_MAX to 64.  They are defined in
> src/usr.bin/sndiod/defs.h and src/usr.bin/aucat/defs.h respectively.

I'll try this when I get the chance, probably tomrrow

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

Alexandre Ratchov-2
On Sat, Jul 27, 2019 at 08:47:58PM -0600, Samuel Larkin wrote:
> >
> > Yes that should work. I'll look at this. Meanwhile, you could crank
> > sndiod and aucat's NCHAN_MAX to 64.  They are defined in
> > src/usr.bin/sndiod/defs.h and src/usr.bin/aucat/defs.h respectively.
>
> I'll try this when I get the chance, probably tomrrow
>

I verified that cranking the max number of channels can't cause
regressions and just committed the change.

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

Samuel Larkin
On Sun, Jul 28, 2019 at 11:52:52AM +0200, Alexandre Ratchov wrote:
> On Sat, Jul 27, 2019 at 08:47:58PM -0600, Samuel Larkin wrote:
>
> I verified that cranking the max number of channels can't cause
> regressions and just committed the change.

I tested the changes and it is working. I wasn't able to test channels 9:17
as they are the ADAT channels on the interface and I don't have any hardware
with an ADAT out. The other channels are working for both recording and playback.

If I end up comming across something with ADAT out I will test the higher channels

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

peters-12
Samuel Larkin <[hidden email]> wrote:

> On Sun, Jul 28, 2019 at 11:52:52AM +0200, Alexandre Ratchov wrote:
> > On Sat, Jul 27, 2019 at 08:47:58PM -0600, Samuel Larkin wrote:
> >
> > I verified that cranking the max number of channels can't cause
> > regressions and just committed the change.
>
> I tested the changes and it is working. I wasn't able to test channels 9:17
> as they are the ADAT channels on the interface and I don't have any hardware
> with an ADAT out. The other channels are working for both recording and playback.
>
> If I end up comming across something with ADAT out I will test the higher channels

What is the minimum latency with this device?

Reply | Threaded
Open this post in threaded view
|

Re: Sndio with >16 audio channels

Alexandre Ratchov-2
On Thu, Aug 01, 2019 at 11:38:43AM +0200, [hidden email] wrote:

> Samuel Larkin <[hidden email]> wrote:
>
> > On Sun, Jul 28, 2019 at 11:52:52AM +0200, Alexandre Ratchov wrote:
> > > On Sat, Jul 27, 2019 at 08:47:58PM -0600, Samuel Larkin wrote:
> > >
> > > I verified that cranking the max number of channels can't cause
> > > regressions and just committed the change.
> >
> > I tested the changes and it is working. I wasn't able to test channels 9:17
> > as they are the ADAT channels on the interface and I don't have any hardware
> > with an ADAT out. The other channels are working for both recording and playback.
> >
> > If I end up comming across something with ADAT out I will test the higher channels
>
> What is the minimum latency with this device?

All uaudio devices are supposed to work with 2ms blocks (two usb
frames). I've used setups with 3-blocks, i.e. 6ms latency and sound is
stable provided that system load is low.

There may be some extra latency added by device internals, but for
most devices it's negligible copared to the block size.