void STC_FLASHMEM ConfigurationManager::applyRouting() {
  bool routing;
  getRouting(&routing);
  if (routing)
    Router::enable();
  else
    Router::disable();
}
Example #2
0
status_t AudioSystem::isBluetoothScoOn(bool* state) {
    uint32_t routes = 0;
    status_t s = getRouting(MODE_IN_CALL, &routes);
    *state = !!(routes & ROUTE_BLUETOOTH_SCO);
    return s;
}
Example #3
0
status_t AudioSystem::isSpeakerphoneOn(bool* state) {
    uint32_t routes = 0;
    status_t s = getRouting(MODE_IN_CALL, &routes);
    *state = !!(routes & ROUTE_SPEAKER);
    return s;
}