Changeset 1285
- Timestamp:
- 07/10/08 05:22:24 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-2.0/src/fireworks/fireworks_control.cpp
r1284 r1285 301 301 switch(m_Slave->getTarget()) { 302 302 case eMT_PlaybackMix: 303 switch(m_Slave->get Type()) {303 switch(m_Slave->getCommand()) { 304 304 case eMC_Gain: 305 305 m_ParentDevice.m_session.h.playbackgains[m_Slave->m_channel] = m_Slave->m_value; … … 310 310 break; 311 311 case eMT_PhysicalOutputMix: 312 switch(m_Slave->get Type()) {312 switch(m_Slave->getCommand()) { 313 313 case eMC_Gain: 314 314 m_ParentDevice.m_session.h.outputgains[m_Slave->m_channel] = m_Slave->m_value; … … 412 412 switch(m_Slave->getTarget()) { 413 413 case eMT_PlaybackMix: 414 switch(m_Slave->get Type()) {414 switch(m_Slave->getCommand()) { 415 415 case eMC_Mute: 416 416 m_ParentDevice.m_session.s.playbacks[m_Slave->m_channel].mute = m_Slave->m_value; … … 424 424 break; 425 425 case eMT_PhysicalOutputMix: 426 switch(m_Slave->get Type()) {426 switch(m_Slave->getCommand()) { 427 427 case eMC_Mute: 428 428 m_ParentDevice.m_session.s.outputs[m_Slave->m_channel].mute = m_Slave->m_value; … … 436 436 break; 437 437 case eMT_PhysicalInputMix: 438 switch(m_Slave->get Type()) {438 switch(m_Slave->getCommand()) { 439 439 //case eMC_Pad: 440 440 // m_ParentDevice.m_session.s.inputs[m_Slave->m_channel].pad = m_Slave->m_value; … … 463 463 { 464 464 if(m_Slave) { 465 // workaround for the failing get nominal command for input channels 466 // get it from the session block 467 if ((m_Slave->getTarget() == eMT_PhysicalInputMix) 468 && (m_Slave->getCommand() == eMC_Nominal)) { 469 int val = m_ParentDevice.m_session.s.inputs[m_Slave->m_channel].shift; 470 debugOutput(DEBUG_LEVEL_VERBOSE, "input pad workaround: %08X\n", val); 471 return val; 472 } 465 473 m_Slave->setType(eCT_Get); 466 474 if (!m_ParentDevice.doEfcOverAVC(*m_Slave))