Lines Matching refs:ioDesc
520 const sp<AudioIoDescriptor>& ioDesc) { in ioConfigChanged() argument
523 if (ioDesc == 0 || ioDesc->mIoHandle == AUDIO_IO_HANDLE_NONE) return; in ioConfigChanged()
536 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->mIoHandle); in ioConfigChanged()
538 mIoDescriptors.add(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
541 mIoDescriptors.replaceValueFor(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
544 if (ioDesc->getDeviceId() != AUDIO_PORT_HANDLE_NONE) { in ioConfigChanged()
545 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
547 auto it = mAudioDeviceCallbacks.find(ioDesc->mIoHandle); in ioConfigChanged()
559 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, ioDesc->mChannelMask, in ioConfigChanged()
560 ioDesc->mFrameCount, ioDesc->getDeviceId()); in ioConfigChanged()
564 if (getIoDescriptor_l(ioDesc->mIoHandle) == 0) { in ioConfigChanged()
566 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->mIoHandle); in ioConfigChanged()
570 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->mIoHandle); in ioConfigChanged()
572 mIoDescriptors.removeItem(ioDesc->mIoHandle); in ioConfigChanged()
573 mAudioDeviceCallbacks.erase(ioDesc->mIoHandle); in ioConfigChanged()
578 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->mIoHandle); in ioConfigChanged()
581 event == AUDIO_OUTPUT_CONFIG_CHANGED ? "output" : "input", ioDesc->mIoHandle); in ioConfigChanged()
586 mIoDescriptors.replaceValueFor(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
588 if (deviceId != ioDesc->getDeviceId()) { in ioConfigChanged()
589 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
590 auto it = mAudioDeviceCallbacks.find(ioDesc->mIoHandle); in ioConfigChanged()
598 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, in ioConfigChanged()
599 ioDesc->mChannelMask, ioDesc->mFrameCount, ioDesc->mFrameCountHAL, in ioConfigChanged()
600 ioDesc->getDeviceId()); in ioConfigChanged()
604 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->mIoHandle); in ioConfigChanged()
606 ALOGW("ioConfigChanged() start client on unknown io! %d", ioDesc->mIoHandle); in ioConfigChanged()
610 ioDesc->mIoHandle, ioDesc->mPortId, mAudioDeviceCallbacks.size()); in ioConfigChanged()
611 oldDesc->mPatch = ioDesc->mPatch; in ioConfigChanged()
612 auto it = mAudioDeviceCallbacks.find(ioDesc->mIoHandle); in ioConfigChanged()
615 auto it2 = cbks.find(ioDesc->mPortId); in ioConfigChanged()
617 callbacks.emplace(ioDesc->mPortId, it2->second); in ioConfigChanged()
636 cb->onAudioDeviceUpdate(ioDesc->mIoHandle, deviceId); in ioConfigChanged()