diff options
author | AdrianDC <radian.dc@gmail.com> | 2015-11-08 21:07:07 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-20 08:58:05 -0800 |
commit | 75eb7f0605519fc5f59d833823c033e3e2047ca8 (patch) | |
tree | 2087367b6413764c3901e566b6242640bfa0eddd /services/audiopolicy | |
parent | 980a04afdce28a6c6159d31864967ded86815c7b (diff) | |
download | frameworks_av-75eb7f0605519fc5f59d833823c033e3e2047ca8.zip frameworks_av-75eb7f0605519fc5f59d833823c033e3e2047ca8.tar.gz frameworks_av-75eb7f0605519fc5f59d833823c033e3e2047ca8.tar.bz2 |
audiopolicy: Remove unused variables with LEGACY_ALSA_AUDIO
Change-Id: If037b4eb6bbd864ccab050565899ce508ee90f9e
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Diffstat (limited to 'services/audiopolicy')
-rwxr-xr-x | services/audiopolicy/enginedefault/src/Engine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audiopolicy/enginedefault/src/Engine.cpp b/services/audiopolicy/enginedefault/src/Engine.cpp index 71f6b51..627e1d3 100755 --- a/services/audiopolicy/enginedefault/src/Engine.cpp +++ b/services/audiopolicy/enginedefault/src/Engine.cpp @@ -619,9 +619,11 @@ audio_devices_t Engine::getDeviceForStrategy(routing_strategy strategy) const audio_devices_t Engine::getDeviceForInputSource(audio_source_t inputSource) const { - const DeviceVector &availableOutputDevices = mApmObserver->getAvailableOutputDevices(); const DeviceVector &availableInputDevices = mApmObserver->getAvailableInputDevices(); +#ifndef LEGACY_ALSA_AUDIO + const DeviceVector &availableOutputDevices = mApmObserver->getAvailableOutputDevices(); const SwAudioOutputCollection &outputs = mApmObserver->getOutputs(); +#endif audio_devices_t availableDeviceTypes = availableInputDevices.types() & ~AUDIO_DEVICE_BIT_IN; uint32_t device = AUDIO_DEVICE_NONE; |