Changeset 1737

Show
Ignore:
Timestamp:
11/30/09 13:43:03 (14 years ago)
Author:
arnonym
Message:

Be less noisy. And output a wanring if writing to the application space fails.

Files:

Legend:

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

    r1735 r1737  
    3636{ 
    3737    m_eap->readApplicationReg(m_offset, &m_tmp); 
    38     printf("%s: Value: %i\n", name.c_str(), m_tmp); 
     38    //printf("%s: Value: %i\n", name.c_str(), m_tmp); 
    3939    m_value = /*127*/-m_tmp; 
    4040} 
     
    5959bool FocusriteEAP::writeApplicationReg(unsigned offset, quadlet_t quadlet) { 
    6060    bool ret = writeReg(eRT_Application, offset, quadlet); 
    61     if (!ret) return false; 
     61    if (!ret) { 
     62        debugWarning("Couldn't write %i to register %x!\n", quadlet, offset); 
     63        return false; 
     64    } 
    6265    debugOutput(DEBUG_LEVEL_VERBOSE, "Will sent command %i.\n", commandToFix(offset)); 
    6366    return writeReg(eRT_Application, msgSet, commandToFix(offset)); 
     
    7376{ 
    7477    m_eap->readApplicationReg(m_offset, &m_state_tmp); 
    75     printf("%s: %s\n", name.c_str(), (m_state_tmp&m_activevalue)?"true":"false"); 
    76     debugOutput(DEBUG_LEVEL_VERBOSE, "Probably the initialization is the other way round.\n"); 
     78    //printf("%s: %s\n", name.c_str(), (m_state_tmp&m_activevalue)?"true":"false"); 
     79    //debugOutput(DEBUG_LEVEL_VERBOSE, "Probably the initialization is the other way round.\n"); 
    7780    m_selected = (m_state_tmp&m_activevalue)?true:false; 
    7881} 
     
    104107        m_eap->readApplicationReg(m_offset, &tmp); 
    105108        m_value = - ((tmp>>m_bitshift)&0xff); 
    106         printf("%s: %i -> %i\n", name.c_str(), tmp, m_value); 
     109        //printf("%s: %i -> %i\n", name.c_str(), tmp, m_value); 
    107110    } 
    108111