Lines Matching refs:output

466         audio_io_handle_t output = mOutputs.keyAt(i);  in setForceUse()  local
467 audio_devices_t newDevice = getNewDevice(output, true /*fromCache*/); in setForceUse()
468 setOutputDevice(output, newDevice, (newDevice != AUDIO_DEVICE_NONE)); in setForceUse()
470 applyStreamVolumes(output, newDevice, 0, true); in setForceUse()
544 audio_io_handle_t output = 0; in getOutput() local
639 output = mpClientInterface->openOutput(profile->mModule->mHandle, in getOutput()
649 if (output == 0 || in getOutput()
654 "format %d %d, channelMask %04x %04x", output, samplingRate, in getOutput()
657 if (output != 0) { in getOutput()
658 mpClientInterface->closeOutput(output); in getOutput()
664 addOutput(output, outputDesc); in getOutput()
666 if (dstOutput == output) { in getOutput()
670 ALOGV("getOutput() returns new direct output %d", output); in getOutput()
671 return output; in getOutput()
684 output = selectOutput(outputs, flags); in getOutput()
686 ALOGW_IF((output == 0), "getOutput() could not find output for stream %d, samplingRate %d," in getOutput()
689 ALOGV("getOutput() returns output %d", output); in getOutput()
691 return output; in getOutput()
740 status_t AudioPolicyManagerBase::startOutput(audio_io_handle_t output, in startOutput() argument
744 ALOGV("startOutput() output %d, stream %d, session %d", output, stream, session); in startOutput()
745 ssize_t index = mOutputs.indexOfKey(output); in startOutput()
747 ALOGW("startOutput() unknown output %d", output); in startOutput()
759 audio_devices_t newDevice = getNewDevice(output, false /*fromCache*/); in startOutput()
784 uint32_t muteWaitMs = setOutputDevice(output, newDevice, force); in startOutput()
794 output, in startOutput()
808 status_t AudioPolicyManagerBase::stopOutput(audio_io_handle_t output, in stopOutput() argument
812 ALOGV("stopOutput() output %d, stream %d, session %d", output, stream, session); in stopOutput()
813 ssize_t index = mOutputs.indexOfKey(output); in stopOutput()
815 ALOGW("stopOutput() unknown output %d", output); in stopOutput()
832 audio_devices_t newDevice = getNewDevice(output, false /*fromCache*/); in stopOutput()
838 setOutputDevice(output, newDevice, false, outputDesc->mLatency*2); in stopOutput()
845 if (curOutput != output && in stopOutput()
860 ALOGW("stopOutput() refcount is already 0 for output %d", output); in stopOutput()
865 void AudioPolicyManagerBase::releaseOutput(audio_io_handle_t output) in releaseOutput() argument
867 ALOGV("releaseOutput() %d", output); in releaseOutput()
868 ssize_t index = mOutputs.indexOfKey(output); in releaseOutput()
870 ALOGW("releaseOutput() releasing unknown output %d", output); in releaseOutput()
875 int testIndex = testOutputIndex(output); in releaseOutput()
879 mpClientInterface->closeOutput(output); in releaseOutput()
881 mOutputs.removeItem(output); in releaseOutput()
892 desc->mDirectOpenCount, output); in releaseOutput()
896 closeOutput(output); in releaseOutput()
1219 audio_io_handle_t output = selectOutputForEffects(dstOutputs); in getOutputForEffect() local
1221 output, (desc == NULL) ? "unspecified" : desc->name, (desc == NULL) ? 0 : desc->flags); in getOutputForEffect()
1223 return output; in getOutputForEffect()
1594 audio_io_handle_t output = mpClientInterface->openOutput( in AudioPolicyManagerBase() local
1602 if (output == 0) { in AudioPolicyManagerBase()
1609 mPrimaryOutput = output; in AudioPolicyManagerBase()
1611 addOutput(output, outputDesc); in AudioPolicyManagerBase()
1612 setOutputDevice(output, in AudioPolicyManagerBase()
1818 int AudioPolicyManagerBase::testOutputIndex(audio_io_handle_t output) in testOutputIndex() argument
1821 if (output == mTestOutputs[i]) return i; in testOutputIndex()
1903 audio_io_handle_t output = mpClientInterface->openOutput(profile->mModule->mHandle, in checkOutputsForDevice() local
1911 if (output != 0) { in checkOutputsForDevice()
1914 mpClientInterface->setParameters(output, paramStr); in checkOutputsForDevice()
1921 reply = mpClientInterface->getParameters(output, in checkOutputsForDevice()
1931 reply = mpClientInterface->getParameters(output, in checkOutputsForDevice()
1941 reply = mpClientInterface->getParameters(output, in checkOutputsForDevice()
1957 mpClientInterface->closeOutput(output); in checkOutputsForDevice()
1958 output = 0; in checkOutputsForDevice()
1960 mpClientInterface->closeOutput(output); in checkOutputsForDevice()
1963 output = mpClientInterface->openOutput( in checkOutputsForDevice()
1974 if (output != 0) { in checkOutputsForDevice()
1975 addOutput(output, desc); in checkOutputsForDevice()
1980 applyStreamVolumes(output, device, 0, true); in checkOutputsForDevice()
1985 duplicatedOutput = mpClientInterface->openDuplicateOutput(output, in checkOutputsForDevice()
1991 dupOutputDesc->mOutput2 = mOutputs.valueFor(output); in checkOutputsForDevice()
2000 mPrimaryOutput, output); in checkOutputsForDevice()
2001 mpClientInterface->closeOutput(output); in checkOutputsForDevice()
2002 mOutputs.removeItem(output); in checkOutputsForDevice()
2003 output = 0; in checkOutputsForDevice()
2008 if (output == 0) { in checkOutputsForDevice()
2014 outputs.add(output); in checkOutputsForDevice()
2015 ALOGV("checkOutputsForDevice(): adding output %d", output); in checkOutputsForDevice()
2242 void AudioPolicyManagerBase::closeOutput(audio_io_handle_t output) in closeOutput() argument
2244 ALOGV("closeOutput(%d)", output); in closeOutput()
2246 AudioOutputDescriptor *outputDesc = mOutputs.valueFor(output); in closeOutput()
2248 ALOGW("closeOutput() unknown output %d", output); in closeOutput()
2283 mpClientInterface->setParameters(output, param.toString()); in closeOutput()
2285 mpClientInterface->closeOutput(output); in closeOutput()
2287 mOutputs.removeItem(output); in closeOutput()
2440 audio_devices_t AudioPolicyManagerBase::getNewDevice(audio_io_handle_t output, bool fromCache) in getNewDevice() argument
2444 AudioOutputDescriptor *outputDesc = mOutputs.valueFor(output); in getNewDevice()
2826 uint32_t AudioPolicyManagerBase::setOutputDevice(audio_io_handle_t output, in setOutputDevice() argument
2831 ALOGV("setOutputDevice() output %d device %04x delayMs %d", output, device, delayMs); in setOutputDevice()
2832 AudioOutputDescriptor *outputDesc = mOutputs.valueFor(output); in setOutputDevice()
2865 … ALOGV("setOutputDevice() setting same device %04x or null device for output %d", device, output); in setOutputDevice()
2872 mpClientInterface->setParameters(output, param.toString(), delayMs); in setOutputDevice()
2875 applyStreamVolumes(output, device, delayMs); in setOutputDevice()
3219 audio_io_handle_t output, in computeVolume() argument
3223 AudioOutputDescriptor *outputDesc = mOutputs.valueFor(output); in computeVolume()
3265 output, in computeVolume()
3281 audio_io_handle_t output, in checkAndSetVolume() argument
3288 if (mOutputs.valueFor(output)->mMuteCount[stream] != 0) { in checkAndSetVolume()
3290 stream, mOutputs.valueFor(output)->mMuteCount[stream]); in checkAndSetVolume()
3302 float volume = computeVolume(stream, index, output, device); in checkAndSetVolume()
3306 if (volume != mOutputs.valueFor(output)->mCurVolume[stream] || in checkAndSetVolume()
3308 mOutputs.valueFor(output)->mCurVolume[stream] = volume; in checkAndSetVolume()
3309 …ALOGVV("checkAndSetVolume() for output %d stream %d, volume %f, delay %d", output, stream, volume,… in checkAndSetVolume()
3313 mpClientInterface->setStreamVolume(AudioSystem::VOICE_CALL, volume, output, delayMs); in checkAndSetVolume()
3315 … mpClientInterface->setStreamVolume((AudioSystem::stream_type)stream, volume, output, delayMs); in checkAndSetVolume()
3328 if (voiceVolume != mLastVoiceVolume && output == mPrimaryOutput) { in checkAndSetVolume()
3337 void AudioPolicyManagerBase::applyStreamVolumes(audio_io_handle_t output, in applyStreamVolumes() argument
3342 ALOGVV("applyStreamVolumes() for output %d and device %x", output, device); in applyStreamVolumes()
3347 output, in applyStreamVolumes()
3356 audio_io_handle_t output, in setStrategyMute() argument
3360 ALOGVV("setStrategyMute() strategy %d, mute %d, output %d", strategy, on, output); in setStrategyMute()
3363 setStreamMute(stream, on, output, delayMs, device); in setStrategyMute()
3370 audio_io_handle_t output, in setStreamMute() argument
3375 AudioOutputDescriptor *outputDesc = mOutputs.valueFor(output); in setStreamMute()
3381 stream, on, output, outputDesc->mMuteCount[stream], device); in setStreamMute()
3388 checkAndSetVolume(stream, 0, output, device, delayMs); in setStreamMute()
3401 output, in setStreamMute()