diff options
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 { |