aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2013-07-23 15:22:25 -0400
committersbrissen <sbrissen@hotmail.com>2013-07-23 15:22:25 -0400
commit607cb13514ee2f5c086de10882bfe821837c5508 (patch)
treeb86d0d1ccd73460390c1fc0f448b5bcb582169fa
parent66e3b53dd655e6a3fba5ab4c5d903e5d9955f5ea (diff)
downloaddevice_samsung_n5110-607cb13514ee2f5c086de10882bfe821837c5508.zip
device_samsung_n5110-607cb13514ee2f5c086de10882bfe821837c5508.tar.gz
device_samsung_n5110-607cb13514ee2f5c086de10882bfe821837c5508.tar.bz2
fix CABC and remove custom audio_policy.conf
-rw-r--r--configs/audio_policy.conf82
-rw-r--r--overlay/device/samsung/smdk4412-common/DeviceSettings/res/values/config.xml5
-rw-r--r--rootdir/init.smdk4x12.rc1
3 files changed, 5 insertions, 83 deletions
diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf
deleted file mode 100644
index 3a0a14c..0000000
--- a/configs/audio_policy.conf
+++ /dev/null
@@ -1,82 +0,0 @@
-# Global configuration section: lists input and output devices always present on the device
-# as well as the output device selected by default.
-# Devices are designated by a string that corresponds to the enum in audio.h
-
-global_configuration {
- attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
- default_output_device AUDIO_DEVICE_OUT_SPEAKER
- attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC
-}
-
-# audio hardware module section: contains descriptors for all audio hw modules present on the
-# device. Each hw module node is named after the corresponding hw module library base name.
-# For instance, "primary" corresponds to audio.primary.<device>.so.
-# The "primary" module is mandatory and must include at least one output with
-# AUDIO_OUTPUT_FLAG_PRIMARY flag.
-# Each module descriptor contains one or more output profile descriptors and zero or more
-# input profile descriptors. Each profile lists all the parameters supported by a given output
-# or input stream category.
-# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
-# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
-
-audio_hw_modules {
- primary {
- outputs {
- primary {
- sampling_rates 44100|48000
- channel_masks AUDIO_CHANNEL_OUT_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
- flags AUDIO_OUTPUT_FLAG_PRIMARY
- }
- deep_buffer {
- sampling_rates 44100
- channel_masks AUDIO_CHANNEL_OUT_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
- flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
- }
- hdmi {
- sampling_rates 44100|48000
- channel_masks dynamic
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_AUX_DIGITAL
- flags AUDIO_OUTPUT_FLAG_DIRECT
- }
- }
- inputs {
- primary {
- sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
- channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
- }
- }
- }
- a2dp {
- outputs {
- a2dp {
- sampling_rates 44100
- channel_masks AUDIO_CHANNEL_OUT_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_ALL_A2DP
- }
- }
- }
- usb {
- outputs {
- usb_accessory {
- sampling_rates 44100
- channel_masks AUDIO_CHANNEL_OUT_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_USB_ACCESSORY
- }
- usb_device {
- sampling_rates 44100
- channel_masks AUDIO_CHANNEL_OUT_STEREO
- formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_OUT_USB_DEVICE
- }
- }
- }
-}
diff --git a/overlay/device/samsung/smdk4412-common/DeviceSettings/res/values/config.xml b/overlay/device/samsung/smdk4412-common/DeviceSettings/res/values/config.xml
index 1da977a..d2d49a6 100644
--- a/overlay/device/samsung/smdk4412-common/DeviceSettings/res/values/config.xml
+++ b/overlay/device/samsung/smdk4412-common/DeviceSettings/res/values/config.xml
@@ -23,6 +23,9 @@
<!-- Audio Tuning -->
<bool name="has_incall_audio_tuning">false</bool>
- <bool name="has_output_audio_tuning">true</bool>
+ <bool name="has_output_audio_tuning">false</bool>
+
+ <!-- MDNIE -->
+ <string name="mdnie_cabc_sysfs_file" translatable="false">"/sys/class/mdnie/mdnie/cabc"</string>
</resources>
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc
index f549179..dc5fd02 100644
--- a/rootdir/init.smdk4x12.rc
+++ b/rootdir/init.smdk4x12.rc
@@ -147,6 +147,7 @@ on post-fs-data
chown system system /sys/class/mdnie/mdnie/negative
chown system system /sys/class/mdnie/mdnie/ebook
chown system system /sys/class/mdnie/mdnie/accessibility
+ chown system system /sys/class/mdnie/mdnie/cabc
write /sys/class/mdnie/mdnie/scenario 0
write /sys/class/mdnie/mdnie/mode 0