Lines Matching refs:ioDesc
487 const sp<AudioIoDescriptor>& ioDesc) { in ioConfigChanged() argument
490 if (ioDesc == 0 || ioDesc->mIoHandle == AUDIO_IO_HANDLE_NONE) return; in ioConfigChanged()
501 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->mIoHandle); in ioConfigChanged()
503 mIoDescriptors.add(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
506 mIoDescriptors.replaceValueFor(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
509 if (ioDesc->getDeviceId() != AUDIO_PORT_HANDLE_NONE) { in ioConfigChanged()
510 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
511 ssize_t ioIndex = mAudioDeviceCallbacks.indexOfKey(ioDesc->mIoHandle); in ioConfigChanged()
518 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, ioDesc->mChannelMask, in ioConfigChanged()
519 ioDesc->mFrameCount, ioDesc->getDeviceId()); in ioConfigChanged()
523 if (getIoDescriptor_l(ioDesc->mIoHandle) == 0) { in ioConfigChanged()
525 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->mIoHandle); in ioConfigChanged()
529 event == AUDIO_OUTPUT_CLOSED ? "output" : "input", ioDesc->mIoHandle); in ioConfigChanged()
531 mIoDescriptors.removeItem(ioDesc->mIoHandle); in ioConfigChanged()
532 mAudioDeviceCallbacks.removeItem(ioDesc->mIoHandle); in ioConfigChanged()
537 sp<AudioIoDescriptor> oldDesc = getIoDescriptor_l(ioDesc->mIoHandle); in ioConfigChanged()
539 ALOGW("ioConfigChanged() modifying unknown output! %d", ioDesc->mIoHandle); in ioConfigChanged()
544 mIoDescriptors.replaceValueFor(ioDesc->mIoHandle, ioDesc); in ioConfigChanged()
546 if (deviceId != ioDesc->getDeviceId()) { in ioConfigChanged()
547 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
548 ssize_t ioIndex = mAudioDeviceCallbacks.indexOfKey(ioDesc->mIoHandle); in ioConfigChanged()
556 ioDesc->mIoHandle, ioDesc->mSamplingRate, ioDesc->mFormat, in ioConfigChanged()
557 … ioDesc->mChannelMask, ioDesc->mFrameCount, ioDesc->mFrameCountHAL, ioDesc->getDeviceId()); in ioConfigChanged()
564 callbacks[i]->onAudioDeviceUpdate(ioDesc->mIoHandle, deviceId); in ioConfigChanged()