368 Commits

Author SHA1 Message Date
Andrea Bondavalli
df927e2224
Update DEVICES.md 2020-06-30 11:30:33 +02:00
Andrea Bondavalli
271f6d7b5c
Update DEVICES.md 2020-06-30 11:29:11 +02:00
Andrea Bondavalli
a22546619c Reworked timer module to use a separate tasklet to handle timer callback.
This is the same approach already used with Linux Kernel 4.x, but in Linux Kernel 5.x tasklet_hrtimer helper functions were removed.
This fixes issue #12
2020-06-29 18:58:12 +02:00
Andrea Bondavalli
897b1e0032 Fix to patch ravenna-alsa-lkm-independent-playback-capture.patch, see issue #11 2020-06-27 14:15:16 +02:00
Andrea Bondavalli
81849fc46c
Update DEVICES.md
minor changes
2020-06-27 10:11:56 +02:00
Andrea Bondavalli
9b6dfa887f Created DEVICES.md document with the list of devices and interoperability testes carried out so far.
Added Dante transmitter and receiver devices to the list of supported devices.
2020-06-27 10:03:30 +02:00
Andrea Bondavalli
fbf28ada45 Changed remote SAP source default announce period to daemon default SAP interval 2020-06-27 10:00:22 +02:00
Andrea Bondavalli
cee8823e5c Added handling of session ID <sess-id> and session version <sess-version> in the Origin ("o=") field of the Sources SDP files.
Session ID is the Node ID plus the source ID.
Session version is the session ID plus an increasing version identifier.
This fixes issue #10 and allows Dante Controller to properly handle the daemon Sources.
2020-06-27 09:32:06 +02:00
Andrea Bondavalli
3aeed93856 Added patch to the ALSA RAVENNA/AES67 driver to handle independent playback and capture I/O startup and termination.
This fixes issue #11
2020-06-26 19:31:23 +02:00
Andrea Bondavalli
9062a82033 - modified daemon code to support startup in case the specified network interface doesn't have an IP address. In this case the daemon waits for an IP address.
- removed not functional daemon option (-i)
- fixed exception handling in SAP::send() method
2020-06-18 19:49:24 +02:00
Andrea Bondavalli
6449524ed5 Modified daemon code and build.sh script to use version v0.7.0 of cpp-httplib 2020-06-18 19:33:21 +02:00
Andrea Bondavalli
098cebd056 Applied Clang source code formatting to daemon sources 2020-06-16 21:14:44 +02:00
Andrea Bondavalli
f9a07569f9 Added fix to AES67 Driver to remove a kernel message that can delay the playback startup on slow platform 2020-06-15 20:49:33 +02:00
Andrea Bondavalli
95e6fbcf56 Fixed add_remove_check_mdns_browser_update_all regression test.
Added note on regression tests execution.
2020-06-15 19:54:26 +02:00
Andrea Bondavalli
3a386696e9 Removed execute permission from source files 2020-06-14 23:54:36 +02:00
Andrea Bondavalli
b40a6a51f3 Node ID generation is based on the IP address of the selected interface.
Removed call to gethostid() function that is buggy and can create troubles.
2020-06-14 23:13:48 +02:00
Andrea Bondavalli
e7cfaa1d99 Minor changes to code indentation 2020-06-14 05:30:58 -07:00
Andrea Bondavalli
7f2bd7f4f0 Fix to generation of Node ID based on get_node_id() utils function: if gethostid() uses the loopback address interface IPv4 we create a new ID based on the current interface IPv4
This fixes a problem on old Ubuntu distro causing the Node ID to be the same for multiple hosts.
Additional minor changes:
 - removed compilation warnings
 - some fixes to code indentation
2020-06-14 14:05:21 +02:00
Andrea Bondavalli
7c5d2a4b29 Fixed missing include files 2020-06-06 23:36:26 +02:00
Andrea Bondavalli
9aaa5172ee Set of changes to support new ALSA RAVENNA/AES67 device driver version 1.1.93
- removed changes to driver/MTAL_LKernelAPI.c in ravenna-alsa-lkm-kernel-v5.patch
- added patch ravenna-alsa-lkm-disable-ptp-checksum.patch to the driver to the disable UDP checksum verification for the incoming PTP packets
- changed build.sh script to use new driver revision and apply the new patch
- added handling of the sink status flag "all_muted" in daemon, WebUI and regression tests
- updated documentation
2020-06-06 20:43:44 +02:00
Andrea Bondavalli
13c7078a88 Minor changes to regression tests 2020-06-04 10:29:28 -07:00
Andrea Bondavalli
0b27a6ee9e Minor changes 2020-06-04 10:26:42 -07:00
Andrea Bondavalli
6a025c1e7a Modified sample scripts sample rate to daemon default, that is 48Khz 2020-06-04 09:24:42 -07:00
Andrea Bondavalli
8f09eec36c Disabled use of valgrind memcheck during daemon regression tests 2020-06-04 09:23:59 -07:00
Andrea Bondavalli
371090e7b9 Changes to SessionManager class to handle notifications for source updates triggered when the PTP GMID clock changes or the driver sample rate changes.
SessionManager allows the registration of source update observers and delivers via callbacks the above notifications.
RTSP server modified to register to source update notifications and to send updates to clients via ANNOUNCE method.
2020-06-04 09:14:17 -07:00
Andrea Bondavalli
3a60c0492f Change to RTSP client to accept also an empty Content-Type.
In this case application/sdp is assumed.
2020-06-04 09:12:39 -07:00
Andrea Bondavalli
0367dc33a0 MDNS client changed to avoid that multiple Avahi resolvers try to resolve the same name and domain simultaneously 2020-06-04 09:09:57 -07:00
Andrea Bondavalli
e348400246 Improved robustness of RTSP client removal handling 2020-06-02 14:10:36 -07:00
Andrea Bondavalli
267b97cbe7 Fix: added removal of RTSP client session if RTSP client connection closes 2020-06-02 12:31:40 -07:00
Andrea Bondavalli
836cee03f1 Added mDNS sourceS update regression tests:
- added source_check_mdns_browser_update test to verify mDNS update notification for a single source
- added add_remove_check_mdns_browser_update_all test to verify mDNS update notifications for all 64 sources
- additional fixes and minor changes to the test suite
2020-06-02 11:05:38 -07:00
Andrea Bondavalli
e05253d444 Additional set of changes to complete support for mDNS sources update via RTSP ANNOUNCE method as described by Ravenna.
The following changes enable support for RTCP client persistent connections used to receive RTSP server ANNOUNCE messages. These in turn update the remote sources in the Browser.
- added new process static method to RtspClient class to receive and update source SDP files via DESCRIBE and ANNOUNCE methods. This method can handle persistent connections with the RTSP server and triggers an observer callback when a source SDP file is received or updated. A map is used to track all active RTSP clients.
- added new stop and stop_all static methods to RtspClient class respectively to stop a specific RTCP client and to stop all clients.
- modified MDNSClient class to call RtspClient::process method when a new Ravenna service is added and the RtspClient::stop method when a service is removed. The RtspClient::stop_all method is called when the daemon terminates.
- modified Browser class to receive and handle remote RTSP sources SDP file add and change notifications. This class receives the updates via the RtspClient observer callback
- updated documentation
2020-06-02 10:56:44 -07:00
Andrea Bondavalli
aeb4e8b0a0 Changed maximum number of concurrent RTSP server sessions to 128 (double the maximum number of allowed Sources) 2020-06-02 09:55:51 -07:00
Andrea Bondavalli
cd6a651014 Fix to header file 2020-06-01 12:02:40 -07:00
Andrea Bondavalli
85727ea02f RTSP server ignores responses to ANNOUNCE 2020-06-01 12:00:34 -07:00
Andrea Bondavalli
d41b67d006 Set of changes to add support for mDNS sources SDP update via RTSP ANNOUNCE method as described by Ravenna.
- modified SessionManager class to register and trigger observer callbacks when a new session is added or removed
- moved MDNSServer out of the SessionManager and added instantiation in the daemon main
- MDNSServer instance registers to SessionManager to receive source add & remove events and invokes appropiate Avahi client operation
- RTSPServer instance registers to SessionManager to receive source update events. In case of update It sends RTSP ANNOUNCE (with the new SDP) to the connected RTSP clients that previously requested (via DESCRIBE method) the SDP file for the specific source
- removed disconnetion timeout handling in RTSPServer. RTSPServer connections are now persistent
2020-05-28 20:47:38 +02:00
Andrea Bondavalli
088cf3e8fe Merge branch 'master' of https://github.com/andreabondavalli74/aes67-linux-daemon 2020-05-07 20:09:55 +02:00
Andrea Bondavalli
07c2b35777 Various enhancements and fixes:
- fixed handling of Max samples per packet Source parameter in the WebUI and added computation of the real frame duration
- fixed max number of channels configurable for a Sink in the WebUI
- fixed tic_frame_size_at_1fs daemon parameter documentation
- changed daemon default sample_rate parameter to 48000 Hz
2020-05-07 20:07:19 +02:00
Andrea Bondavalli
f8d37dda74 Various enhancements and fixes:
- fixed handling of Max samples per packet Source parameter in the WebUI and ad>
- fixed max number of channels in the Sink configuration of the WebUI
- fixed tic_frame_size_at_1fs daemon parameter documentation
- changed daemon default frame size to 48000Hz
2020-05-07 19:57:38 +02:00
Andrea Bondavalli
9c4913f7e4
Update README.md 2020-05-02 21:47:01 +02:00
Andrea Bondavalli
745fa05d0b Improved handling of "tic_frame_size_at_1fs" daemon parameter, added the possibility to configure it with the WebUI and updated the documentation. 2020-05-02 20:20:21 +02:00
Andrea Bondavalli
37fa1de81b Minor changes 2020-05-02 11:39:51 +02:00
Andrea Bondavalli
4ccc2f526f Fix for issue Daemon fails to parse AVIO SDP file
- use correct delimiter ('=') and unsigned integer when extracing RTP timestamp offset from mediaclk:direct SDP audio attribute
 - use session connection information (c=) when audio specific connection information is missing
2020-04-27 21:15:37 +02:00
Andrea Bondavalli
9d714eb747 Minor changes 2020-04-24 10:59:19 -07:00
Andrea Bondavalli
0757318732 Fixed bug in SessionMange::get_source_id() method 2020-04-24 09:09:40 -07:00
Andrea Bondavalli
9d0e721e17 Added AM824 codec support to documentation 2020-04-24 09:07:26 -07:00
Andrea Bondavalli
48718c8dc2 Renamed patch to add support for AM824 to AES67 ALSA driver 2020-04-24 09:04:32 -07:00
Andrea Bondavalli
5b5029ed2a Merge branch 'codec_am824' 2020-04-24 04:08:55 -07:00
Andrea Bondavalli
4f84e91a6b
Update README.md 2020-04-24 10:22:10 +02:00
Andrea Bondavalli
29dcfba0bd Merge branch 'master' into codec_am824 2020-04-23 22:44:33 +02:00
Andrea Bondavalli
fdccd4f577 Removed unused functions from utils 2020-04-23 22:42:30 +02:00