Changeset 1737
- Timestamp:
- 11/30/09 13:43:03 (13 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/dice/focusrite/focusrite_eap.cpp
r1735 r1737 36 36 { 37 37 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); 39 39 m_value = /*127*/-m_tmp; 40 40 } … … 59 59 bool FocusriteEAP::writeApplicationReg(unsigned offset, quadlet_t quadlet) { 60 60 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 } 62 65 debugOutput(DEBUG_LEVEL_VERBOSE, "Will sent command %i.\n", commandToFix(offset)); 63 66 return writeReg(eRT_Application, msgSet, commandToFix(offset)); … … 73 76 { 74 77 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"); 77 80 m_selected = (m_state_tmp&m_activevalue)?true:false; 78 81 } … … 104 107 m_eap->readApplicationReg(m_offset, &tmp); 105 108 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); 107 110 } 108 111