Changeset 1696

Show
Ignore:
Timestamp:
10/18/09 04:07:09 (14 years ago)
Author:
jwoithe
Message:

RME: add some device initialisation details.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/rme/fireface_def.h

    r1690 r1696  
    8888 
    8989#define RME_FF400_GAIN_REG           0x801c0180 
     90 
     91#define RME_FF400_MIDI_HIGH_ADDR     0x801003f4 
    9092 
    9193/* Addresses of various blocks in memory-mapped flash */ 
  • trunk/libffado/src/rme/fireface_hw.cpp

    r1690 r1696  
    2424/* This file implements miscellaneous lower-level hardware functions for the Fireface */ 
    2525 
     26#include "libieee1394/configrom.h" 
     27#include "libieee1394/ieee1394service.h" 
     28 
    2629#include "rme/rme_avdevice.h" 
    2730#include "rme/fireface_def.h" 
     
    103106        } 
    104107        dev_config->tco_settings_valid = 1; 
     108    } 
     109 
     110    if (ret==0 && m_rme_model==RME_MODEL_FIREFACE400) { 
     111        unsigned int node_id = getConfigRom().getNodeId(); 
     112        unsigned int midi_hi_addr; 
     113        // For now we'll fix this since that's what's done under other 
     114        // systems. 
     115        midi_hi_addr = 0x01; 
     116        if (writeRegister(RME_FF400_MIDI_HIGH_ADDR, (node_id<<16) | midi_hi_addr) != 0) 
     117            ret = -1; 
     118    } 
     119 
     120    if (ret==0) { 
     121        signed freq = dev_config->software_freq; 
     122        if (dev_config->dds_freq > 0) 
     123            freq = dev_config->dds_freq; 
     124        if (set_hardware_dds_freq(freq) != 0) 
     125            ret = -1; 
    105126    } 
    106127