Lines Matching refs:patch

629                                                         const struct audio_patch *patch,  in sendCreateAudioPatchConfigEvent()  argument
633 sp<ConfigEvent> configEvent = (ConfigEvent *)new CreateAudioPatchConfigEvent(*patch, *handle); in sendCreateAudioPatchConfigEvent()
4050 status_t AudioFlinger::MixerThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument
4058 status = PlaybackThread::createAudioPatch_l(patch, handle); in createAudioPatch_l()
4060 status = PlaybackThread::createAudioPatch_l(patch, handle); in createAudioPatch_l()
4065 status_t AudioFlinger::PlaybackThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument
4073 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
4074 LOG_ALWAYS_FATAL_IF(popcount(patch->sinks[i].ext.device.type) > 1 in createAudioPatch_l()
4078 patch->sinks[i].ext.device.type); in createAudioPatch_l()
4079 type |= patch->sinks[i].ext.device.type; in createAudioPatch_l()
4080 deviceTypeAddrs.push_back(AudioDeviceTypeAddr(patch->sinks[i].ext.device.type, in createAudioPatch_l()
4081 patch->sinks[i].ext.device.address)); in createAudioPatch_l()
4084 audio_port_handle_t sinkPortId = patch->sinks[0].id; in createAudioPatch_l()
4114 mPatch = *patch; in createAudioPatch_l()
4119 status = hwDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
4120 patch->sources, in createAudioPatch_l()
4121 patch->num_sinks, in createAudioPatch_l()
4122 patch->sinks, in createAudioPatch_l()
4126 if (strcmp(patch->sinks[0].ext.device.address, "") != 0) { in createAudioPatch_l()
4129 patch->sinks[0].ext.device.type, in createAudioPatch_l()
4130 patch->sinks[0].ext.device.address); in createAudioPatch_l()
8349 status_t AudioFlinger::RecordThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument
8355 mInDeviceTypeAddr.mType = patch->sources[0].ext.device.type; in createAudioPatch_l()
8356 mInDeviceTypeAddr.mAddress = patch->sources[0].ext.device.address; in createAudioPatch_l()
8357 audio_port_handle_t deviceId = patch->sources[0].id; in createAudioPatch_l()
8365 if (mAudioSource != patch->sinks[0].ext.mix.usecase.source) { in createAudioPatch_l()
8366 mAudioSource = patch->sinks[0].ext.mix.usecase.source; in createAudioPatch_l()
8374 status = hwDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
8375 patch->sources, in createAudioPatch_l()
8376 patch->num_sinks, in createAudioPatch_l()
8377 patch->sinks, in createAudioPatch_l()
8381 if (strcmp(patch->sources[0].ext.device.address, "") != 0) { in createAudioPatch_l()
8383 patch->sources[0].ext.device.type, in createAudioPatch_l()
8384 patch->sources[0].ext.device.address); in createAudioPatch_l()
8391 (int)patch->sources[0].ext.device.type); in createAudioPatch_l()
8393 (int)patch->sinks[0].ext.mix.usecase.source); in createAudioPatch_l()
8400 mPatch = *patch; in createAudioPatch_l()
8927 status_t AudioFlinger::MmapThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument
8939 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
8940 LOG_ALWAYS_FATAL_IF(popcount(patch->sinks[i].ext.device.type) > 1 in createAudioPatch_l()
8944 patch->sinks[i].ext.device.type); in createAudioPatch_l()
8945 type |= patch->sinks[i].ext.device.type; in createAudioPatch_l()
8946 sinkDeviceTypeAddrs.push_back(AudioDeviceTypeAddr(patch->sinks[i].ext.device.type, in createAudioPatch_l()
8947 patch->sinks[i].ext.device.address)); in createAudioPatch_l()
8949 deviceId = patch->sinks[0].id; in createAudioPatch_l()
8952 type = patch->sources[0].ext.device.type; in createAudioPatch_l()
8953 deviceId = patch->sources[0].id; in createAudioPatch_l()
8955 sourceDeviceTypeAddr.mType = patch->sources[0].ext.device.type; in createAudioPatch_l()
8956 sourceDeviceTypeAddr.mAddress = patch->sources[0].ext.device.address; in createAudioPatch_l()
8969 if (mAudioSource != patch->sinks[0].ext.mix.usecase.source) { in createAudioPatch_l()
8970 mAudioSource = patch->sinks[0].ext.mix.usecase.source; in createAudioPatch_l()
8978 status = mHalDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
8979 patch->sources, in createAudioPatch_l()
8980 patch->num_sinks, in createAudioPatch_l()
8981 patch->sinks, in createAudioPatch_l()
8985 if (strcmp(patch->sinks[0].ext.device.address, "") != 0) { in createAudioPatch_l()
8988 patch->sinks[0].ext.device.type, in createAudioPatch_l()
8989 patch->sinks[0].ext.device.address); in createAudioPatch_l()
8998 (int)patch->sinks[0].ext.mix.usecase.source); in createAudioPatch_l()
9018 mPatch = *patch; in createAudioPatch_l()