nexus511 / gpd-ubuntu-packages

This repository shall provide the base for building ubuntu packages from most of the patches currently used to get linux on the gpd-pocket.
GNU General Public License v3.0
73 stars 4 forks source link

JACK not working #49

Open sobukus opened 6 years ago

sobukus commented 6 years ago

I would like to be able to use the GPD to work on some audio recordings. It should easily have enough CPU power. I cannot get JACK (version 2) to work. Looks like that:

jackd -R -d alsa -d hw:1,0 -r 48000 -S
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:1,0|hw:1,0|1024|2|48000|0|0|nomon|swmeter|-|16bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Driver is not running
Cannot create new client
Unknown request 4294967295
CheckSize error size = 0 Size() = 12
CheckRead error
JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Driver is not running
Cannot create new client
Unknown request 4294967295
CheckSize error size = 0 Size() = 12
CheckRead error

Anyone got more success? I am testing with

$ out123 --wave-freq 440 -r 48000 -e f32 -o jack -vvv
Trying output module: jack, device: <nil>
Using default module dir: /usr/lib/x86_64-linux-gnu/mpg123
Module dir: /usr/lib/x86_64-linux-gnu/mpg123
Module path: /usr/lib/x86_64-linux-gnu/mpg123/output_jack.so
Note: jack is the last output option... showing you any error messages now.
Cannot read socket fd = 5 err = Success
CheckRes error
JackSocketClientChannel read fail
Cannot open out123 client
JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
[src/libout123/modules/jack.c:431] error: Failed to open jack client: 0x21
[src/libout123/libout123.c:451] error: Found no driver out of [jack] working with device <default>.
out123: [src/out123.c:162] error: out123 error 3: failure loading driver module

Also not more luck with mplayer -ao jack. It seems the hardware gets screwed up after some attempts, I guess those kernel messages are not healthy:

[ 5719.167943] i2c_designware 808622C1:01: controller timed out
[ 5720.191301] i2c_designware 808622C1:01: controller timed out
[ 5721.215281] i2c_designware 808622C1:01: controller timed out
[ 5722.238960] intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3
[ 5722.238987] intel_sst_acpi 808622A8:00: fw returned err -16
[ 5722.239029] sst-mfld-platform sst-mfld-platform: ASoC: PRE_PMD: pcm0_in event failed: -16
[ 5723.262642] intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3
[ 5723.262672] intel_sst_acpi 808622A8:00: fw returned err -16
[ 5723.262705] sst-mfld-platform sst-mfld-platform: ASoC: POST_PMD: media0_out event failed: -16
[ 5724.286510] intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3
[ 5724.286540] intel_sst_acpi 808622A8:00: fw returned err -16
[ 5724.286571] sst-mfld-platform sst-mfld-platform: ASoC: POST_PMD: codec_out0 mix 0 event failed: -16
[ 5725.310017] intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3
[ 5725.310047] intel_sst_acpi 808622A8:00: fw returned err -16
[ 5725.310082] sst-mfld-platform sst-mfld-platform: ASoC: POST_PMD: media0_out mix 0 event failed: -16
[ 5726.333576] i2c_designware 808622C1:01: controller timed out
[ 5727.357317] i2c_designware 808622C1:01: controller timed out
[ 5728.381145] i2c_designware 808622C1:01: controller timed out
[ 5729.404687] i2c_designware 808622C1:01: controller timed out

Well, things work once I connect an external audio device to the USB A port. Nothing one can do here, I suppose. The driver for the audio chip (or the chip itself) simply does not work properly. This is using Hans' kernel version 4.16.0-rc5+.

sobukus commented 6 years ago

Tried again after a fresh boot. Playing a video in the browser worked with sound. Opening terminal, start jackd as indicated above, try to play: failure. Kernel messages:

[  372.180365] intel_sst_acpi 808622A8:00: sst: Busy wait failed, cant send this msg
[  372.246498] intel_sst_acpi 808622A8:00: sst: Busy wait failed, cant send this msg
[  372.255199] intel_sst_acpi 808622A8:00: sst: Busy wait failed, cant send this msg

These continue while jackd is hanging in limbo. When I kill it (SIGINT was enough this time), the messages stop. I can continue playing a video in the browser with sound after that, this time. I am not sure how I achieved killing the audio device for sure before.