Changeset 1746 for trunk

Show
Ignore:
Timestamp:
12/04/09 03:50:31 (14 years ago)
Author:
jwoithe
Message:

RME: add a transmit stream processor to the device. A functional tx stream is required before rx data will be seen; this is the first step towards that.

Files:

Legend:

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

    r1697 r1746  
    671671    } 
    672672 
    673  
    674673    // Add ports to the processor - TODO 
    675674    std::string id=std::string("dev?"); 
     
    678677    } 
    679678 
     679    /* Now set up the transmit stream processor */ 
     680    m_transmitProcessor = new Streaming::RmeTransmitStreamProcessor(*this, 
     681      m_rme_model, event_size); 
     682    m_transmitProcessor->setVerboseLevel(getDebugLevel()); 
     683    if (!m_transmitProcessor->init()) { 
     684        debugFatal("Could not initialise receive processor!\n"); 
     685        return false; 
     686    } 
     687    if (!m_transmitProcessor->setDllBandwidth(xmit_sp_dll_bw)) { 
     688        debugFatal("Could not set DLL bandwidth\n"); 
     689        delete m_transmitProcessor; 
     690        m_transmitProcessor = NULL; 
     691        return false; 
     692    } 
     693 
    680694    // Other things to be done: 
    681     //  * create a transmit stream processor, set DLL bandwidth, add ports 
     695    //  * add ports to transmit stream processor 
    682696 
    683697    return true; 
     
    711725    if (i == 0) { 
    712726        m_receiveProcessor->setChannel(iso_rx_channel); 
    713         // m_transmitProcessor->setChannel(iso_tx_channel); 
     727        m_transmitProcessor->setChannel(iso_tx_channel); 
    714728        if (hardware_start_streaming(iso_rx_channel) != 0) 
    715729            return false; 
     
    768782    } 
    769783 
    770 printf("writeRegister: %016llx = %08x\n", reg, data); 
     784//printf("writeRegister: %016llx = %08x\n", reg, data); 
    771785    return (err==0)?0:-1; 
    772786} 
     
    791805    } 
    792806 
    793 printf("writeBlock: %016llx, size=%d (%d)\n", reg, n_quads, n_quads*4); 
     807//printf("writeBlock: %016llx, size=%d (%d)\n", reg, n_quads, n_quads*4); 
    794808    return (err==0)?0:-1; 
    795809}