diff options
author | Eric Laurent <elaurent@google.com> | 2012-08-28 14:32:21 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-09-07 10:34:46 -0700 |
commit | ed8f62d4faa53bbd53a358c5f494b653a09285e4 (patch) | |
tree | fab09d08af6dc4a54b2e8732491bc12d4796582f /audio/A2dpAudioInterface.cpp | |
parent | 48387b28c87327c6c4d512eabe091c29236d2e70 (diff) | |
download | hardware_libhardware_legacy-ed8f62d4faa53bbd53a358c5f494b653a09285e4.zip hardware_libhardware_legacy-ed8f62d4faa53bbd53a358c5f494b653a09285e4.tar.gz hardware_libhardware_legacy-ed8f62d4faa53bbd53a358c5f494b653a09285e4.tar.bz2 |
audio: new audio devices enums
Changes for new audio devices enums:
- legacy audio HAL wrapper provides conversion between new and
old device enums. It exposes a rev 2.0 audio device API to the
audio framework and allow legacy implementation to use old device enums.
- AudioPolicyManager: use standard enum value for no device (0).
Change-Id: I855d72291d672cdd8a6641bedb228634a54b7d9d
Diffstat (limited to 'audio/A2dpAudioInterface.cpp')
-rw-r--r-- | audio/A2dpAudioInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/A2dpAudioInterface.cpp b/audio/A2dpAudioInterface.cpp index cc435bd..9359ec3 100644 --- a/audio/A2dpAudioInterface.cpp +++ b/audio/A2dpAudioInterface.cpp @@ -63,7 +63,7 @@ status_t A2dpAudioInterface::initCheck() AudioStreamOut* A2dpAudioInterface::openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) { - if (!AudioSystem::isA2dpDevice((AudioSystem::audio_devices)devices)) { + if (!audio_is_a2dp_device(devices)) { ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); } @@ -398,7 +398,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::setParameters(const String8& ke } key = AudioParameter::keyRouting; if (param.getInt(key, device) == NO_ERROR) { - if (AudioSystem::isA2dpDevice((AudioSystem::audio_devices)device)) { + if (audio_is_a2dp_device(device)) { mDevice = device; status = NO_ERROR; } else { |