root/branches/libffado-2.0/support/mixer/mixer_saffire.py

Revision 1216, 5.6 kB (checked in by ppalmers, 13 years ago)

add support for the different mixers at different samplerates or configurations for the saffires

Line 
1 #
2 # Copyright (C) 2005-2008 by Pieter Palmers
3 #
4 # This file is part of FFADO
5 # FFADO = Free Firewire (pro-)audio drivers for linux
6 #
7 # FFADO is based upon FreeBoB.
8 #
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 2 of the License, or
12 # (at your option) version 3 of the License.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 #
22
23 from qt import *
24 from mixer_saffire_base import SaffireMixerBase
25 from mixer_saffireui import SaffireMixerUI
26
27 class SaffireMixer(SaffireMixerUI, SaffireMixerBase):
28     def __init__(self,parent = None,name = None,fl = 0):
29         SaffireMixerUI.__init__(self,parent,name,fl)
30         SaffireMixerBase.__init__(self)
31
32     def init(self):
33         print "Init large Saffire mixer window"
34
35         self.VolumeControls={
36                 self.sldPC12Out12: ['/Mixer/PCMix', 0, 0],
37                 self.sldPC12Out34: ['/Mixer/PCMix', 0, 1],
38                 self.sldPC12Out56: ['/Mixer/PCMix', 0, 2],
39                 self.sldPC12Out78: ['/Mixer/PCMix', 0, 3],
40                 self.sldPC12Out910: ['/Mixer/PCMix', 0, 4],
41                 self.sldPC34Out12: ['/Mixer/PCMix', 1, 0],
42                 self.sldPC34Out34: ['/Mixer/PCMix', 1, 1],
43                 self.sldPC34Out56: ['/Mixer/PCMix', 1, 2],
44                 self.sldPC34Out78: ['/Mixer/PCMix', 1, 3],
45                 self.sldPC34Out910: ['/Mixer/PCMix', 1, 4],
46                 self.sldPC56Out12: ['/Mixer/PCMix', 2, 0],
47                 self.sldPC56Out34: ['/Mixer/PCMix', 2, 1],
48                 self.sldPC56Out56: ['/Mixer/PCMix', 2, 2],
49                 self.sldPC56Out78: ['/Mixer/PCMix', 2, 3],
50                 self.sldPC56Out910: ['/Mixer/PCMix', 2, 4],
51                 self.sldPC78Out12: ['/Mixer/PCMix', 3, 0],
52                 self.sldPC78Out34: ['/Mixer/PCMix', 3, 1],
53                 self.sldPC78Out56: ['/Mixer/PCMix', 3, 2],
54                 self.sldPC78Out78: ['/Mixer/PCMix', 3, 3],
55                 self.sldPC78Out910: ['/Mixer/PCMix', 3, 4],
56                 self.sldPC910Out12: ['/Mixer/PCMix', 4, 0],
57                 self.sldPC910Out34: ['/Mixer/PCMix', 4, 1],
58                 self.sldPC910Out56: ['/Mixer/PCMix', 4, 2],
59                 self.sldPC910Out78: ['/Mixer/PCMix', 4, 3],
60                 self.sldPC910Out910: ['/Mixer/PCMix', 4, 4],
61                 self.sldIN1Out1: ['/Mixer/InputMix', 0, 0],
62                 self.sldIN1Out3: ['/Mixer/InputMix', 0, 2],
63                 self.sldIN1Out5: ['/Mixer/InputMix', 0, 4],
64                 self.sldIN1Out7: ['/Mixer/InputMix', 0, 6],
65                 self.sldIN1Out9: ['/Mixer/InputMix', 0, 8],
66                 self.sldIN2Out2: ['/Mixer/InputMix', 1, 1],
67                 self.sldIN2Out4: ['/Mixer/InputMix', 1, 3],
68                 self.sldIN2Out6: ['/Mixer/InputMix', 1, 5],
69                 self.sldIN2Out8: ['/Mixer/InputMix', 1, 7],
70                 self.sldIN2Out10: ['/Mixer/InputMix', 1, 9],
71                 self.sldIN3Out1: ['/Mixer/InputMix', 2, 0],
72                 self.sldIN3Out3: ['/Mixer/InputMix', 2, 2],
73                 self.sldIN3Out5: ['/Mixer/InputMix', 2, 4],
74                 self.sldIN3Out7: ['/Mixer/InputMix', 2, 6],
75                 self.sldIN3Out9: ['/Mixer/InputMix', 2, 8],
76                 self.sldIN4Out2: ['/Mixer/InputMix', 3, 1],
77                 self.sldIN4Out4: ['/Mixer/InputMix', 3, 3],
78                 self.sldIN4Out6: ['/Mixer/InputMix', 3, 5],
79                 self.sldIN4Out8: ['/Mixer/InputMix', 3, 7],
80                 self.sldIN4Out10: ['/Mixer/InputMix', 3, 9],
81                 self.sldREV1Out1: ['/Mixer/InputMix', 4, 0],
82                 self.sldREV1Out3: ['/Mixer/InputMix', 4, 2],
83                 self.sldREV1Out5: ['/Mixer/InputMix', 4, 4],
84                 self.sldREV1Out7: ['/Mixer/InputMix', 4, 6],
85                 self.sldREV1Out9: ['/Mixer/InputMix', 4, 8],
86                 self.sldREV2Out2: ['/Mixer/InputMix', 5, 1],
87                 self.sldREV2Out4: ['/Mixer/InputMix', 5, 3],
88                 self.sldREV2Out6: ['/Mixer/InputMix', 5, 5],
89                 self.sldREV2Out8: ['/Mixer/InputMix', 5, 7],
90                 self.sldREV2Out10: ['/Mixer/InputMix', 5, 9],
91                 }
92
93
94         self.SelectorControls={
95                 self.chkSpdifSwitch:    ['/Mixer/SpdifSwitch'],
96                 self.chkOut12Mute:      ['/Mixer/Out12Mute'],
97                 self.chkOut12HwCtrl:    ['/Mixer/Out12HwCtrl'],
98                 self.chkOut12Dim:       ['/Mixer/Out12Dim'],
99                 self.chkOut34Mute:      ['/Mixer/Out34Mute'],
100                 self.chkOut34HwCtrl:    ['/Mixer/Out34HwCtrl'],
101                 self.chkOut56Mute:      ['/Mixer/Out56Mute'],
102                 self.chkOut56HwCtrl:    ['/Mixer/Out56HwCtrl'],
103                 self.chkOut78Mute:      ['/Mixer/Out78Mute'],
104                 self.chkOut78HwCtrl:    ['/Mixer/Out78HwCtrl'],
105                 self.chkOut910Mute:     ['/Mixer/Out910Mute'],
106                 }
107
108         self.VolumeControlsLowRes={
109                 self.sldOut12Level:      ['/Mixer/Out12Level'],
110                 self.sldOut34Level:      ['/Mixer/Out34Level'],
111                 self.sldOut56Level:      ['/Mixer/Out56Level'],
112                 self.sldOut78Level:      ['/Mixer/Out78Level'],
113                 }
114
115         self.TriggerButtonControls={
116         }
117
118         self.TextControls={
119         }
120
121         self.saveTextControls={
122         }
123
124         self.ComboControls={
125         }
126
Note: See TracBrowser for help on using the browser.