Changeset 560 for trunk/libffado/src/bebob/bebob_avdevice.cpp
- Timestamp:
- 08/24/07 08:09:49 (17 years ago)
- Files:
-
- trunk/libffado/src/bebob/bebob_avdevice.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/bebob/bebob_avdevice.cpp
r557 r560 99 99 } 100 100 101 void 102 AvDevice::showDevice() 103 { 104 debugOutput(DEBUG_LEVEL_NORMAL, "Device is a BeBoB device\n"); 105 GenericAVC::AvDevice::showDevice(); 106 flushDebugOutput(); 107 } 108 101 109 AVC::Subunit* 102 110 AvDevice::createSubunit(AVC::Unit& unit, 103 AVC::ESubunitType type, 104 AVC::subunit_t id ) 105 { 111 AVC::ESubunitType type, 112 AVC::subunit_t id ) 113 { 114 AVC::Subunit* s=NULL; 106 115 switch (type) { 107 case AVC::eST_Audio: 108 return new BeBoB::SubunitAudio(unit, id ); 109 case AVC::eST_Music: 110 return new BeBoB::SubunitMusic(unit, id ); 116 case eST_Audio: 117 s=new BeBoB::SubunitAudio(unit, id ); 118 break; 119 case eST_Music: 120 s=new BeBoB::SubunitMusic(unit, id ); 121 break; 111 122 default: 112 return NULL; 113 } 114 } 123 s=NULL; 124 break; 125 } 126 if(s) s->setVerboseLevel(getDebugLevel()); 127 return s; 128 } 129 115 130 116 131 AVC::Plug * 117 132 AvDevice::createPlug( AVC::Unit* unit, 118 AVC::Subunit* subunit, 119 AVC::function_block_type_t functionBlockType, 120 AVC::function_block_type_t functionBlockId, 121 AVC::Plug::EPlugAddressType plugAddressType, 122 AVC::Plug::EPlugDirection plugDirection, 123 AVC::plug_id_t plugId ) 124 { 125 126 return new BeBoB::Plug( unit, 127 subunit, 128 functionBlockType, 129 functionBlockId, 130 plugAddressType, 131 plugDirection, 132 plugId ); 133 AVC::Subunit* subunit, 134 AVC::function_block_type_t functionBlockType, 135 AVC::function_block_type_t functionBlockId, 136 AVC::Plug::EPlugAddressType plugAddressType, 137 AVC::Plug::EPlugDirection plugDirection, 138 AVC::plug_id_t plugId ) 139 { 140 141 Plug *p= new BeBoB::Plug( unit, 142 subunit, 143 functionBlockType, 144 functionBlockId, 145 plugAddressType, 146 plugDirection, 147 plugId ); 148 if (p) p->setVerboseLevel(getDebugLevel()); 149 return p; 133 150 } 134 151