From a6e58caf83203792a5c4d1a722e39d1a85a88bd9 Mon Sep 17 00:00:00 2001 From: Valera Date: Tue, 23 Feb 2016 17:19:54 +0300 Subject: [PATCH] Update config --- BoardConfig.mk | 23 +++----- include/sound/msmcal-hwdep.h | 41 ++++++++++++++ .../base/core/res/res/values/config.xml | 56 +++++++++---------- .../base/core/res/res/xml/power_profile.xml | 39 ++++++------- system.prop | 18 ++++++ 5 files changed, 109 insertions(+), 68 deletions(-) create mode 100755 include/sound/msmcal-hwdep.h diff --git a/BoardConfig.mk b/BoardConfig.mk index 30d2522..972d746 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -44,15 +44,10 @@ TARGET_KERNEL_CONFIG := msm8974_sec_defconfig TARGET_KERNEL_VARIANT_CONFIG := msm8974_sec_viennalteeur_cm_defconfig # Audio -BOARD_HAVE_NEW_QCOM_CSDCLIENT := true -BOARD_HAVE_SAMSUNG_AUDIO := true -BOARD_USES_FLUENCE_INCALL := true -BOARD_USES_FLUENCE_FOR_VOIP := true -BOARD_USES_SEPERATED_AUDIO_INPUT := true -AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS := true -AUDIO_FEATURE_DISABLED_FM := true -AUDIO_FEATURE_DISABLED_ANC_HEADSET := true -USE_CUSTOM_AUDIO_POLICY := 1 +QCOM_CSDCLIENT_ENABLED := false +AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true +AUDIO_FEATURE_ENABLED_HWDEP_CAL := true +AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true # Camera TARGET_PROVIDES_CAMERA_HAL := true @@ -61,13 +56,8 @@ USE_DEVICE_SPECIFIC_CAMERA := true # Charger BOARD_CHARGER_SHOW_PERCENTAGE := true -# GPS -TARGET_NO_RPC := true -TARGET_GPS_HAL_PATH := device/samsung/viennalte/gps - # Graphics TARGET_HAVE_NEW_GRALLOC := true -BOARD_USES_LEGACY_MMAP := true # Hardware BOARD_HARDWARE_CLASS += device/samsung/viennalte/cmhw @@ -81,6 +71,9 @@ BOARD_BLUEDROID_VENDOR_CONF := device/samsung/viennalte/bluetooth/vnd_viennalte. BOARD_BLUETOOTH_USES_HCIATTACH_PROPERTY := false BOARD_HAVE_BLUETOOTH_BCM := true +# ANT+ +BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease" + # Partitions BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488 @@ -129,3 +122,5 @@ BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" +WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" +WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" diff --git a/include/sound/msmcal-hwdep.h b/include/sound/msmcal-hwdep.h new file mode 100755 index 0000000..625e735 --- /dev/null +++ b/include/sound/msmcal-hwdep.h @@ -0,0 +1,41 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _CALIB_HWDEP_H +#define _CALIB_HWDEP_H +#define WCD9XXX_CODEC_HWDEP_NODE 1000 +enum wcd_cal_type { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + WCD9XXX_MIN_CAL, + WCD9XXX_ANC_CAL = WCD9XXX_MIN_CAL, + WCD9XXX_MAD_CAL, + WCD9XXX_MBHC_CAL, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + WCD9XXX_MAX_CAL, +}; +struct wcdcal_ioctl_buffer { + __u32 size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +// __u8 __user *buffer; + void *buffer; + enum wcd_cal_type cal_type; +}; +#define SNDRV_CTL_IOCTL_HWDEP_CAL_TYPE _IOW('U', 0x1, struct wcdcal_ioctl_buffer) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif + diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index dc8fae6..916ebbd 100755 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -166,38 +166,38 @@ 0 - 31 - 50 - 51 + 1 + 20 + 21 0 - 40 - 50 - 60 + 10 + 20 + 30 - 50 + 10 0 - 31 - 50 - 51 + 1 + 20 + 21 0 - 31 - 50 - 51 + 1 + 20 + 21 500 600 @@ -205,9 +205,9 @@ 0 - 45 - 40 - 40 + 15 + 10 + 10 true - - 19dip -