Changeset 1800

Show
Ignore:
Timestamp:
02/16/10 11:53:32 (6 months ago)
Author:
arnonym
Message:

Don't reset the volume of the neighbors output when changing one output. This only affects the monitoring section of the saffire pro24 and pro40...

Files:

Legend:

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

    r1766 r1800  
    107107        m_eap->readApplicationReg(m_offset, &tmp); 
    108108        m_value = - ((tmp>>m_bitshift)&0xff); 
    109         //printf("%s: %i -> %i\n", name.c_str(), tmp, m_value); 
    110109    } 
    111110 
     
    121120            return true; 
    122121        m_value = n; 
    123         return m_eap->writeApplicationReg(m_offset, (-n)<<m_bitshift); 
     122        quadlet_t tmp; 
     123        m_eap->readApplicationReg(m_offset, &tmp); 
     124        tmp &= ~(0xff<<m_bitshift); 
     125        return m_eap->writeApplicationReg(m_offset, ((-n)<<m_bitshift)|tmp); 
    124126    } 
    125127private: