Home | History | Annotate | Download | only in libaudio-qdsp5v2

Lines Matching refs:strategy

52 uint32_t AudioPolicyManager::getDeviceForStrategy(routing_strategy strategy, bool fromCache)
57 device = mDeviceForStrategy[strategy];
58 LOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device);
62 switch (strategy) {
65 // when off call, DTMF strategy follows the same rules as MEDIA strategy
73 // for phone strategy, we first consider the forced use and then the available devices by order
77 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) {
104 // - phone strategy should route STREAM_VOICE_CALL to A2DP
117 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) {
128 // - phone strategy should route STREAM_VOICE_CALL to A2DP speaker
150 // - if we are docked to a BT CAR dock, don't duplicate for the sonification strategy
151 // - if we are docked to a BT DESK dock, use only speaker for the sonification strategy
168 // The second device used for sonification is the same as the device used by media strategy
180 strategy == STRATEGY_SONIFICATION &&
228 LOGW("getDeviceForStrategy() unknown strategy: %d", strategy);
232 LOGV("getDeviceForStrategy() strategy %d, device %x", strategy, device);