Changeset 475
- Timestamp:
- 05/23/07 14:20:01 (16 years ago)
- Files:
-
- branches/echoaudio/configure.ac (modified) (4 diffs)
- branches/echoaudio/src/devicemanager.cpp (modified) (10 diffs)
- branches/echoaudio/src/devicemanager.h (modified) (1 diff)
- branches/echoaudio/src/genericavc (added)
- branches/echoaudio/src/genericavc/avc_avdevice.cpp (added)
- branches/echoaudio/src/genericavc/avc_avdevice.h (added)
- branches/echoaudio/src/Makefile.am (modified) (2 diffs)
- branches/echoaudio/tests/test-ffado.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/echoaudio/configure.ac
r470 r475 217 217 [build_bebob=true]) 218 218 219 dnl --- Build Generic AV/C code (Apple class driver compatible)? 220 221 AC_ARG_ENABLE(generic-avc, 222 AC_HELP_STRING([--enable-generic-avc], 223 [build Generic AV/C support (default=yes)]), 224 [case "${enableval}" in 225 yes) build_genericavc=true;; 226 no) build_genericavc=false;; 227 *) AC_MSG_ERROR(bad value ${enableval} for --enable-generic-avc) ;; 228 esac], 229 [build_genericavc=true]) 230 219 231 dnl --- Build Motu code? 220 232 … … 313 325 if test "${build_all}" = true; then 314 326 build_bebob=true 327 build_genericavc=true 315 328 build_motu=true 316 329 build_dice=true … … 329 342 fi; 330 343 344 if test "${build_genericavc}" = true; then 345 CFLAGS="$CFLAGS -DENABLE_GENERICAVC" 346 CXXFLAGS="$CXXFLAGS -DENABLE_GENERICAVC" 347 supported_devices="${supported_devices}GenericAVC " 348 build_amdtp=true 349 fi; 350 331 351 if test "${build_motu}" = true; then 332 352 CFLAGS="$CFLAGS -DENABLE_MOTU" … … 366 386 367 387 AM_CONDITIONAL(BUILD_BEBOB,test "${build_bebob}" = true) 388 AM_CONDITIONAL(BUILD_GENERICAVC,test "${build_genericavc}" = true) 368 389 AM_CONDITIONAL(BUILD_MOTU,test "${build_motu}" = true) 369 390 AM_CONDITIONAL(BUILD_DICE,test "${build_dice}" = true) branches/echoaudio/src/devicemanager.cpp
r445 r475 45 45 #endif 46 46 47 #ifdef ENABLE_GENERICAVC 48 #include "genericavc/avc_avdevice.h" 49 #endif 50 47 51 #ifdef ENABLE_BOUNCE 48 52 #include "bounce/bounce_avdevice.h" … … 74 78 , m_1394Service( 0 ) 75 79 , m_oscServer( NULL ) 76 , m_verboseLevel( DEBUG_LEVEL_NORMAL )77 80 { 78 81 addOption(Util::OptionContainer::Option("slaveMode",false)); … … 100 103 DeviceManager::setVerboseLevel(int l) 101 104 { 102 m_verboseLevel=l;105 debugOutput( DEBUG_LEVEL_NORMAL, "Setting verbose level to %d...\n", l ); 103 106 setDebugLevel(l); 104 107 … … 167 170 } 168 171 169 setVerboseLevel( m_verboseLevel);172 setVerboseLevel(getDebugLevel()); 170 173 return true; 171 174 } … … 183 186 } 184 187 185 setVerboseLevel( m_verboseLevel);188 setVerboseLevel(getDebugLevel()); 186 189 187 190 for ( IAvDeviceVectorIterator it = m_avDevices.begin(); … … 231 234 nodeId ); 232 235 233 avDevice->setVerboseLevel( m_verboseLevel);236 avDevice->setVerboseLevel( getDebugLevel() ); 234 237 235 238 if ( !avDevice->discover() ) { … … 254 257 } 255 258 256 if ( m_verboseLevel>= DEBUG_LEVEL_VERBOSE ) {259 if ( getDebugLevel() >= DEBUG_LEVEL_VERBOSE ) { 257 260 avDevice->showDevice(); 258 261 } … … 294 297 nodeId ); 295 298 296 avDevice->setVerboseLevel( m_verboseLevel);299 avDevice->setVerboseLevel( getDebugLevel() ); 297 300 298 301 if ( !avDevice->discover() ) { … … 305 308 debugError( "setting Id failed\n" ); 306 309 } 307 if ( m_verboseLevel>= DEBUG_LEVEL_VERBOSE ) {310 if ( getDebugLevel() >= DEBUG_LEVEL_VERBOSE ) { 308 311 avDevice->showDevice(); 309 312 } … … 325 328 if ( BeBoB::AvDevice::probe( *configRom.get() ) ) { 326 329 return new BeBoB::AvDevice( configRom, *m_1394Service, id ); 330 } 331 #endif 332 333 #ifdef ENABLE_GENERICAVC 334 debugOutput( DEBUG_LEVEL_VERBOSE, "Trying Generic AV/C...\n" ); 335 if ( GenericAVC::AvDevice::probe( *configRom.get() ) ) { 336 return new GenericAVC::AvDevice( configRom, *m_1394Service, id ); 327 337 } 328 338 #endif branches/echoaudio/src/devicemanager.h
r445 r475 89 89 void setVerboseLevel(int l); 90 90 private: 91 int m_verboseLevel;92 91 DECLARE_DEBUG_MODULE; 93 92 }; branches/echoaudio/src/Makefile.am
r456 r475 139 139 maudio/maudio_avdevice.cpp 140 140 141 genericavc_src = \ 142 genericavc/avc_avdevice.cpp \ 143 genericavc/avc_avdevice.h 144 141 145 motu_src = \ 142 146 motu/motu_avdevice.cpp \ … … 216 220 endif 217 221 222 if BUILD_GENERICAVC 223 libffado_la_SOURCES += $(genericavc_src) 224 bin_PROGRAMS += $(genericavc_bin) 225 noinst_PROGRAMS += $(genericavc_noinst) 226 nobase_dist_pkgdata_DATA += $(genericavc_pkgdata) 227 endif 228 218 229 if BUILD_BOUNCE 219 230 libffado_la_SOURCES += $(bounce_src) branches/echoaudio/tests/test-ffado.cpp
r445 r475 224 224 return -1; 225 225 } 226 if ( arguments.verbose ) { 227 m_deviceManager->setVerboseLevel(arguments.verbose); 228 } 226 229 if ( !m_deviceManager->initialize( arguments.port ) ) { 227 230 fprintf( stderr, "Could not initialize device manager\n" ); … … 251 254 fprintf( stderr, "Could not allocate device manager\n" ); 252 255 return -1; 256 } 257 if ( arguments.verbose ) { 258 m_deviceManager->setVerboseLevel(arguments.verbose); 253 259 } 254 260 if ( !m_deviceManager->initialize( arguments.port ) ) {