From 899b01eea912bae4d31ae9d0181018de41990f61 Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Wed, 15 Apr 2015 22:56:51 -0700 Subject: shinano-common: Stop using prebuilt audio * Add custom audio backends using audio_platform_info * Match stock devices and ACDB IDs * Specify MULTISESSION_VOICE for calls * Specify LOW_LATENCY as primary output Change-Id: I9d6927ab98c70ab71a181c656253f64491219470 --- BoardConfigCommon.mk | 4 +++ audio/audio_platform_info.xml | 71 +++++++++++++++++++++++++++++++++++++++++++ proprietary-files.txt | 1 - shinano.mk | 4 +++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 audio/audio_platform_info.xml diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 044cd50..3d34cc6 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -31,6 +31,10 @@ TARGET_DTB_EXTRA_FLAGS := --force-v2 # ANT+ BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease" +# Audio +AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true +AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true + # Bluetooth BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml new file mode 100644 index 0000000..52e7b2c --- /dev/null +++ b/audio/audio_platform_info.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary-files.txt b/proprietary-files.txt index e3cf067..6babb3b 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,5 +1,4 @@ # Audio -lib/hw/audio.primary.msm8974.so vendor/lib/libacdbloader.so vendor/lib/libacdbrtac.so vendor/lib/libadiertac.so diff --git a/shinano.mk b/shinano.mk index d12beaa..ea3d017 100644 --- a/shinano.mk +++ b/shinano.mk @@ -58,6 +58,10 @@ PRODUCT_PACKAGES += \ com.dsi.ant.antradio_library \ libantradio +# Audio +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml + # Bluetooth PRODUCT_COPY_FILES += \ $(COMMON_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf -- cgit v1.2.3