Changeset 1365

Show
Ignore:
Timestamp:
10/20/08 16:24:27 (12 years ago)
Author:
jwoithe
Message:

MOTU: disable ADAT mixer controls for the Ultralite since it doesn't include ADAT channels

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/support/mixer-qt4/mixer_motu.py

    r1364 r1365  
    639639            self.mix4_dest.setItemText(7, "AES/EBU") 
    640640            self.phones_src.setItemText(7, "AES/EBU") 
     641 
     642        # The Ultralite doesn't have ADAT channels 
     643        if (self.model == MOTU_MODEL_ULTRALITE): 
     644            self.mix1_tab.setTabEnabled(3, False)  # ADAT page 
     645            self.mix2_tab.setTabEnabled(3, False)  # ADAT page 
     646            self.mix3_tab.setTabEnabled(3, False)  # ADAT page 
     647            self.mix4_tab.setTabEnabled(3, False)  # ADAT page 
    641648 
    642649        # Some devices don't have the option of selecting an optical SPDIF 
  • branches/libffado-2.0/support/mixer/mixer_motu.py

    r1316 r1365  
    635635            self.mix4_dest.changeItem("AES/EBU", 7) 
    636636            self.phones_src.changeItem("AES/EBU", 7) 
     637 
     638        # The Ultralite doesn't have ADAT channels 
     639        if (self.model == MOTU_MODEL_ULTRALITE): 
     640            self.mix1_tab.page(3).setEnabled(False)  # ADAT page 
     641            self.mix2_tab.page(3).setEnabled(False)  # ADAT page 
     642            self.mix3_tab.page(3).setEnabled(False)  # ADAT page 
     643            self.mix4_tab.page(3).setEnabled(False)  # ADAT page 
    637644 
    638645        # Some devices don't have the option of selecting an optical SPDIF