Home
last modified time | relevance | path

Searched refs:oldPatch (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/audioflinger/
DPatchPanel.h110 const struct audio_patch &newPatch, const struct audio_patch &oldPatch) const { in patchesHaveSameRoute() argument
112 oldPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE && in patchesHaveSameRoute()
113 newPatch.sources[0].id == oldPatch.sources[0].id && in patchesHaveSameRoute()
115 oldPatch.sinks[0].type == AUDIO_PORT_TYPE_MIX && in patchesHaveSameRoute()
116 newPatch.sinks[0].ext.mix.handle == oldPatch.sinks[0].ext.mix.handle) || in patchesHaveSameRoute()
118 oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in patchesHaveSameRoute()
119 newPatch.sinks[0].id == oldPatch.sinks[0].id && in patchesHaveSameRoute()
121 oldPatch.sources[0].type == AUDIO_PORT_TYPE_MIX && in patchesHaveSameRoute()
122 newPatch.sources[0].ext.mix.handle == oldPatch.sources[0].ext.mix.handle); in patchesHaveSameRoute()
DPatchPanel.cpp155 const struct audio_patch &oldPatch = removedPatch.mAudioPatch; in createAudioPatch_l() local
157 if (oldPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch_l()
159 oldPatch.sources[0].ext.device.hw_module != in createAudioPatch_l()
161 hwModule = oldPatch.sources[0].ext.device.hw_module; in createAudioPatch_l()
163 (oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch_l()
165 oldPatch.sinks[0].ext.device.hw_module != in createAudioPatch_l()
172 hwModule = oldPatch.sinks[0].ext.device.hw_module; in createAudioPatch_l()
182 reuseExistingHalPatch = (hwDevice == 0) && patchesHaveSameRoute(*patch, oldPatch); in createAudioPatch_l()