fulup-bzh / AlsaJsonGateway

HTTP REST/JSON Gateway to ALSA mixer service for HTML5 UI
53 stars 5 forks source link

Issue with scarlet 18i20 2nd gen #5

Open daeavelwyn opened 8 years ago

daeavelwyn commented 8 years ago

hello,

I just got a scarlet 18i20 2nd GEN and i'm trying to make AlsaJsonGateway working with. I've a working installation with a 1st gen 18i8, and i'm trying to use the same config for the new scarlett but got this error.

Here are some informations :

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:07dc Intel Corp. 
Bus 001 Device 002: ID 064e:9700 Suyin Corp. Asus Integrated Webcam
Bus 001 Device 004: ID 1235:8201 Focusrite-Novation 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ajg-daemon --rootdir=$AJW_DIR --verbose --port=1234  
AJG:warning: config at /home/daeavelwyn/AJW/sessions/AJG-config.json: No such file or directory
AJG:notice checking session dir [/home/daeavelwyn/AJW/sessions]
AJG:notice Init config done
AJG:notice Foreground mode
AJG:notice Waiting port=1234 rootdir=/home/daeavelwyn/AJW
AJG:notice Browser URL= http://localhost:1234
AJG:notice entering httpd waiting loop
AJG:notice Use Ctrl-C to quitServing: [/home/daeavelwyn/AJW/index.html]
Serving: [/home/daeavelwyn/AJW/mixers/ajg]
Serving: [/home/daeavelwyn/AJW/externals/mm-foundation-tpls.min.js]
Serving: [/home/daeavelwyn/AJW/externals/script.min.js]
Serving: [/home/daeavelwyn/AJW/externals/angular-ui-notification.min.js]
Serving: [/home/daeavelwyn/AJW/mixers/css/common-mixer.css]
Serving: [/home/daeavelwyn/AJW/externals/bzm-range-slider.min.js]
Serving: [/home/daeavelwyn/AJW/externals/bzm-range-slider.css]
Serving: [/home/daeavelwyn/AJW/externals/angular-ui-notification.min.css]
Serving: [/home/daeavelwyn/AJW/mixers/css/scarlett-mixer.css]
Serving: [/home/daeavelwyn/AJW/mixers/js/common-mixer.js]
Serving: [/home/daeavelwyn/AJW/mixers/partials/mixer-connect.html]
1: alsajson GATEWAY_PING
AJG:success [  0]: 1
2: alsajson CARD_GET_ALL
AJG: Soundcard Devid=hw:0  Cardid=Loopback Name=Loopback 1
AJG: Soundcard Devid=hw:1  Cardid=HDMI    Name=HDA Intel HDMI at 0xf7d1c000 irq 45
AJG: Soundcard Devid=hw:2  Cardid=PCH     Name=HDA Intel PCH at 0xf7d18000 irq 44
AJG: Soundcard Devid=hw:3  Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
AJG:empty  [  1]: SndCard [hw:4] Not Found
AJG:empty  [  2]: SndCard [hw:5] Not Found
AJG:empty  [  3]: SndCard [hw:6] Not Found
AJG:empty  [  4]: SndCard [hw:7] Not Found
AJG:empty  [  5]: SndCard [hw:8] Not Found
AJG:empty  [  6]: SndCard [hw:9] Not Found
AJG:empty  [  7]: SndCard [hw:10] Not Found
AJG:empty  [  8]: SndCard [hw:11] Not Found
AJG:empty  [  9]: SndCard [hw:12] Not Found
AJG:empty  [ 10]: SndCard [hw:13] Not Found
AJG:empty  [ 11]: SndCard [hw:14] Not Found
AJG:empty  [ 12]: SndCard [hw:15] Not Found
AJG:empty  [ 13]: SndCard [hw:16] Not Found
AJG:empty  [ 14]: SndCard [hw:17] Not Found
AJG:empty  [ 15]: SndCard [hw:18] Not Found
AJG:empty  [ 16]: SndCard [hw:19] Not Found
AJG:empty  [ 17]: SndCard [hw:20] Not Found
AJG:empty  [ 18]: SndCard [hw:21] Not Found
AJG:empty  [ 19]: SndCard [hw:22] Not Found
AJG:empty  [ 20]: SndCard [hw:23] Not Found
AJG:empty  [ 21]: SndCard [hw:24] Not Found
AJG:empty  [ 22]: SndCard [hw:25] Not Found
AJG:empty  [ 23]: SndCard [hw:26] Not Found
AJG:empty  [ 24]: SndCard [hw:27] Not Found
AJG:empty  [ 25]: SndCard [hw:28] Not Found
AJG:empty  [ 26]: SndCard [hw:29] Not Found
AJG:empty  [ 27]: SndCard [hw:30] Not Found
AJG:empty  [ 28]: SndCard [hw:31] Not Found
Serving: [/home/daeavelwyn/AJW/mixers/partials/scarlett-mixer.html]
Serving: [/home/daeavelwyn/AJW/mixers/js/scarlett-mixer.js]
Serving: [/home/daeavelwyn/AJW/mixers/partials/scarlett-capture.html]
Serving: [/home/daeavelwyn/AJW/mixers/partials/scarlett-master.html]
AJG: Soundcard Devid=hw:USB Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
AJG:empty  [ 29]: [Scarlett 18i20 USB] no session at [/home/daeavelwyn/AJW/sessions]
5: alsajson CTRL_GET_ALL
AJG: Soundcard Devid=hw:USB Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
7: alsajson SESSION_LOAD cardid=hw:USB session=current-session
AJG: Soundcard Devid=hw:USB Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
json_object_from_file: error opening file Scarlett 18i20 USB/active-session.ajg: No such file or directory
AJG:empty  [ 30]: File [Scarlett 18i20 USB/active-session.ajg] not found
Serving: [/home/daeavelwyn/AJW/mixers/partials/matrix-fader.html]
AJG: Soundcard Devid=hw:USB Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
AJG:empty  [ 31]: [Scarlett 18i20 USB] no session at [/home/daeavelwyn/AJW/sessions]
10: alsajson CTRL_GET_ALL
AJG: Soundcard Devid=hw:USB Cardid=USB     Name=Focusrite Scarlett 18i20 USB at usb-0000:00:14.0-1, high speed
12: alsajson GATEWAY_PING
AJG:success [ 32]: 12
13: alsajson GATEWAY_PING
AJG:success [ 33]: 13
14: alsajson GATEWAY_PING
AJG:success [ 34]: 14
^CINF:signalQuit received signal to quit
INF:main returning from longjump after signal [2]

(14-Sep 23:34) INF:main pid=7560 received exit signal (Hopefully crtl-C or --kill-previous !!!)

I also attached a screenhot of the mixer view.

alsajsonmixer_scarlett18i20-2ndgen

I also have to say qasmixer doesn't show me mixer's capabilities qasmixer_scarlett18i20

I'd really appreciate informations or workaround to help me to debug this :)

fulup-bzh commented 8 years ago

Sorry for the delay, unfortunately I do not have such a board in hand and cannot reproduce your problem. Your board is visible and detected, it respond to ping but it look like value return by the Alsa driver diverge with previous version. You should send manually a alsajson CTRL_GET_ALL from a command line and check for the respond. Before doing so make sure than Focusrit alsa driver is effectively loaded.