Changeset 2197

Show
Ignore:
Timestamp:
08/16/12 12:20:17 (8 years ago)
Author:
adi
Message:

Fix fox DnR Axum clock selection

As indicated in the comment, the device needs a special clock setting to
work, otherwise, it will produce noise at 0dBFS on all channels.

Files:

Legend:

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

    r2161 r2197  
    16411641    debugOutput(DEBUG_LEVEL_VERBOSE," UNUSED2 : offset=%04X size=%04d\n", m_unused2_reg_offset, m_unused2_reg_size); 
    16421642 
     1643    /* The DnR Axum only works with the following entry. There is a single 
     1644     * clock in the device that needs to be master. 
     1645     * This code is a hack, we should ideally support easier clock selection, 
     1646     * even in case of broken clock name vectors. 
     1647     */ 
     1648    if (FW_VENDORID_DNR == getConfigRom().getNodeVendorId()) { 
     1649        writeGlobalReg(DICE_REGISTER_GLOBAL_CLOCK_SELECT, (0x01 << 8) | 0x07); 
     1650    } 
     1651 
    16431652    return true; 
    16441653}