Lines Matching refs:sources
437 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]);
450 outputDesc->toAudioPortConfig(&patch.sources[1]);
451 patch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH;
475 txSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]);
493 outputDesc->toAudioPortConfig(&patch.sources[1]);
494 patch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH;
1843 inputDesc->getModuleHandle() == mCallTxPatch->mPatch.sources[0].ext.device.hw_module) {
1940 inputDesc->getModuleHandle() == mCallTxPatch->mPatch.sources[0].ext.device.hw_module) {
2827 ALOGV("createAudioPatch() num sources %d num sinks %d", patch->num_sources, patch->num_sinks);
2838 if (patch->sources[0].role != AUDIO_PORT_ROLE_SOURCE) {
2850 ALOGV("createAudioPatch source id %d role %d type %d", patch->sources[0].id,
2851 patch->sources[0].role,
2852 patch->sources[0].type);
2872 if (patch->sources[0].type == AUDIO_PORT_TYPE_MIX) {
2873 sp<SwAudioOutputDescriptor> outputDesc = mOutputs.getOutputFromId(patch->sources[0].id);
2875 ALOGV("createAudioPatch() output not found for id %d", patch->sources[0].id);
2881 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) {
2883 patchDesc->mPatch.sources[0].id, patch->sources[0].id);
2904 patch->sources[0].sample_rate,
2906 patch->sources[0].format,
2908 patch->sources[0].channel_mask,
2937 } else if (patch->sources[0].type == AUDIO_PORT_TYPE_DEVICE) {
2954 mAvailableInputDevices.getDeviceFromId(patch->sources[0].id);
2992 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) {
2997 mAvailableInputDevices.getDeviceFromId(patch->sources[0].id);
3005 srcDeviceDesc->toAudioPortConfig(&newPatch.sources[0], &patch->sources[0]);
3041 outputDesc->toAudioPortConfig(&newPatch.sources[1], &patch->sources[0]);
3042 newPatch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH;
3103 if (patch->sources[0].type == AUDIO_PORT_TYPE_MIX) {
3104 sp<SwAudioOutputDescriptor> outputDesc = mOutputs.getOutputFromId(patch->sources[0].id);
3106 ALOGV("releaseAudioPatch() output not found for id %d", patch->sources[0].id);
3115 } else if (patch->sources[0].type == AUDIO_PORT_TYPE_DEVICE) {
3404 // create a special patch with no sink and two sources:
3411 srcDeviceDesc->toAudioPortConfig(&patch->sources[0], NULL);
3412 outputDesc->toAudioPortConfig(&patch->sources[1], NULL);
3413 patch->sources[1].ext.mix.usecase.stream = stream;
5116 outputDesc->toAudioPortConfig(&patch.sources[0]);
5226 deviceList.itemAt(0)->toAudioPortConfig(&patch.sources[0]);
5755 const struct audio_port_config *source = &patchDesc->mPatch.sources[j];