Changeset 1729

Show
Ignore:
Timestamp:
11/23/09 13:50:44 (13 years ago)
Author:
arnonym
Message:

This should enable nickname changes for the saffire pro40. ppalmers can you test this?
On the pro24 the changes work and are written to the application space. Only they don't seem to last over a power-cycle. Don't yet know why...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/dice/focusrite/saffire_pro40.cpp

    r1630 r1729  
    4646} 
    4747 
     48bool SaffirePro40::setNickName(std::string name) { 
     49    return getEAP()->writeRegBlock(Dice::Device::EAP::eRT_Application, 0x44, (quadlet_t*)name.c_str(), name.size()); 
     50} 
     51std::string SaffirePro40::getNickName() { 
     52    char name[16]; 
     53    getEAP()->readRegBlock(Dice::Device::EAP::eRT_Application, 0x44, (quadlet_t*)name, 16); 
     54    return std::string(name); 
     55} 
     56 
    4857} 
    4958} 
     59// vim: et 
  • trunk/libffado/src/dice/focusrite/saffire_pro40.h

    r1630 r1729  
    4040    virtual void showDevice(); 
    4141 
     42    bool canChangeNickname() { return true; } 
     43    bool setNickName(std::string); 
     44    std::string getNickName(); 
     45 
    4246private: 
    4347}; 
     
    4751 
    4852#endif 
     53// vim: et