Show
Ignore:
Timestamp:
01/10/10 12:59:02 (11 years ago)
Author:
arnonym
Message:

Use the GUID as the id and get rid of setId(). This is part of making the port names unique and persistent per device.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/ffadodevice.cpp

    r1498 r1789  
    4545    , m_pDeviceManager( d ) 
    4646{ 
    47     addOption(Util::OptionContainer::Option("id",std::string("dev?"))); 
     47    addOption(Util::OptionContainer::Option("id",m_pConfigRom->getGuidString())); 
    4848 
    4949    std::ostringstream nodestr; 
     
    164164{ 
    165165    return eSS_Idle; 
    166 } 
    167  
    168 bool 
    169 FFADODevice::setId( unsigned int id) 
    170 { 
    171     Util::MutexLockHelper lock(m_DeviceMutex); 
    172     bool retval; 
    173     // FIXME: decent ID system nescessary 
    174     std::ostringstream idstr; 
    175     idstr << "dev" << id; 
    176     debugOutput( DEBUG_LEVEL_VERBOSE, "Set id to %s...\n", idstr.str().c_str()); 
    177  
    178     retval=setOption("id",idstr.str()); 
    179     return retval; 
    180166} 
    181167