Changeset 2497

Show
Ignore:
Timestamp:
03/29/14 05:22:40 (10 years ago)
Author:
jwoithe
Message:

motu: The G1 configuration register only needs to be read when a G1 interface (aka 828mk1) is in use. Although it's harmless for non-828mk1 interfaces, move the read into the 828mk1-specific code path to keep things neat.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/motu/motu_avdevice.cpp

    r2494 r2497  
    17831783 
    17841784quadlet_t isoctrl = ReadRegister(MOTU_REG_ISOCTRL); 
    1785 quadlet_t config2_reg = ReadRegister(MOTU_G1_REG_CONFIG_2); 
    17861785 
    17871786    if (m_motu_model == MOTU_MODEL_828MkI) { 
     
    17921791        // request for index 1.  Also note that on the G1 devices, 
    17931792        // MOTU_REG_ISOCTRL and MOTU_G1_REG_CONFIG are one and the same. 
     1793 
     1794        quadlet_t config2_reg = ReadRegister(MOTU_G1_REG_CONFIG_2); 
     1795 
    17941796        if (i == 1) 
    17951797            return true;