Lines Matching refs:newDevice
225 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt() local
226 updateCallRouting(newDevice); in setDeviceConnectionStateInt()
231 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setDeviceConnectionStateInt() local
239 setOutputDevice(desc, newDevice, force, 0); in setDeviceConnectionStateInt()
322 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt() local
323 updateCallRouting(newDevice); in setDeviceConnectionStateInt()
640 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setPhoneState() local
642 setOutputDevice(desc, newDevice, (newDevice != AUDIO_DEVICE_NONE), 0 /*delayMs*/); in setPhoneState()
700 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, true /*fromCache*/); in setForceUse() local
701 waitMs = updateCallRouting(newDevice, delayMs); in setForceUse()
705 audio_devices_t newDevice = getNewOutputDevice(outputDesc, true /*fromCache*/); in setForceUse() local
707 waitMs = setOutputDevice(outputDesc, newDevice, (newDevice != AUDIO_DEVICE_NONE), in setForceUse()
710 if (forceVolumeReeval && (newDevice != AUDIO_DEVICE_NONE)) { in setForceUse()
711 applyStreamVolumes(outputDesc, newDevice, waitMs, true); in setForceUse()
716 audio_devices_t newDevice = getNewInputDevice(activeDesc); in setForceUse() local
719 (newDevice & ~AUDIO_DEVICE_BIT_IN)) { in setForceUse()
720 setInputDevice(activeDesc->mIoHandle, newDevice); in setForceUse()
1147 audio_devices_t newDevice; in startOutput() local
1154 newDevice = policyMix->mDeviceType; in startOutput()
1156 newDevice = AUDIO_DEVICE_OUT_REMOTE_SUBMIX; in startOutput()
1159 newDevice = getNewOutputDevice(outputDesc, false /*fromCache*/); in startOutput()
1160 if (newDevice != outputDesc->device()) { in startOutput()
1164 newDevice = AUDIO_DEVICE_NONE; in startOutput()
1169 status = startSource(outputDesc, stream, newDevice, address, &delayMs); in startOutput()
1178 if (audio_is_remote_submix_device(newDevice) && policyMix != NULL && in startOutput()
1394 audio_devices_t newDevice = getNewOutputDevice(outputDesc, false /*fromCache*/); in stopSource() local
1400 setOutputDevice(outputDesc, newDevice, false, outputDesc->latency()*2); in stopSource()
1410 (newDevice != desc->device())) { in stopSource()
3284 audio_devices_t newDevice = getNewOutputDevice(outputDesc, false /*fromCache*/); in checkStrategyRoute() local
3285 setOutputDevice(outputDesc, newDevice, false); in checkStrategyRoute()
4701 audio_devices_t newDevice = getDeviceForStrategy(strategy, false /*fromCache*/); in loadConfig() local
4703 SortedVector<audio_io_handle_t> dstOutputs = getOutputsForDevice(newDevice, mOutputs); in loadConfig()
4740 setStrategyMute(strategy, false, desc, maxLatency * LATENCY_MUTE_FACTOR, newDevice); in loadConfig()