| 1 | = Setting the clock source = |
---|
| 2 | |
---|
| 3 | use |
---|
| 4 | {{{ |
---|
| 5 | test-ffado Discover |
---|
| 6 | }}} |
---|
| 7 | |
---|
| 8 | to obtain the clock sources and their id for all connected devices: |
---|
| 9 | {{{ |
---|
| 10 | ... |
---|
| 11 | 4293101857: Debug (devicemanager.cpp)[ 122] show: ===== Device Manager ===== |
---|
| 12 | 4293101885: Debug (Element.cpp)[ 59] show: Element DeviceManager |
---|
| 13 | 4293101915: Debug (devicemanager.cpp)[ 125] show: 1394 port: 0 |
---|
| 14 | 4293101937: Debug (devicemanager.cpp)[ 133] show: --- Device 0 --- |
---|
| 15 | 4293101959: Debug (focusrite_saffirepro.cpp)[ 291] showDevice: This is a BeBoB::Focusrite::SaffireProDevice |
---|
| 16 | 4293102001: Debug (focusrite_generic.cpp)[ 44] showDevice: This is a BeBoB::Focusrite::FocusriteDevice |
---|
| 17 | 4293102025: Debug (bebob_avdevice.cpp)[ 184] showDevice: Device is a BeBoB device |
---|
| 18 | 4293102052: Debug (ffadodevice.cpp)[ 149] showDevice: Node...........: 1 |
---|
| 19 | 4293102076: Debug (ffadodevice.cpp)[ 150] showDevice: GUID...........: 00130e01000307cd |
---|
| 20 | 4293102104: Debug (ffadodevice.cpp)[ 155] showDevice: Assigned ID....: dev0 |
---|
| 21 | 4293102132: Debug (avc_avdevice.cpp)[ 397] showDevice: "Focusrite" "Saffire Pro26IO" |
---|
| 22 | 4293102157: Debug (devicemanager.cpp)[ 136] show: Clock sync sources: |
---|
| 23 | 4293102262: Debug (devicemanager.cpp)[ 145] show: Type: Compound Syt Match, Id: 22, Valid: 1, Active: 0, Description: Syt Match |
---|
| 24 | 4293102288: Debug (devicemanager.cpp)[ 145] show: Type: Internal , Id: 21, Valid: 1, Active: 1, Description: Internal (CSP) |
---|
| 25 | 4293102311: Debug (devicemanager.cpp)[ 145] show: Type: SPDIF , Id: 31, Valid: 1, Active: 0, Description: Ext SPDIF Input |
---|
| 26 | 4293102334: Debug (devicemanager.cpp)[ 145] show: Type: ADAT , Id: 32, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 1 |
---|
| 27 | 4293102357: Debug (devicemanager.cpp)[ 145] show: Type: ADAT , Id: 33, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 2 |
---|
| 28 | 4293102379: Debug (devicemanager.cpp)[ 145] show: Type: WordClock , Id: 34, Valid: 1, Active: 0, Description: Ext WClock Input |
---|
| 29 | 4293102422: Debug (focusrite_saffirepro.cpp)[ 252] destroyMixer: destroy mixer... |
---|
| 30 | ... |
---|
| 31 | }}} |
---|
| 32 | |
---|
| 33 | Get the node id (1 in this case) from the summary. Also get the clock id for the source you want to use (e.g. 34 for WordClock). |
---|
| 34 | |
---|
| 35 | Then use the following command to set the clock source: |
---|
| 36 | {{{ |
---|
| 37 | test-ffado -n NODE_ID SetClockSource CLOCK_ID |
---|
| 38 | }}} |
---|
| 39 | |
---|
| 40 | e.g. to select wordclock in this example: |
---|
| 41 | |
---|
| 42 | {{{ |
---|
| 43 | test-ffado -n 1 SetClockSource 34 |
---|
| 44 | }}} |
---|
| 45 | |
---|
| 46 | Then use the Discover command to check whether the selection was successful. |
---|
| 47 | |
---|
| 48 | {{{ |
---|
| 49 | ... |
---|
| 50 | 0237343894: Debug (devicemanager.cpp)[ 122] show: ===== Device Manager ===== |
---|
| 51 | 0237343922: Debug (Element.cpp)[ 59] show: Element DeviceManager |
---|
| 52 | 0237343951: Debug (devicemanager.cpp)[ 125] show: 1394 port: 0 |
---|
| 53 | 0237343972: Debug (devicemanager.cpp)[ 133] show: --- Device 0 --- |
---|
| 54 | 0237343994: Debug (focusrite_saffirepro.cpp)[ 291] showDevice: This is a BeBoB::Focusrite::SaffireProDevice |
---|
| 55 | 0237344017: Debug (focusrite_generic.cpp)[ 44] showDevice: This is a BeBoB::Focusrite::FocusriteDevice |
---|
| 56 | 0237344040: Debug (bebob_avdevice.cpp)[ 184] showDevice: Device is a BeBoB device |
---|
| 57 | 0237344066: Debug (ffadodevice.cpp)[ 149] showDevice: Node...........: 1 |
---|
| 58 | 0237344090: Debug (ffadodevice.cpp)[ 150] showDevice: GUID...........: 00130e01000307cd |
---|
| 59 | 0237344117: Debug (ffadodevice.cpp)[ 155] showDevice: Assigned ID....: dev0 |
---|
| 60 | 0237344146: Debug (avc_avdevice.cpp)[ 397] showDevice: "Focusrite" "Saffire Pro26IO" |
---|
| 61 | 0237344171: Debug (devicemanager.cpp)[ 136] show: Clock sync sources: |
---|
| 62 | 0237344277: Debug (devicemanager.cpp)[ 145] show: Type: Compound Syt Match, Id: 22, Valid: 1, Active: 0, Description: Syt Match |
---|
| 63 | 0237344303: Debug (devicemanager.cpp)[ 145] show: Type: Internal , Id: 21, Valid: 1, Active: 0, Description: Internal (CSP) |
---|
| 64 | 0237344327: Debug (devicemanager.cpp)[ 145] show: Type: SPDIF , Id: 31, Valid: 1, Active: 0, Description: Ext SPDIF Input |
---|
| 65 | 0237344350: Debug (devicemanager.cpp)[ 145] show: Type: ADAT , Id: 32, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 1 |
---|
| 66 | 0237344372: Debug (devicemanager.cpp)[ 145] show: Type: ADAT , Id: 33, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 2 |
---|
| 67 | 0237344394: Debug (devicemanager.cpp)[ 145] show: Type: WordClock , Id: 34, Valid: 1, Active: 1, Description: Ext WClock Input |
---|
| 68 | 0237344436: Debug (focusrite_saffirepro.cpp)[ 252] destroyMixer: destroy mixer... |
---|
| 69 | ... |
---|
| 70 | }}} |
---|
| 71 | |
---|
| 72 | Note that now the WordClock line is Active. |
---|
| 73 | |
---|
| 74 | Also note that the device can reject this command if the clock source is not valid/suitable, e.g. because there is no signal present. |
---|
| 75 | |