Changeset 1270

Show
Ignore:
Timestamp:
07/06/08 05:09:24 (13 years ago)
Author:
ppalmers
Message:

add focusrite control debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/bebob/focusrite/focusrite_generic.cpp

    r1219 r1270  
    5757FocusriteDevice::setSpecificValue(uint32_t id, uint32_t v) 
    5858{ 
    59     bool use_avc=false; 
     59    debugOutput(DEBUG_LEVEL_VERBOSE, "Writing parameter address space id 0x%08lX (%u), data: 0x%08lX\n", 
     60        id, id, v); 
     61    bool use_avc = false; 
    6062    if(!getOption("useAvcForParameters", use_avc)) { 
    6163        debugWarning("Could not retrieve useAvcForParameters parameter, defauling to false\n"); 
     
    7173FocusriteDevice::getSpecificValue(uint32_t id, uint32_t *v) 
    7274{ 
    73     bool use_avc=false; 
     75    bool retval; 
     76    bool use_avc = false; 
    7477    if(!getOption("useAvcForParameters", use_avc)) { 
    7578        debugWarning("Could not retrieve useAvcForParameters parameter, defauling to false\n"); 
    7679    } 
    7780    if (use_avc) { 
    78         return getSpecificValueAvc(id, v); 
    79     } else { 
    80         return getSpecificValueARM(id, v); 
    81     } 
     81        retval = getSpecificValueAvc(id, v); 
     82    } else { 
     83        retval = getSpecificValueARM(id, v); 
     84    } 
     85    debugOutput(DEBUG_LEVEL_VERBOSE,"Read parameter address space id 0x%08lX (%u): %08lX\n", id, id, *v); 
     86    return retval; 
    8287} 
    8388