Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:audioflinger

19 #define LOG_TAG "AudioFlinger::PatchPanel"
26 #include "AudioFlinger.h"
48 status_t AudioFlinger::listAudioPorts(unsigned int *num_ports,
59 status_t AudioFlinger::getAudioPort(struct audio_port *port)
70 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch,
81 status_t AudioFlinger::releaseAudioPatch(audio_patch_handle_t handle)
92 status_t AudioFlinger::listAudioPatches(unsigned int *num_patches,
103 status_t AudioFlinger::setAudioPortConfig(const struct audio_port_config *config)
113 AudioFlinger::PatchPanel::PatchPanel(const sp<AudioFlinger>& audioFlinger)
114 : mAudioFlinger(audioFlinger)
118 AudioFlinger::PatchPanel::~PatchPanel()
123 status_t AudioFlinger::PatchPanel::listAudioPorts(unsigned int *num_ports __unused,
131 status_t AudioFlinger::PatchPanel::getAudioPort(struct audio_port *port __unused)
139 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch,
146 sp<AudioFlinger> audioflinger = mAudioFlinger.promote();
147 if (audioflinger == 0) {
182 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule);
188 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index);
233 audioflinger->checkPlaybackThread_l(patch->sources[1].ext.mix.handle);
245 newPatch->mPlaybackThread = audioflinger->openOutput_l(
252 ALOGV("audioflinger->openOutput_l() returned %p",
268 newPatch->mRecordThread = audioflinger->openInput_l(srcModule,
275 ALOGV("audioflinger->openInput_l() returned %p inChannelMask %08x",
288 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
307 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
337 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule);
357 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index);
359 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
396 *handle = audioflinger->nextUniqueId();
408 status_t AudioFlinger::PatchPanel::createPatchConnections(Patch *patch,
501 void AudioFlinger::PatchPanel::clearPatchConnections(Patch *patch)
503 sp<AudioFlinger> audioflinger = mAudioFlinger.promote();
504 if (audioflinger == 0) {
530 audioflinger->closeInputInternal_l(patch->mRecordThread);
540 audioflinger->closeOutputInternal_l(patch->mPlaybackThread);
547 status_t AudioFlinger::PatchPanel::releaseAudioPatch(audio_patch_handle_t handle)
553 sp<AudioFlinger> audioflinger = mAudioFlinger.promote();
554 if (audioflinger == 0) {
574 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule);
587 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index);
590 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
604 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
621 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule);
628 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
635 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index);
655 status_t AudioFlinger::PatchPanel::listAudioPatches(unsigned int *num_patches __unused,
663 status_t AudioFlinger::PatchPanel::setAudioPortConfig(const struct audio_port_config *config)
668 sp<AudioFlinger> audioflinger = mAudioFlinger.promote();
669 if (audioflinger == 0) {
680 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(module);
686 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index);