From c8101f5b14e745b348592c5609e55f121a11a6bf Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 24 Aug 2012 11:45:04 -0700 Subject: Update AudioPolicyManagerBase to only use audio_devices_t The AudioPolicyManagerBase implementation was using some device enum values from AudioSystemLegacy.h, of type audio_devices, and some from /system/audio.h, of type audio_devices_t. Now only uses audio_devices_t, and associated functions to inspect what audio device type they correspond to. Added #define to represent "no audio device" to clarify code. Removed unused variable in AudioPolicyManagerBase::startOutput() Change-Id: Ibec311dac550d6a806397377206a43bc708914c0 --- include/hardware_legacy/AudioSystemLegacy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hardware_legacy/AudioSystemLegacy.h') diff --git a/include/hardware_legacy/AudioSystemLegacy.h b/include/hardware_legacy/AudioSystemLegacy.h index a40622a..93e0462 100644 --- a/include/hardware_legacy/AudioSystemLegacy.h +++ b/include/hardware_legacy/AudioSystemLegacy.h @@ -226,6 +226,8 @@ public: TX_DISABLE = 0 }; + // DO NOT USE: the "audio_devices" enumeration below is obsolete, use type "audio_devices_t" and + // audio device enumeration from system/audio.h instead. enum audio_devices { // output devices DEVICE_OUT_EARPIECE = 0x1, -- cgit v1.2.3