Changeset 1047
- Timestamp:
- 04/26/08 10:30:41 (15 years ago)
- Files:
-
- trunk/libffado/src/bebob/bebob_mixer.cpp (modified) (1 diff)
- trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp (modified) (2 diffs)
- trunk/libffado/src/devicemanager.cpp (modified) (2 diffs)
- trunk/libffado/src/dice/dice_avdevice.cpp (modified) (3 diffs)
- trunk/libffado/src/ffado.cpp (modified) (2 diffs)
- trunk/libffado/src/libavc/general/avc_plug.cpp (modified) (18 diffs)
- trunk/libffado/src/libavc/general/avc_subunit.cpp (modified) (2 diffs)
- trunk/libffado/src/libavc/general/avc_unit.cpp (modified) (5 diffs)
- trunk/libffado/src/libieee1394/test-cyclecalc.cpp (modified) (2 diffs)
- trunk/libffado/support/dbus/controlclient.h (modified) (1 diff)
- trunk/libffado/support/dbus/test-dbus.cpp (modified) (1 diff)
- trunk/libffado/tests/systemtests/test-sysload.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/bebob/bebob_mixer.cpp
r975 r1047 324 324 EnhancedMixerFBFeature::setValue(double v) 325 325 { 326 int volume=(int)v;327 326 debugOutput(DEBUG_LEVEL_NORMAL,"Set feature volume %d to %d...\n", 328 m_Slave.getId(), volume);327 m_Slave.getId(), (int)v); 329 328 330 329 return true; trunk/libffado/src/bebob/focusrite/focusrite_saffirepro.cpp
r960 r1047 652 652 unsigned int id; 653 653 switch(c) { 654 default: 654 655 case eDC_ADAT1: id=FR_SAFFIREPRO_CMD_ID_ENABLE_ADAT1_INPUT; break; 655 656 case eDC_ADAT2: id=FR_SAFFIREPRO_CMD_ID_ENABLE_ADAT2_INPUT; break; … … 671 672 unsigned int id; 672 673 switch(c) { 674 default: 673 675 case eDC_ADAT1: id=FR_SAFFIREPRO_CMD_ID_ENABLE_ADAT1_INPUT; break; 674 676 case eDC_ADAT2: id=FR_SAFFIREPRO_CMD_ID_ENABLE_ADAT2_INPUT; break; trunk/libffado/src/devicemanager.cpp
r967 r1047 927 927 bool slaveMode=false; 928 928 if(!getOption("slaveMode", slaveMode)) { 929 debugWarning("Could not retrieve slaveMode parameter, defauling to false\n"); 930 } 931 929 debugOutput(DEBUG_LEVEL_NORMAL, 930 "Could not retrieve slaveMode parameter, defauling to false\n"); 931 } 932 return device->getStreamProcessorByIndex(0); 933 /* 932 934 #warning TEST CODE FOR BOUNCE DEVICE !! 933 935 // this makes the bounce slave use the xmit SP as sync source … … 936 938 } else { 937 939 return device->getStreamProcessorByIndex(0); 938 } 940 }*/ 939 941 } 940 942 trunk/libffado/src/dice/dice_avdevice.cpp
r1043 r1047 309 309 quadlet_t extended_status; 310 310 readGlobalReg(DICE_REGISTER_GLOBAL_EXTENDED_STATUS, &extended_status); 311 #ifdef DEBUG 311 312 uint16_t clock_status = (extended_status) & 0xFFFF; 312 313 uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; 313 314 debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08X, status=0x%04X, slip=0x%04X\n", 314 315 extended_status, clock_status, clock_slipping); 316 #endif 315 317 316 318 diceNameVector names = getClockSourceNameString(); … … 471 473 quadlet_t extended_status; 472 474 readGlobalReg(DICE_REGISTER_GLOBAL_EXTENDED_STATUS, &extended_status); 475 #ifdef DEBUG 473 476 uint16_t clock_status = (extended_status) & 0xFFFF; 474 477 uint16_t clock_slipping = (extended_status >> 16) & 0xFFFF; 475 478 debugOutput(DEBUG_LEVEL_VERBOSE," Clock status: 0x%08X, status=0x%04X, slip=0x%04X\n", 476 479 extended_status, clock_status, clock_slipping); 480 #endif 477 481 478 482 diceNameVector names = getClockSourceNameString(); … … 516 520 debugOutput(DEBUG_LEVEL_VERBOSE," Global param space:\n"); 517 521 518 readGlobalRegBlock(DICE_REGISTER_GLOBAL_OWNER, (fb_quadlet_t *)&tmp_octlet,sizeof(fb_octlet_t));522 readGlobalRegBlock(DICE_REGISTER_GLOBAL_OWNER, reinterpret_cast<fb_quadlet_t *>(&tmp_octlet), sizeof(fb_octlet_t)); 519 523 debugOutput(DEBUG_LEVEL_VERBOSE," Owner : 0x%016X\n",tmp_octlet); 520 524 trunk/libffado/src/ffado.cpp
r1046 r1047 76 76 } 77 77 78 #warningthis should be cleaned up78 // FIXME: this should be cleaned up 79 79 #include "libavc/general/avc_generic.h" 80 80 void ffado_sleep_after_avc_command( int time ) … … 379 379 return ffado_audio_datatype_error; 380 380 } 381 #warning FIXME382 381 } 383 382 trunk/libffado/src/libavc/general/avc_plug.cpp
r1013 r1047 138 138 139 139 if ( !initFromDescriptor() ) { 140 debugError( "discover: Could not init plug from descriptor (%d,%d,%d,%d,%d)\n", 140 debugOutput(DEBUG_LEVEL_NORMAL, 141 "discover: Could not init plug from descriptor (%d,%d,%d,%d,%d)\n", 141 142 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); 142 143 // return false; … … 144 145 145 146 if ( !discoverPlugType() ) { 146 debugError( "discover: Could not discover plug type (%d,%d,%d,%d,%d)\n", 147 debugOutput(DEBUG_LEVEL_NORMAL, 148 "discover: Could not discover plug type (%d,%d,%d,%d,%d)\n", 147 149 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); 148 150 return false; … … 150 152 151 153 if ( !discoverName() ) { 152 debugError( "Could not discover name (%d,%d,%d,%d,%d)\n", 154 debugOutput(DEBUG_LEVEL_NORMAL, 155 "Could not discover name (%d,%d,%d,%d,%d)\n", 153 156 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); 154 157 return false; … … 163 166 164 167 if ( !discoverChannelPosition() ) { 165 debugError( "Could not discover channel positions " 168 debugOutput(DEBUG_LEVEL_NORMAL, 169 "Could not discover channel positions " 166 170 "(%d,%d,%d,%d,%d)\n", 167 171 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); … … 170 174 171 175 if ( !discoverChannelName() ) { 172 debugError( "Could not discover channel name " 176 debugOutput(DEBUG_LEVEL_NORMAL, 177 "Could not discover channel name " 173 178 "(%d,%d,%d,%d,%d)\n", 174 179 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); … … 177 182 178 183 if ( !discoverClusterInfo() ) { 179 debugError( "Could not discover channel name " 184 debugOutput(DEBUG_LEVEL_NORMAL, 185 "Could not discover cluster info " 180 186 "(%d,%d,%d,%d,%d)\n", 181 187 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); … … 184 190 185 191 if ( !discoverStreamFormat() ) { 186 debugError( "Could not discover stream format " 192 debugOutput(DEBUG_LEVEL_NORMAL, 193 "Could not discover stream format " 187 194 "(%d,%d,%d,%d,%d)\n", 188 195 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); … … 191 198 192 199 if ( !discoverSupportedStreamFormats() ) { 193 debugError( "Could not discover supported stream formats " 200 debugOutput(DEBUG_LEVEL_NORMAL, 201 "Could not discover supported stream formats " 194 202 "(%d,%d,%d,%d,%d)\n", 195 203 m_unit->getConfigRom().getNodeId(), getSubunitType(), getSubunitId(), m_direction, m_id ); … … 288 296 289 297 if ( !extStreamFormatCmd.getFormatInformation() ) { 290 debug Warning("No stream format information for plug found -> skip\n" );298 debugOutput(DEBUG_LEVEL_NORMAL, "No stream format information for plug found -> skip\n" ); 291 299 return true; 292 300 } … … 295 303 != FormatInformation::eFHR_AudioMusic ) 296 304 { 297 debug Warning("Format hierarchy root is not Audio&Music -> skip\n" );305 debugOutput(DEBUG_LEVEL_NORMAL, "Format hierarchy root is not Audio&Music -> skip\n" ); 298 306 return true; 299 307 } … … 323 331 324 332 if ( !clusterInfo ) { 325 debugError( "No matching cluster " 333 debugOutput(DEBUG_LEVEL_NORMAL, 334 "No matching cluster " 326 335 "info found for index %d\n", i ); 327 336 return false; … … 345 354 if ( nrOfChannels != streamFormatInfo->m_numberOfChannels ) 346 355 { 347 debugWarning( "Number of channels " 356 debugOutput(DEBUG_LEVEL_NORMAL, 357 "Number of channels " 348 358 "mismatch: '%s' plug discovering reported " 349 359 "%d channels for cluster '%s', while stream " … … 564 574 (getPlugAddressType() == eAPA_ExternalPlug)) { 565 575 if (getPlugDirection() != eAPD_Output) { 566 debug Warning("Signal Source command not valid for non-output unit plugs...\n");576 debugOutput(DEBUG_LEVEL_NORMAL, "Signal Source command not valid for non-output unit plugs...\n"); 567 577 return -1; 568 578 } … … 571 581 if(getPlugAddressType() == eAPA_SubunitPlug) { 572 582 if (getPlugDirection() != eAPD_Input) { 573 debug Warning("Signal Source command not valid for non-input subunit plugs...\n");583 debugOutput(DEBUG_LEVEL_NORMAL, "Signal Source command not valid for non-input subunit plugs...\n"); 574 584 return -1; 575 585 } … … 662 672 if (getDirection() == eAPD_Output) { 663 673 if (getInputConnections().size()==0) { 664 debug Warning("No input connections to propagate from, skipping.\n");674 debugOutput(DEBUG_LEVEL_NORMAL, "No input connections to propagate from, skipping.\n"); 665 675 return true; 666 676 } 667 677 if (getInputConnections().size()>1) { 668 debug Warning("Too many input connections to propagate from, using first one.\n");678 debugOutput(DEBUG_LEVEL_NORMAL, "Too many input connections to propagate from, using first one.\n"); 669 679 } 670 680 … … 674 684 } else if (getDirection() == eAPD_Input) { 675 685 if (getOutputConnections().size()==0) { 676 debug Warning("No output connections to propagate from, skipping.\n");686 debugOutput(DEBUG_LEVEL_NORMAL, "No output connections to propagate from, skipping.\n"); 677 687 return true; 678 688 } 679 689 if (getOutputConnections().size()>1) { 680 debug Warning("Too many output connections to propagate from, using first one.\n");690 debugOutput(DEBUG_LEVEL_NORMAL, "Too many output connections to propagate from, using first one.\n"); 681 691 } 682 692 … … 685 695 686 696 } else { 687 debug Warning("plug with undefined direction\n");697 debugError("plug with undefined direction\n"); 688 698 return false; 689 699 } … … 1632 1642 PlugManager& plugManager ) 1633 1643 { 1634 #warning FIXME: The derived class should be creating these1635 1644 // FIXME: The derived class should be creating these, such that discover() can become pure virtual 1636 1637 1645 if ( !deser.isExisting( basePath + "m_subunitType" ) ) { 1638 1646 return 0; trunk/libffado/src/libavc/general/avc_subunit.cpp
r864 r1047 226 226 Subunit::initPlugFromDescriptor( Plug& plug ) 227 227 { 228 debug Error("plug loading from descriptor not implemented\n");228 debugOutput(DEBUG_LEVEL_NORMAL, "plug loading from descriptor not implemented\n"); 229 229 return false; 230 230 } … … 260 260 Subunit* pSubunit = 0; 261 261 262 #warning FIXME: The derived class should be creating these263 262 // FIXME: The derived class should be creating these, such that discover() can become pure virtual 264 263 switch( sbType ) { trunk/libffado/src/libavc/general/avc_unit.cpp
r1042 r1047 632 632 Plug::eAPT_Sync ); 633 633 if ( !syncPCRInputPlugs.size() ) { 634 debug Warning("No PCR sync input plug found\n" );634 debugOutput(DEBUG_LEVEL_NORMAL, "No PCR sync input plug found\n" ); 635 635 } 636 636 … … 639 639 Plug::eAPT_Sync ); 640 640 if ( !syncPCROutputPlugs.size() ) { 641 debug Warning("No PCR sync output plug found\n" );641 debugOutput(DEBUG_LEVEL_NORMAL, "No PCR sync output plug found\n" ); 642 642 } 643 643 … … 646 646 Plug::eAPT_IsoStream ); 647 647 if ( !isoPCRInputPlugs.size() ) { 648 debug Warning("No PCR iso input plug found\n" );648 debugOutput(DEBUG_LEVEL_NORMAL, "No PCR iso input plug found\n" ); 649 649 650 650 } … … 654 654 Plug::eAPT_IsoStream ); 655 655 if ( !isoPCROutputPlugs.size() ) { 656 debug Warning("No PCR iso output plug found\n" );656 debugOutput(DEBUG_LEVEL_NORMAL, "No PCR iso output plug found\n" ); 657 657 658 658 } … … 825 825 { 826 826 m_pPlugManager->showPlugs(); 827 SubunitMusic* s=getMusicSubunit(0);828 if(s) s->showMusicPlugs();827 //SubunitMusic* s=getMusicSubunit(0); 828 //if(s) s->showMusicPlugs(); 829 829 } 830 830 trunk/libffado/src/libieee1394/test-cyclecalc.cpp
r864 r1047 39 39 */ 40 40 41 #ifdef DEBUG 41 42 uint32_t now_ctr = 0x140001DA; 42 43 uint64_t now = CYCLE_TIMER_TO_TICKS(0x140001DA); 43 44 unsigned int cycle = 7968; 44 45 uint16_t syt = 0x583B; 46 #endif 45 47 46 48 debugOutput(DEBUG_LEVEL_VERBOSE,"NOW_CTR : %08X (%03us %04uc %04ut)\n", … … 62 64 debugOutput(DEBUG_LEVEL_VERBOSE,"CYCLE : %uc\n", 63 65 cycle); 64 66 #ifdef DEBUG 65 67 uint64_t calc_ts = sytRecvToFullTicks(syt, cycle, now_ctr); 68 #endif 66 69 67 70 debugOutput(DEBUG_LEVEL_VERBOSE,"CALC_TS : %011llu (%03us %04uc %04ut)\n", trunk/libffado/support/dbus/controlclient.h
r864 r1047 31 31 #include "controlclient-glue.h" 32 32 33 static const char* SERVER_NAME = "org.ffado.Control";34 static const char* SERVER_PATH = "/org/ffado/Control/Test/Fader";35 36 33 namespace DBusControl { 37 34 trunk/libffado/support/dbus/test-dbus.cpp
r864 r1047 29 29 #include "controlclient.h" 30 30 #include <dbus-c++/dbus.h> 31 32 static const char* SERVER_NAME = "org.ffado.Control"; 33 static const char* SERVER_PATH = "/org/ffado/Control/Test/Fader"; 31 34 32 35 using namespace std; trunk/libffado/tests/systemtests/test-sysload.cpp
r927 r1047 173 173 uint64_t run_until = sleep_time + arguments.period * arguments.cpu_pct / 100; 174 174 175 uint64_t tic = rt_gettime_usecs();175 // uint64_t tic = rt_gettime_usecs(); 176 176 while(rt_gettime_usecs() < run_until) load_function(); 177 177 uint64_t toc = rt_gettime_usecs();