Changeset 739 for trunk/libffado/src/genericavc
- Timestamp:
- 11/28/07 12:02:08 (15 years ago)
- Files:
-
- trunk/libffado/src/genericavc/avc_avdevice.cpp (modified) (9 diffs)
- trunk/libffado/src/genericavc/avc_avdevice.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/genericavc/avc_avdevice.cpp
r736 r739 49 49 namespace GenericAVC { 50 50 51 IMPL_DEBUG_MODULE( AvDevice, AvDevice, DEBUG_LEVEL_VERBOSE ); 52 53 54 AvDevice::AvDevice( Ieee1394Service& ieee1394Service, 55 std::auto_ptr<ConfigRom>( configRom )) 56 : FFADODevice( ieee1394Service, configRom ) 51 IMPL_DEBUG_MODULE( AvDevice, AvDevice, DEBUG_LEVEL_NORMAL ); 52 53 AvDevice::AvDevice(std::auto_ptr<ConfigRom>( configRom )) 54 : FFADODevice( configRom ) 57 55 { 58 56 debugOutput( DEBUG_LEVEL_VERBOSE, "Created GenericAVC::AvDevice (NodeID %d)\n", … … 61 59 } 62 60 63 AvDevice::~AvDevice()64 {65 66 }67 68 61 bool 69 62 AvDevice::probe( ConfigRom& configRom ) … … 81 74 82 75 FFADODevice * 83 AvDevice::createDevice( Ieee1394Service& ieee1394Service, 84 std::auto_ptr<ConfigRom>( configRom )) 85 { 86 return new AvDevice(ieee1394Service, configRom ); 76 AvDevice::createDevice(std::auto_ptr<ConfigRom>( configRom )) 77 { 78 return new AvDevice(configRom ); 87 79 } 88 80 … … 93 85 // e.g. because a subclass called this function 94 86 if (!GenericAVC::VendorModel::isValid(m_model)) { 95 unsigned int vendorId = m_pConfigRom->getNodeVendorId();96 unsigned int modelId = m_pConfigRom->getModelId();87 unsigned int vendorId = getConfigRom().getNodeVendorId(); 88 unsigned int modelId = getConfigRom().getModelId(); 97 89 98 90 GenericAVC::VendorModel vendorModel( SHAREDIR "/ffado_driver_genericavc.txt" ); … … 128 120 AvDevice::setVerboseLevel(int l) 129 121 { 130 debugOutput( DEBUG_LEVEL_VERBOSE, "Setting verbose level to %d...\n", l ); 131 122 setDebugLevel(l); 132 123 m_pPlugManager->setVerboseLevel(l); 133 134 124 FFADODevice::setVerboseLevel(l); 135 125 AVC::Unit::setVerboseLevel(l); 126 debugOutput( DEBUG_LEVEL_VERBOSE, "Setting verbose level to %d...\n", l ); 136 127 } 137 128 … … 628 619 if (iec61883_get_oPCRX( 629 620 get1394Service().getHandle(), 630 m_pConfigRom->getNodeId() | 0xffc0,621 getConfigRom().getNodeId() | 0xffc0, 631 622 (quadlet_t *)&opcr, 632 623 n)) { … … 639 630 } else { 640 631 iso_channel=get1394Service().allocateIsoChannelCMP( 641 m_pConfigRom->getNodeId() | 0xffc0, n,632 getConfigRom().getNodeId() | 0xffc0, n, 642 633 get1394Service().getLocalNodeId()| 0xffc0, -1); 643 634 } … … 662 653 if (iec61883_get_iPCRX( 663 654 get1394Service().getHandle(), 664 m_pConfigRom->getNodeId() | 0xffc0,655 getConfigRom().getNodeId() | 0xffc0, 665 656 (quadlet_t *)&ipcr, 666 657 n)) { … … 675 666 iso_channel=get1394Service().allocateIsoChannelCMP( 676 667 get1394Service().getLocalNodeId()| 0xffc0, -1, 677 m_pConfigRom->getNodeId() | 0xffc0, n);668 getConfigRom().getNodeId() | 0xffc0, n); 678 669 } 679 670 trunk/libffado/src/genericavc/avc_avdevice.h
r734 r739 48 48 class AvDevice : public FFADODevice, public AVC::Unit { 49 49 public: 50 AvDevice( Ieee1394Service& ieee1394Service, 51 std::auto_ptr<ConfigRom>( configRom )); 52 virtual ~AvDevice(); 50 AvDevice( std::auto_ptr<ConfigRom>( configRom )); 51 virtual ~AvDevice() {}; 53 52 54 53 static bool probe( ConfigRom& configRom ); 55 54 virtual bool discover(); 56 static FFADODevice * createDevice( Ieee1394Service& ieee1394Service, 57 std::auto_ptr<ConfigRom>( configRom )); 55 static FFADODevice * createDevice( std::auto_ptr<ConfigRom>( configRom )); 58 56 59 57 virtual bool serialize( Glib::ustring basePath, Util::IOSerialize& ser ) const;