Browse Source

debug driver initialization

pull/450/head
Christoph Kuhr 7 years ago
parent
commit
2b314126d8
2 changed files with 22 additions and 1 deletions
  1. +1
    -1
      linux/avb/JackAVBDriver.cpp
  2. +21
    -0
      linux/avb/avb_1722avtp.c

+ 1
- 1
linux/avb/JackAVBDriver.cpp View File

@@ -294,7 +294,7 @@ extern "C"

try {
Jack::JackDriverClientInterface* driver = new Jack::JackWaitThreadedDriver (
new Jack::JackAVBPDriver("system", "net_pcm", engine, table, sid, dmac, eth_dev,
new Jack::JackAVBPDriver("system", "avb_mc", engine, table, sid, dmac, eth_dev,
sample_rate, period_size, num_periods));

if (driver->Open(period_size, sample_rate, 1, 1, capture_ports, 0,


+ 21
- 0
linux/avb/avb_1722avtp.c View File

@@ -462,6 +462,27 @@ int init_1722_driver( ieee1722_avtp_driver_state *ieee1722mc, const char* name,
fprintf(filepointer, "Success creating thread\n");fflush(filepointer);
}

fprintf(filepointer, "JackAVBPDriver::JackAVBPDriver Ethernet Device %s", name);

fprintf(filepointer, "Stream ID: %02x %02x %02x %02x %02x %02x %02x %02x",
(uint8_t) stream_id[0],
(uint8_t) stream_id[1],
(uint8_t) stream_id[2],
(uint8_t) stream_id[3],
(uint8_t) stream_id[4],
(uint8_t) stream_id[5],
(uint8_t) stream_id[6],
(uint8_t) stream_id[7]);

fprintf(filepointer, "Destination MAC Address: %02x:%02x:%02x:%02x:%02x:%02x",
(uint8_t) destination_mac[0],
(uint8_t) destination_mac[1],
(uint8_t) destination_mac[2],
(uint8_t) destination_mac[3],
(uint8_t) destination_mac[4],
(uint8_t) destination_mac[5]);


if( RETURN_VALUE_FAILURE == create_avb_Mediaclock_Listener(filepointer, &ieee1722mc, name,
stream_id, destination_mac,
&si_other_avb, &avtp_transport_socket_fds)){


Loading…
Cancel
Save