Changeset 1173
- Timestamp:
- 05/15/08 10:37:07 (13 years ago)
- Files:
-
- trunk/libffado/src/bebob/bebob_avdevice.cpp (modified) (1 diff)
- trunk/libffado/src/bebob/terratec/terratec_device.cpp (modified) (3 diffs)
- trunk/libffado/src/libcontrol/ClockSelect.cpp (modified) (4 diffs)
- trunk/libffado/support/dbus/control-interface.xml (modified) (1 diff)
- trunk/libffado/support/dbus/controlserver.cpp (modified) (2 diffs)
- trunk/libffado/support/dbus/controlserver.h (modified) (2 diffs)
- trunk/libffado/support/mixer/ffadomixer.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/bebob/bebob_avdevice.cpp
r1156 r1173 228 228 fbCmd.setSubunitId( 0x00 ); 229 229 fbCmd.setCommandType( AVCCommand::eCT_Status ); 230 fbCmd.m_pFBSelector->m_inputFbPlugNumber =0;230 fbCmd.m_pFBSelector->m_inputFbPlugNumber = 0xFF; 231 231 fbCmd.setVerboseLevel( getDebugLevel() ); 232 232 trunk/libffado/src/bebob/terratec/terratec_device.cpp
r1156 r1173 76 76 int fb_syncsource_value = getSelectorFBValue(9); 77 77 78 debugOutput(DEBUG_LEVEL_VERBOSE, 79 "Selectors: 0x%02X 0x%02X\n", 80 fb_extsync_value, fb_syncsource_value); 81 82 78 83 if(fb_syncsource_value == 0) { 79 84 return m_internal_clocksource; … … 95 100 bool retval = true; 96 101 retval &= setSelectorFBValue(8, 0); 97 retval &= setSelectorFBValue(9, 0);102 retval &= setSelectorFBValue(9, 1); 98 103 return retval; 99 104 } … … 101 106 bool retval = true; 102 107 retval &= setSelectorFBValue(8, 1); 103 retval &= setSelectorFBValue(9, 0);108 retval &= setSelectorFBValue(9, 1); 104 109 return retval; 105 110 } trunk/libffado/src/libcontrol/ClockSelect.cpp
r1158 r1173 40 40 ClockSelect::select(int idx) 41 41 { 42 m_Device.setVerboseLevel(DEBUG_LEVEL_VERY_VERBOSE); 43 debugOutput(DEBUG_LEVEL_VERBOSE, "Selecting clock idx: %d\n", idx); 42 44 FFADODevice::ClockSourceVector v = m_Device.getSupportedClockSources(); 43 45 if(idx >= (int)v.size()) { … … 49 51 return false; 50 52 } 53 debugOutput(DEBUG_LEVEL_VERBOSE, " clock id: %d\n", v.at(idx).id); 51 54 return true; 52 55 } … … 55 58 ClockSelect::selected() 56 59 { 60 m_Device.setVerboseLevel(DEBUG_LEVEL_VERY_VERBOSE); 61 debugOutput(DEBUG_LEVEL_VERBOSE, "Finding active clock\n"); 57 62 FFADODevice::ClockSourceVector v = m_Device.getSupportedClockSources(); 58 63 FFADODevice::ClockSource active = m_Device.getActiveClockSource(); … … 60 65 for (i=0; i < (int)v.size(); i++) { 61 66 FFADODevice::ClockSource c = v.at(i); 62 if(c == active) { 67 if(c.id == active.id) { 68 debugOutput(DEBUG_LEVEL_VERBOSE, " Active clock at %d, id %d\n", i, c.id); 63 69 return i; 64 70 } trunk/libffado/support/dbus/control-interface.xml
r1163 r1173 15 15 <arg type="s" name="description" direction="out"/> 16 16 </method> 17 <method name="getVerboseLevel"> 18 <arg type="i" name="level" direction="out"/> 19 </method> 20 <method name="setVerboseLevel"> 21 <arg type="i" name="level" direction="in"/> 22 </method> 17 23 </interface> 18 24 trunk/libffado/support/dbus/controlserver.cpp
r1163 r1173 52 52 } 53 53 54 void Element::setVerboseLevel( inti)54 void Element::setVerboseLevel( const DBus::Int32 &i) 55 55 { 56 56 setDebugLevel(i); 57 m_Slave.setVerboseLevel(i); 57 58 if(m_UpdateLock) m_UpdateLock->setVerboseLevel(i); 59 } 60 61 DBus::Int32 Element::getVerboseLevel() 62 { 63 return getDebugLevel(); 58 64 } 59 65 … … 158 164 159 165 void 160 Container::setVerboseLevel(int i) 161 { 166 Container::setVerboseLevel( const DBus::Int32 & i) 167 { 168 Element::setVerboseLevel(i); 162 169 for ( ElementVectorIterator it = m_Children.begin(); 163 170 it != m_Children.end(); trunk/libffado/support/dbus/controlserver.h
r1163 r1173 86 86 DBus::String getDescription( ); 87 87 88 void setVerboseLevel(int i); 88 void setVerboseLevel( const DBus::Int32 &); 89 DBus::Int32 getVerboseLevel(); 89 90 90 91 protected: … … 118 119 119 120 void updated(int new_nb_elements); 120 void setVerboseLevel( int i);121 void setVerboseLevel( const DBus::Int32 &); 121 122 private: 122 123 Element *createHandler(Element *, Control::Element& e); trunk/libffado/support/mixer/ffadomixer.in
r1166 r1173 290 290 if nbDevices == 0: 291 291 print "No supported device found..." 292 msg.information( msg, "No mixer found", " Your device doesn't seem to have a supported mixer." )292 msg.information( msg, "No mixer found", "No devices with mixer support discovered." ) 293 293 sys.exit( -1 ) 294 294