Skip to contentSkip to conversation

Fireworks Alsa Driver Buffer SIze

DISCUSSION [email protected] 1 participant 1 message Apr 8, 2025

lore
Share & tools
lore
#0 lore raw

Hi

I'm using an AudioFire 8a that has 16 channels over the firewire bus and the snd-fireworks alsa firewire driver. In Jack, when I set Frames/Period to anything higher than 64, alsa fails with an error saying

Mon Apr 7 22:15:35 2025: ERROR: ALSA: cannot set hardware parameters for capture Mon Apr 7 22:15:35 2025: ERROR: ALSA: cannot configure capture channel

I noticed that the output of "aplay -D hw:1,0 --dump-hw-params /dev/zero" indicated the following alsa settings:
Playing raw data '/dev/zero' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "hw:1,0":
--------------------

ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S32_LE
SUBFORMAT:  STD
SAMPLE_BITS: 32
FRAME_BITS: [384 512]
CHANNELS: [12 16]
RATE: [32000 96000]
PERIOD_TIME: [250 32000]
PERIOD_SIZE: [16 2720]
PERIOD_BYTES: [768 131072]
PERIODS: [2 341]
BUFFER_TIME: (333 170500]
BUFFER_SIZE: [32 5456]
BUFFER_BYTES: [1536 262144]
TICK_TIME: ALL

--------------------
aplay: set_params:1371: Sample format non available Available formats:
- S32_LE

I was concerned that the BUFFER_SIZE was too small to support 16 channels at a 128 Frames/Period size. But when I modded the driver to increase this figure, it did not fix the issue.

Anyone have any insight on this issue? Running Ubuntu 24.04 with kernel 6.8.0-57-lowlatency. Everything seems to work fine when I set 64 Frames/Period (except the occasional annoying stuttering that one can expect in that scenario; with a buffer that is too small to support the system load).

Thanks

Jay