Changeset 2567
- Timestamp:
- 10/15/14 09:08:16 (9 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/support/mixer-qt4/ffado/mixer/yamahago.py
r2566 r2567 43 43 def initValues(self): 44 44 uicLoad("ffado/mixer/yamahago", self) 45 45 46 46 self.modelId = self.configrom.getModelId() 47 47 # GO44 … … 95 95 path = params[0] 96 96 idx = params[1] 97 97 98 98 db = self.hw.getContignuous(path, idx) 99 99 vol = self.db2vol(db) 100 100 ctl.setValue(vol) 101 101 102 102 pair = params[2] 103 103 pidx = params[3] 104 104 link = params[4] 105 105 106 106 pdb = self.hw.getContignuous(path, pidx) 107 107 pvol = self.db2vol(db) 108 108 109 109 if pvol == vol: 110 110 link.setChecked(True) 111 111 112 112 QObject.connect(ctl, SIGNAL('valueChanged(int)'), self.updateVolume) 113 113 … … 116 116 state = self.hw.getDiscrete(param) 117 117 ctl.setCurrentIndex(state) 118 118 119 119 QObject.connect(ctl, SIGNAL('activated(int)'), self.updateSelector) 120 120 121 121 if not self.is46: 122 122 QObject.connect(self.cmb_ana_in_12_level, SIGNAL('activated(int)'), self.updateMicLevel) … … 127 127 def db2vol(self, db): 128 128 return pow(10, db / 16384 + 2) - 1 129 129 130 130 def updateMicLevel(self, state): 131 131 if state == 0: … … 147 147 db = self.vol2db(vol) 148 148 self.hw.setContignuous(path, db, idx) 149 149 150 150 if link.isChecked(): 151 151 pair.setValue(vol)