diff --git a/audio/audio/audio_policy_configuration.xml b/audio/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..f1f7ef6 --- /dev/null +++ b/audio/audio/audio_policy_configuration.xml @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + Earpiece + Speaker + + Built-In Mic + Built-In Back Mic + FM Tuner + + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml index 395a126..203b3dc 100644 --- a/audio/audio_platform_info.xml +++ b/audio/audio_platform_info.xml @@ -47,7 +47,6 @@ - diff --git a/audio/audio_platform_info_diff.xml b/audio/audio_platform_info_diff.xml index 0276541..fe60775 100644 --- a/audio/audio_platform_info_diff.xml +++ b/audio/audio_platform_info_diff.xml @@ -27,6 +27,7 @@ + diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 9b0234b..8d12a8b 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -49,22 +49,14 @@ - Earpiece Speaker - Telephony Tx Built-In Mic Built-In Back Mic - FM Tuner - Telephony Rx Speaker - - - - + @@ -73,32 +65,11 @@ - - - - - - - - @@ -108,15 +79,6 @@ - - - @@ -129,48 +91,25 @@ + samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> - - - - - + - - - - - - - - + samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> - - + @@ -182,10 +121,6 @@ - - - @@ -198,27 +133,6 @@ - - - - - - - - - - - - - - - - - - - - - - + sources="primary output,deep_buffer,BT SCO Headset Mic"/> + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> - - - - - - + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> - - - + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic"/> - + - + - + - - + + diff --git a/gts3l.mk b/gts3l.mk index a3b7eab..de49a33 100755 --- a/gts3l.mk +++ b/gts3l.mk @@ -106,13 +106,14 @@ PRODUCT_PACKAGES += \ libaudioprimary_shim PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(LOCAL_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ $(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ $(LOCAL_PATH)/audio/audio_platform_info_diff.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_diff.xml \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ - $(LOCAL_PATH)/audio/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \ + $(LOCAL_PATH)/audio/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \