Lines Matching refs:ioDesc
642 sp<AudioIoDescriptor> ioDesc( in ioConfigChanged() local
648 if (ioDesc->getIoHandle() == AUDIO_IO_HANDLE_NONE) return Status::ok(); in ioConfigChanged()
661 if (sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->getIoHandle())) { in ioConfigChanged()
664 mIoDescriptors[ioDesc->getIoHandle()] = ioDesc; in ioConfigChanged()
666 if (ioDesc->getDeviceId() != AUDIO_PORT_HANDLE_NONE) { in ioConfigChanged()
667 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
669 auto it = mAudioDeviceCallbacks.find(ioDesc->getIoHandle()); in ioConfigChanged()
680 ioDesc->toDebugString().c_str()); in ioConfigChanged()
685 if (getIoDescriptor_l(ioDesc->getIoHandle()) == 0) { in ioConfigChanged()
687 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->getIoHandle()); in ioConfigChanged()
691 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->getIoHandle()); in ioConfigChanged()
693 mIoDescriptors.erase(ioDesc->getIoHandle()); in ioConfigChanged()
694 mAudioDeviceCallbacks.erase(ioDesc->getIoHandle()); in ioConfigChanged()
700 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->getIoHandle()); in ioConfigChanged()
704 ioDesc->getIoHandle()); in ioConfigChanged()
709 mIoDescriptors[ioDesc->getIoHandle()] = ioDesc; in ioConfigChanged()
711 if (deviceId != ioDesc->getDeviceId()) { in ioConfigChanged()
712 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
713 auto it = mAudioDeviceCallbacks.find(ioDesc->getIoHandle()); in ioConfigChanged()
720 ioDesc->toDebugString().c_str()); in ioConfigChanged()
725 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->getIoHandle()); in ioConfigChanged()
728 ioDesc->getIoHandle()); in ioConfigChanged()
732 ioDesc->getIoHandle(), ioDesc->getPortId(), mAudioDeviceCallbacks.size()); in ioConfigChanged()
733 oldDesc->setPatch(ioDesc->getPatch()); in ioConfigChanged()
734 auto it = mAudioDeviceCallbacks.find(ioDesc->getIoHandle()); in ioConfigChanged()
737 auto it2 = cbks.find(ioDesc->getPortId()); in ioConfigChanged()
739 callbacks.emplace(ioDesc->getPortId(), it2->second); in ioConfigChanged()
759 cb->onAudioDeviceUpdate(ioDesc->getIoHandle(), deviceId); in ioConfigChanged()