Changeset 1698

Show
Ignore:
Timestamp:
10/24/09 04:23:19 (13 years ago)
Author:
jwoithe
Message:

RME: hacks to try to convince the device to start streaming. They didn't work.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/rme/fireface_hw.cpp

    r1697 r1698  
    6363    signed int n_channels = (m_rme_model==RME_MODEL_FIREFACE400)? 
    6464                   RME_FF400_MAX_CHANNELS:RME_FF800_MAX_CHANNELS; 
     65    signed int i; 
    6566 
    6667    // Initialises the device's settings structure to a known state and then 
     
    112113        } 
    113114 
     115readRegister(0xfffff0000410LL); 
     116 
    114117        if (ret==0) { 
    115118            signed freq = dev_config->software_freq; 
     
    120123        } 
    121124 
     125for (i=0;i<9;i++) 
     126  readRegister(0xfffff0000410LL); 
     127readRegister(0x801c0000LL); 
     128 
    122129        if (m_rme_model == RME_MODEL_FIREFACE400) { 
    123130            signed int i; 
     
    127134        } 
    128135 
     136for (i=0;i<7;i++) { 
     137  set_hardware_ampgain(FF400_AMPGAIN_MIC1,0); 
     138  set_hardware_ampgain(FF400_AMPGAIN_MIC2,0); 
     139} 
     140readRegister(0xfffff0000404LL); 
     141readRegister(0x801c0000LL); 
     142readRegister(0xfffff0000410LL); 
     143readRegister(0x801c0000LL); 
     144readRegister(0xfffff0000410LL); 
     145readRegister(0xfffff000040cLL); 
     146readRegister(0xfffff000040cLL); 
     147 
    129148        // Matrix mixer settings 
    130149        for (dest=0; dest<n_channels; dest++) { 
    131150            for (src=0; src<n_channels; src++) { 
    132151                set_hardware_mixergain(RME_FF_MM_INPUT, src, dest, 0); 
     152readRegister(0xfffff0000410LL); 
    133153            } 
    134154            for (src=0; src<n_channels; src++) { 
    135155                set_hardware_mixergain(RME_FF_MM_PLAYBACK, src, dest, 0); 
     156readRegister(0xfffff0000410LL); 
    136157            } 
    137158        } 
    138159        for (src=0; src<n_channels; src++) { 
    139160            set_hardware_mixergain(RME_FF_MM_OUTPUT, src, 0, 0); 
     161readRegister(0xfffff0000410LL); 
    140162        } 
    141163 
     
    731753} 
    732754 
     755readRegister(0xfffff000040cLL); 
     756readRegister(0xfffff000040cLL); 
     757readRegister(0xfffff000040cLL); 
     758 
    733759    return writeBlock(addr, buf, size); 
    734760} 
     
    754780                data |= RME_FF800_STREAMING_SPEED_800; // Flag 800 Mbps speed 
    755781        } 
     782 
     783readRegister(0x801c0000LL); 
    756784 
    757785printf("start 0x%016llx data: %08x\n", addr, data);