Changes from Version 1 of SettingClockSource

Show
Ignore:
Author:
ppalmers (IP: 62.235.158.53)
Timestamp:
11/04/07 08:30:45 (16 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingClockSource

    v0 v1  
     1= Setting the clock source = 
     2 
     3use 
     4{{{ 
     5test-ffado Discover 
     6}}} 
     7 
     8to obtain the clock sources and their id for all connected devices: 
     9{{{ 
     10... 
     114293101857: Debug (devicemanager.cpp)[ 122] show: ===== Device Manager ===== 
     124293101885: Debug (Element.cpp)[  59] show: Element DeviceManager 
     134293101915: Debug (devicemanager.cpp)[ 125] show: 1394 port: 0 
     144293101937: Debug (devicemanager.cpp)[ 133] show: --- Device  0 --- 
     154293101959: Debug (focusrite_saffirepro.cpp)[ 291] showDevice: This is a BeBoB::Focusrite::SaffireProDevice 
     164293102001: Debug (focusrite_generic.cpp)[  44] showDevice: This is a BeBoB::Focusrite::FocusriteDevice 
     174293102025: Debug (bebob_avdevice.cpp)[ 184] showDevice: Device is a BeBoB device 
     184293102052: Debug (ffadodevice.cpp)[ 149] showDevice: Node...........: 1 
     194293102076: Debug (ffadodevice.cpp)[ 150] showDevice: GUID...........: 00130e01000307cd 
     204293102104: Debug (ffadodevice.cpp)[ 155] showDevice: Assigned ID....: dev0 
     214293102132: Debug (avc_avdevice.cpp)[ 397] showDevice:  "Focusrite"                      "Saffire Pro26IO" 
     224293102157: Debug (devicemanager.cpp)[ 136] show: Clock sync sources: 
     234293102262: Debug (devicemanager.cpp)[ 145] show:  Type: Compound Syt Match, Id: 22, Valid: 1, Active: 0, Description: Syt Match 
     244293102288: Debug (devicemanager.cpp)[ 145] show:  Type: Internal          , Id: 21, Valid: 1, Active: 1, Description: Internal (CSP) 
     254293102311: Debug (devicemanager.cpp)[ 145] show:  Type: SPDIF             , Id: 31, Valid: 1, Active: 0, Description: Ext SPDIF Input 
     264293102334: Debug (devicemanager.cpp)[ 145] show:  Type: ADAT              , Id: 32, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 1 
     274293102357: Debug (devicemanager.cpp)[ 145] show:  Type: ADAT              , Id: 33, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 2 
     284293102379: Debug (devicemanager.cpp)[ 145] show:  Type: WordClock         , Id: 34, Valid: 1, Active: 0, Description: Ext WClock Input 
     294293102422: Debug (focusrite_saffirepro.cpp)[ 252] destroyMixer: destroy mixer... 
     30... 
     31}}} 
     32 
     33Get 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 
     35Then use the following command to set the clock source: 
     36{{{ 
     37test-ffado -n NODE_ID SetClockSource CLOCK_ID 
     38}}} 
     39 
     40e.g. to select wordclock in this example: 
     41 
     42{{{ 
     43test-ffado -n 1 SetClockSource 34 
     44}}} 
     45 
     46Then use the Discover command to check whether the selection was successful. 
     47 
     48{{{ 
     49... 
     500237343894: Debug (devicemanager.cpp)[ 122] show: ===== Device Manager ===== 
     510237343922: Debug (Element.cpp)[  59] show: Element DeviceManager 
     520237343951: Debug (devicemanager.cpp)[ 125] show: 1394 port: 0 
     530237343972: Debug (devicemanager.cpp)[ 133] show: --- Device  0 --- 
     540237343994: Debug (focusrite_saffirepro.cpp)[ 291] showDevice: This is a BeBoB::Focusrite::SaffireProDevice 
     550237344017: Debug (focusrite_generic.cpp)[  44] showDevice: This is a BeBoB::Focusrite::FocusriteDevice 
     560237344040: Debug (bebob_avdevice.cpp)[ 184] showDevice: Device is a BeBoB device 
     570237344066: Debug (ffadodevice.cpp)[ 149] showDevice: Node...........: 1 
     580237344090: Debug (ffadodevice.cpp)[ 150] showDevice: GUID...........: 00130e01000307cd 
     590237344117: Debug (ffadodevice.cpp)[ 155] showDevice: Assigned ID....: dev0 
     600237344146: Debug (avc_avdevice.cpp)[ 397] showDevice:  "Focusrite"                      "Saffire Pro26IO" 
     610237344171: Debug (devicemanager.cpp)[ 136] show: Clock sync sources: 
     620237344277: Debug (devicemanager.cpp)[ 145] show:  Type: Compound Syt Match, Id: 22, Valid: 1, Active: 0, Description: Syt Match 
     630237344303: Debug (devicemanager.cpp)[ 145] show:  Type: Internal          , Id: 21, Valid: 1, Active: 0, Description: Internal (CSP) 
     640237344327: Debug (devicemanager.cpp)[ 145] show:  Type: SPDIF             , Id: 31, Valid: 1, Active: 0, Description: Ext SPDIF Input 
     650237344350: Debug (devicemanager.cpp)[ 145] show:  Type: ADAT              , Id: 32, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 1 
     660237344372: Debug (devicemanager.cpp)[ 145] show:  Type: ADAT              , Id: 33, Valid: 1, Active: 0, Description: Ext ADAT/SMUX Input 2 
     670237344394: Debug (devicemanager.cpp)[ 145] show:  Type: WordClock         , Id: 34, Valid: 1, Active: 1, Description: Ext WClock Input 
     680237344436: Debug (focusrite_saffirepro.cpp)[ 252] destroyMixer: destroy mixer... 
     69... 
     70}}} 
     71 
     72Note that now the WordClock line is Active. 
     73 
     74Also 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