Changeset 2035
- Timestamp:
- 02/03/12 04:03:09 (12 years ago)
- Files:
-
- trunk/libffado/src/rme/rme_avdevice.cpp (modified) (1 diff)
- trunk/libffado/src/rme/rme_avdevice.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/rme/rme_avdevice.cpp
r2033 r2035 519 519 } 520 520 521 // The RME clock source selection logic is a little more complex than a 522 // simple list can cater for. Therefore we just put in a placeholder and 523 // rely on the extended controls in ffado-mixer to deal with the details. 524 // 525 FFADODevice::ClockSource 526 Device::dummyClockSource(void) { 527 ClockSource s; 528 s.id = 0; 529 s.type = eCT_Internal; 530 s.description = "Selected via device controls"; 531 s.valid = s.active = s.locked = true; 532 s.slipping = false; 533 return s; 534 } 521 535 FFADODevice::ClockSourceVector 522 536 Device::getSupportedClockSources() { 523 537 FFADODevice::ClockSourceVector r; 538 ClockSource s; 539 s = dummyClockSource(); 540 r.push_back(s); 524 541 return r; 525 542 } 526 527 543 bool 528 544 Device::setActiveClockSource(ClockSource s) { 529 return false; 530 } 531 545 return true; 546 } 532 547 FFADODevice::ClockSource 533 548 Device::getActiveClockSource() { 534 ClockSource s; 535 return s; 549 return dummyClockSource(); 536 550 } 537 551 trunk/libffado/src/rme/rme_avdevice.h
r2033 r2035 76 76 virtual std::vector<int> getSupportedSamplingFrequencies(); 77 77 78 ClockSource dummyClockSource(void); 78 79 virtual ClockSourceVector getSupportedClockSources(); 79 80 virtual bool setActiveClockSource(ClockSource);