diff --git a/audio/audio_output_policy.conf b/audio/audio_output_policy.conf deleted file mode 100644 index d983d9a..0000000 --- a/audio/audio_output_policy.conf +++ /dev/null @@ -1,56 +0,0 @@ -# List of profiles for the output device session where stream is routed. -# A stream opened with the inputs attributes which match the "flags" and -# "formats" as specified in the profile is routed to a device at -# sample rate specified under "sampling_rates" and bit width under -# "bit_width" and the topology extracted from the acdb data against -# the "app_type". -# -# the flags and formats are specified using the strings corresponding to -# enums in audio.h and audio_policy.h. They are concatenated with "|" -# without space or "\n". -# the flags and formats should match the ones in "audio_policy.conf" - -outputs { - default { - flags AUDIO_OUTPUT_FLAG_PRIMARY - formats AUDIO_FORMAT_PCM_16_BIT - sampling_rates 48000 - bit_width 16 - app_type 69937 - } - deep_buffer { - flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER - formats AUDIO_FORMAT_PCM_16_BIT - sampling_rates 48000 - bit_width 16 - app_type 69936 - } - direct_pcm_16 { - flags AUDIO_OUTPUT_FLAG_DIRECT - formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT - sampling_rates 44100|48000|96000|192000 - bit_width 16 - app_type 69936 - } - direct_pcm_24 { - flags AUDIO_OUTPUT_FLAG_DIRECT - formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT - sampling_rates 44100|48000|96000|192000 - bit_width 24 - app_type 69940 - } - compress_offload_16 { - flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING - formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2 - sampling_rates 44100|48000|96000|192000 - bit_width 16 - app_type 69936 - } - compress_offload_24 { - flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING - formats AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS - sampling_rates 44100|48000|96000|192000 - bit_width 24 - app_type 69940 - } -} diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml index 3da8ae8..75ab928 100644 --- a/audio/audio_platform_info.xml +++ b/audio/audio_platform_info.xml @@ -58,14 +58,6 @@ - - - - - - - - diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 2078305..5deb8a1 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -1,61 +1,44 @@ + + - - + + - - + - Earpiece Speaker + Earpiece Telephony Tx + FM Tuner Built-In Mic Built-In Back Mic Telephony Rx - FM tuner Speaker - + - - - - - + samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> @@ -63,13 +46,13 @@ samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> - + + + samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_MONO"/> - + + + + - + + - + + - + + - + + + + + + + + + - + + + + + + + - - + - + sources="primary output,deep_buffer"/> + sources="primary output,deep_buffer,compressed_offload"/> - - + sources="primary output,deep_buffer,compressed_offload"/> + + - + sources="primary output,deep_buffer"/> + + + + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner"/> + + - + - + - + - - - - - - + + + diff --git a/audio/mixer_paths.xml b/audio/mixer_paths.xml index cafd42e..e10c444 100644 --- a/audio/mixer_paths.xml +++ b/audio/mixer_paths.xml @@ -434,168 +434,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/device.mk b/device.mk index 01226ca..91481df 100644 --- a/device.mk +++ b/device.mk @@ -84,7 +84,6 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ - $(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_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ diff --git a/vendor_prop.mk b/vendor_prop.mk index aebdc29..e958597 100644 --- a/vendor_prop.mk +++ b/vendor_prop.mk @@ -95,7 +95,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.cne.feature=1 \ persist.cne.logging.qxdm=3974 \ persist.cne.rat.wlan.chip.oem=WCN \ - persist.vendor.dpm.feature=0 \ + persist.dpm.feature=0 \ persist.sys.cnd.iwlan=1 #property to enable fingerprint