Page 1 of 1

All OK but it does not work... (solved but...)

Posted: Wed Feb 27, 2019 11:02
by hifi25nl
Testing in audiolinux http://www.audio-linux.com based on archlinux, fully updated and with realtime kernel 4.19.x

1) Driver (Linux Kernel Module) is compiled and loaded correctly without errors
2) Butler daemon starts correctly
3) The configuration file /opt/ravenna-alsa/merging_ravenna_daemon.conf contains

interface_name = bridge0
web_app_port = 9090
web_app_path = /opt/Ravenna-alsa/webapp/advanced/
tic_frame_size_at_1fs = 256

And by going to ipaddress:9090 everything works perfectly

4) In the player (in this case hqplayer embedded) is selected ravenna as DAC

However it does not work. No sound In the web interface Hapi shows as disconnected.

Some suggestion?
Can it work with a Network bridge with Hapi connected directly to one port and the router connected to another?
In this case I should use the the bridge name in interface option or the interface name that is connected directly to Hapi?

Re: All OK but it does not work...

Posted: Mon Mar 04, 2019 10:16
by florian
Could you check what is the status of the Session sink in the Hapi web page ?
Please refer to the following doc: https://confluence.merging.com/pages/viewpage.action?pageId=33260125

Thanks for your tests

Re: All OK but it does not work...

Posted: Wed Mar 06, 2019 14:26
by hifi25nl
At last the testing was successfull selecting 32 bit output on the player (hqplayer embedded)
It seems however that Aneman is available only on Mac or Window, so configuration is a little tricky.

Re: All OK but it does not work...

Posted: Wed Mar 06, 2019 14:33
by hifi25nl
One more problem:
driver cannot be compiled on kernel 4.20.x and 5.x
This output is on kernel 5.0.0

Code: Select all

[audiolinux@archlinux driver]$ make
make -C /lib/modules/5.0.0-arch1-1-ARCH/build/ M=/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver modules
make[1]: Entering directory '/usr/lib/modules/5.0.0-arch1-1-ARCH/build'
ù  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/c_wrapper_lib.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/audio_driver.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/manager.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_main.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/PTP.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_interface.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_netlink.o
In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_netlink.c:32:
In function ‘memcpy’,
    inlined from ‘recv_reply_from_user_land’ at /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_netlink.c:163:6:
./include/linux/string.h:352:9: warning: argument 1 null where non-null expected [-Wnonnull]
  return __builtin_memcpy(p, q, size);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_netlink.c: In function ‘recv_reply_from_user_land’:
./include/linux/string.h:352:9: note: in a call to built-in function ‘__builtin_memcpy’
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/module_timer.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/EtherTubeNetfilter.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/RTP_streams_manager.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/RTP_audio_stream.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/RTP_stream.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/RTP_stream_info.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_EthUtils.o
  CC [M]  /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.o
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c: In function ‘MTAL_LK_GetCounterTime’:
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c:190:5: error: implicit declaration of function ‘getrawmonotonic64’; did you mean ‘getrawmonotonic’? [-Werror=implicit-function-declaration]
     getrawmonotonic64(&ts64);
     ^~~~~~~~~~~~~~~~~
     getrawmonotonic
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c: In function ‘MTAL_LK_GetSystemTime’:
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c:210:5: error: implicit declaration of function ‘getnstimeofday64’; did you mean ‘getnstimeofday’? [-Werror=implicit-function-declaration]
     getnstimeofday64(&ts64);
     ^~~~~~~~~~~~~~~~
     getnstimeofday
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:277: /media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.o] Error 1
make[1]: *** [Makefile:1553: _module_/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.0.0-arch1-1-ARCH/build'
make: *** [Makefile:14: modules] Error 2

Re: All OK but it does not work... (solved but...)

Posted: Sat Mar 09, 2019 15:07
by hifi25nl
New problem with driver:
"That is one of the bugs in the Ravenna ALSA driver... It doesn't start playback again after stopping once, unless the entire device is closed and reopened..."

Re: All OK but it does not work...

Posted: Tue Mar 12, 2019 23:20
by ccaudle
hifi25nl wrote:One more problem:
driver cannot be compiled on kernel 4.20.x and 5.x

Code: Select all

/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c: In function ‘MTAL_LK_GetCounterTime’:
/media/linux/Downloads/Temp/ravenna-alsa-lkm/driver/MTAL_LKernelAPI.c:190:5: error: implicit declaration of function ‘getrawmonotonic64’; did you



See my post here viewtopic.php?f=73&t=14061 with a diff to MTAL_LKernelAPI.c to allow using the newer kernel API which is 2038 compatible.
I posted that a month ago but does not seem to be incorporated into the git repository yet.

Re: All OK but it does not work... (solved but...)

Posted: Wed Mar 20, 2019 18:49
by hifi25nl
Edited

New problem: if you start alsamixer the output is giving 8 channels as in Dolby 7.1...