Problems with JACK on Odroid U3

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
cstuff
Posts: 2
Joined: Sat Jan 10, 2015 1:04 pm

Problems with JACK on Odroid U3

Post by cstuff »

Hi I have been trying to get the audio latency down on the U3.
Was able to get a real-time kernel working (3.8.13.26-rt31 from https://github.com/jepler/odroid-linux).
Was able to get qjackctl running and can start it with Realtime=on and Frames/Period>=1024.

This however doesn't allow for low latency :(

If I set the Frames/Period lower than 1024 it results in the following ALSA error (e.g. with 128 size):
ALSA: cannot set period size to 128 frame for capture/playback.

Any advice is highly appreciated, do I have to dig into the kerner driver for the Max98090 Codec for this?

:shock:
cstuff
Posts: 2
Joined: Sat Jan 10, 2015 1:04 pm

Re: Problems with JACK on Odroid U3

Post by cstuff »

I have made some progress by changing in the kernel this file:

sound/soc/samsung/dma.c
.period_bytes_min = 128, // was PAGE_SIZE
.period_bytes_max = 128*1024, // was PAGE_SIZE*2

was able to test the drum computer Hydrogen with JACK now at 96kHz with 128 samples buffer (~3ms latency).
seems to work stable so far but buffers < 128 didn't work so far, maybe someone else could try/comment what adaptations to make

COOL STUFF!
:D
Post Reply