diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-11-17 16:44:11 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-11-17 16:44:11 +0700 |
commit | e1fc0a535cb10642de6692a8149518ba1b8888a3 (patch) | |
tree | f6bbf4e12571bfe3b1c02f4e4d93816c95b796a1 /libaudio | |
parent | 39d269d5766edb76fb1d57f10d2910701575a2b2 (diff) | |
download | device_samsung_aries-common-e1fc0a535cb10642de6692a8149518ba1b8888a3.zip device_samsung_aries-common-e1fc0a535cb10642de6692a8149518ba1b8888a3.tar.gz device_samsung_aries-common-e1fc0a535cb10642de6692a8149518ba1b8888a3.tar.bz2 |
Fix libaudio
Diffstat (limited to 'libaudio')
-rw-r--r-- | libaudio/Android.mk | 28 | ||||
-rw-r--r-- | libaudio/AudioHardware.cpp | 4 | ||||
-rw-r--r-- | libaudio/AudioHardware.h | 10 | ||||
-rw-r--r-- | libaudio/AudioPolicyManager.cpp | 4 | ||||
-rw-r--r-- | libaudio/AudioPolicyManager.h | 2 |
5 files changed, 31 insertions, 17 deletions
diff --git a/libaudio/Android.mk b/libaudio/Android.mk index 72a0872..4af67bb 100644 --- a/libaudio/Android.mk +++ b/libaudio/Android.mk @@ -25,16 +25,21 @@ include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) LOCAL_SRC_FILES:= AudioHardware.cpp alsa_mixer.c alsa_pcm.c -LOCAL_MODULE:= libaudio -LOCAL_STATIC_LIBRARIES:= libaudiointerface +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw +LOCAL_MODULE:= audio.primary.aries +LOCAL_MODULE_TAGS := optional +LOCAL_STATIC_LIBRARIES := libmedia_helper +LOCAL_WHOLE_STATIC_LIBRARIES := libaudiohw_legacy LOCAL_SHARED_LIBRARIES:= libc libcutils libutils libmedia libhardware_legacy -ifeq ($(BOARD_HAVE_BLUETOOTH),true) - LOCAL_SHARED_LIBRARIES += liba2dp -endif +# TODO: Fix A2DP +#ifeq ($(BOARD_HAVE_BLUETOOTH),true) +# LOCAL_SHARED_LIBRARIES += liba2dp +#endif -ifeq ($(BOARD_HAVE_FM_RADIO),true) - LOCAL_CFLAGS += -DHAVE_FM_RADIO -endif +# TODO: Fix FM +#ifeq ($(BOARD_HAVE_FM_RADIO),true) +# LOCAL_CFLAGS += -DHAVE_FM_RADIO +#endif ifeq ($(TARGET_SIMULATOR),true) LOCAL_LDLIBS += -ldl @@ -46,8 +51,11 @@ include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_SRC_FILES:= AudioPolicyManager.cpp -LOCAL_MODULE:= libaudiopolicy -LOCAL_STATIC_LIBRARIES:= libaudiopolicybase +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw +LOCAL_MODULE:= audio_policy.aries +LOCAL_MODULE_TAGS := optional +LOCAL_STATIC_LIBRARIES := libmedia_helper +LOCAL_WHOLE_STATIC_LIBRARIES:= libaudiopolicy_legacy LOCAL_SHARED_LIBRARIES:= libc libcutils libutils libmedia ifeq ($(BOARD_HAVE_BLUETOOTH),true) LOCAL_CFLAGS += -DWITH_A2DP diff --git a/libaudio/AudioHardware.cpp b/libaudio/AudioHardware.cpp index 3e28448..5d3f43a 100644 --- a/libaudio/AudioHardware.cpp +++ b/libaudio/AudioHardware.cpp @@ -45,7 +45,7 @@ extern "C" { #define Si4709_IOC_VOLUME_SET _IOW(Si4709_IOC_MAGIC, 15, __u8) #endif -namespace android { +namespace android_audio_legacy { const uint32_t AudioHardware::inputSamplingRates[] = { 8000, 11025, 16000, 22050, 44100 @@ -2307,4 +2307,4 @@ extern "C" AudioHardwareInterface* createAudioHardware(void) { return new AudioHardware(); } -}; // namespace android +}; // namespace android_audio_legacy diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index 8a781bf..69bc2b4 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -34,7 +34,9 @@ extern "C" { struct mixer_ctl; }; -namespace android { +namespace android_audio_legacy { + +using namespace android; // TODO: determine actual audio DSP and hardware latency // Additionnal latency introduced by audio DSP and hardware in ms @@ -348,6 +350,10 @@ private: virtual status_t getNextBuffer(BufferProvider::Buffer* buffer); virtual void releaseBuffer(BufferProvider::Buffer* buffer); + // Stubs (ICS) + virtual status_t addAudioEffect(effect_handle_t effect) { return INVALID_OPERATION; } + virtual status_t removeAudioEffect(effect_handle_t effect) { return INVALID_OPERATION; } + int prepareLock(); void lock(); void unlock(); @@ -377,6 +383,6 @@ private: }; -}; // namespace android +}; // namespace android_audio_legacy #endif diff --git a/libaudio/AudioPolicyManager.cpp b/libaudio/AudioPolicyManager.cpp index c53d1e9..4572729 100644 --- a/libaudio/AudioPolicyManager.cpp +++ b/libaudio/AudioPolicyManager.cpp @@ -20,7 +20,7 @@ #include "AudioPolicyManager.h" #include <media/mediarecorder.h> -namespace android { +namespace android_audio_legacy { @@ -43,4 +43,4 @@ extern "C" void destroyAudioPolicyManager(AudioPolicyInterface *interface) } -}; // namespace android +}; // namespace android_audio_legacy diff --git a/libaudio/AudioPolicyManager.h b/libaudio/AudioPolicyManager.h index 03141e5..d660e78 100644 --- a/libaudio/AudioPolicyManager.h +++ b/libaudio/AudioPolicyManager.h @@ -23,7 +23,7 @@ #include <hardware_legacy/AudioPolicyManagerBase.h> -namespace android { +namespace android_audio_legacy { class AudioPolicyManager: public AudioPolicyManagerBase { |