Changeset 1634

Show
Ignore:
Timestamp:
08/28/09 05:52:20 (14 years ago)
Author:
jwoithe
Message:

MOTU: first pass at implementing a mixer for the 8pre. Some details are yet to be implemented and others are educated guesses which are still to be confirmed. Thanks to Bucky Duster for the extensive logs so far which have enabled work on the 8pre support to proceed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/motu/motu_mixerdefs.cpp

    r1579 r1634  
    254254}; 
    255255 
     256const MatrixMixBus MixerBuses_8pre[] = { 
     257    {"Mix 1", 0x4000, }, 
     258    {"Mix 2", 0x4100, }, 
     259    {"Mix 3", 0x4200, }, 
     260    {"Mix 4", 0x4300, }, 
     261}; 
     262 
     263const MatrixMixChannel MixerChannels_8pre[] = { 
     264    {"Analog 1", MOTU_CTRL_STD_CHANNEL, 0x0000, }, 
     265    {"Analog 2", MOTU_CTRL_STD_CHANNEL, 0x0004, }, 
     266    {"Analog 3", MOTU_CTRL_STD_CHANNEL, 0x0008, }, 
     267    {"Analog 4", MOTU_CTRL_STD_CHANNEL, 0x000c, }, 
     268    {"Analog 5", MOTU_CTRL_STD_CHANNEL, 0x0010, }, 
     269    {"Analog 6", MOTU_CTRL_STD_CHANNEL, 0x0014, }, 
     270    {"Analog 7", MOTU_CTRL_STD_CHANNEL, 0x0018, }, 
     271    {"Analog 8", MOTU_CTRL_STD_CHANNEL, 0x001c, }, 
     272    {"ADAT 1", MOTU_CTRL_STD_CHANNEL, 0x0020, }, 
     273    {"ADAT 2", MOTU_CTRL_STD_CHANNEL, 0x0024, }, 
     274    {"ADAT 3", MOTU_CTRL_STD_CHANNEL, 0x0028, }, 
     275    {"ADAT 4", MOTU_CTRL_STD_CHANNEL, 0x002c, }, 
     276    {"ADAT 5", MOTU_CTRL_STD_CHANNEL, 0x0030, }, 
     277    {"ADAT 6", MOTU_CTRL_STD_CHANNEL, 0x0034, }, 
     278    {"ADAT 7", MOTU_CTRL_STD_CHANNEL, 0x0038, }, 
     279    {"ADAT 8", MOTU_CTRL_STD_CHANNEL, 0x003c, }, 
     280}; 
     281 
     282const MixerCtrl MixerCtrls_8pre[] = { 
     283    {"Mix1/Mix_", "Mix 1 ", "", MOTU_CTRL_STD_MIX, 0x0c20, }, 
     284    {"Mix2/Mix_", "Mix 2 ", "", MOTU_CTRL_STD_MIX, 0x0c24, }, 
     285    {"Mix3/Mix_", "Mix 3 ", "", MOTU_CTRL_STD_MIX, 0x0c28, }, 
     286    {"Mix4/Mix_", "Mix 4 ", "", MOTU_CTRL_STD_MIX, 0x0c2c, }, 
     287 
     288    /* For phones source control, "register" is currently unused */ 
     289    {"Control/Phones_", "Phones source", "", MOTU_CTRL_PHONES_SRC, 0}, 
     290 
     291    /* For optical mode controls, the "register" is used to indicate direction */ 
     292    {"Control/OpticalIn_mode", "Optical input mode ", "", MOTU_CTRL_OPTICAL_MODE, MOTU_CTRL_DIR_IN}, 
     293    {"Control/OpticalOut_mode", "Optical output mode ", "", MOTU_CTRL_OPTICAL_MODE, MOTU_CTRL_DIR_OUT}, 
     294}; 
     295 
    256296const MotuMixer Mixer_Traveler = MOTUMIXER( 
    257297    MixerCtrls_Traveler, MixerBuses_Traveler, MixerChannels_Traveler); 
     
    266306    MixerCtrls_896HD, MixerBuses_896HD, MixerChannels_896HD); 
    267307 
     308const MotuMixer Mixer_8pre = MOTUMIXER( 
     309    MixerCtrls_8pre, MixerBuses_8pre, MixerChannels_8pre); 
     310 
    268311} 
  • branches/libffado-2.0/support/mixer-qt4/mixer_motu.py

    r1522 r1634  
    628628            self.optical_out_mode.setEnabled(False) 
    629629 
    630         # The 896HD doesn't have optical SPDIF (aka Toslink) capability 
    631         if (self.model == MOTU_MODEL_896HD): 
     630        # The 896HD and 8pre don't have optical SPDIF (aka Toslink) capability 
     631        if (self.model==MOTU_MODEL_896HD or self.model==MOTU_MODEL_8PRE): 
    632632            self.optical_in_mode.removeItem(2) 
    633633            self.optical_out_mode.removeItem(2)