mirror of
https://github.com/Evolution-X-Devices/device_google_taimen
synced 2026-02-01 03:27:12 +00:00
Some bugs were found late in the release cycle for DR1. It seems safer to simply disable MMAP mode for DR1 and enable it in MR1. Developers can still experiment with MMAP mode by overriding the policy using AAudio_setMmapPolicy(). Bug: 64316921 Bug: 64311216 Bug: 64494572 Test: "adb shell getprop aaudio.mmap_policy" should print 1 Change-Id: Ia8752693f4e58a27dd901148728543c8d0bb8259
132 lines
5.1 KiB
Makefile
132 lines
5.1 KiB
Makefile
#
|
|
# Copyright 2017 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
PRODUCT_AAPT_PREF_CONFIG := 560dpi
|
|
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
|
|
|
|
PRODUCT_HARDWARE := taimen
|
|
|
|
# DEVICE_PACKAGE_OVERLAYS for the device should be before
|
|
# including common overlays since the one listed first
|
|
# takes precedence.
|
|
ifdef DEVICE_PACKAGE_OVERLAYS
|
|
$(warning Overlays defined in '$(DEVICE_PACKAGE_OVERLAYS)' will override '$(PRODUCT_HARDWARE)' overlays)
|
|
endif
|
|
DEVICE_PACKAGE_OVERLAYS += device/google/taimen/overlay
|
|
|
|
# Audio
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
device/google/taimen/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
|
|
|
|
include device/google/wahoo/device.mk
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/init-taimen.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init-$(PRODUCT_HARDWARE).rc \
|
|
device/google/taimen/init.taimen.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).usb.rc
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.sf.lcd_density=560 \
|
|
|
|
# Kernel Modules Config
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg
|
|
|
|
# Logging
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/init.logging.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/nfc/libnfc-nxp.taimen.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
|
|
device/google/taimen/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf
|
|
|
|
# Audio
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil_taimen.xml \
|
|
device/google/taimen/audio_platform_info_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tavil_taimen.xml
|
|
|
|
# Bug 62375603
|
|
PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=3
|
|
PRODUCT_PROPERTY_OVERRIDES += vendor.audio.adm.buffering.ms=3
|
|
PRODUCT_PROPERTY_OVERRIDES += audio_hal.period_multiplier=2
|
|
PRODUCT_PROPERTY_OVERRIDES += af.fast_track_multiplier=1
|
|
|
|
# Pro audio feature
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
|
|
|
|
# Enable AAudio MMAP/NOIRQ data path.
|
|
# 1 is AAUDIO_POLICY_NEVER means only use Legacy path.
|
|
# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path.
|
|
# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path.
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=1
|
|
# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode
|
|
# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode.
|
|
# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode.
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=1
|
|
|
|
# Increase the apparent size of a hardware burst from 1 msec to 2 msec.
|
|
# A "burst" is the number of frames processed at one time.
|
|
# That is an increase from 48 to 96 frames at 48000 Hz.
|
|
# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames.
|
|
# A low number, like 48, might increase power consumption or stress the system.
|
|
PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000
|
|
|
|
# Wifi configuration file
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
|
|
|
|
# touchscreen configuration
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/taimen/touchscreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/touchscreen.idc
|
|
|
|
# Enable modem logging
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.sys.modem.diag.qdb=0\
|
|
persist.sys.modem.diag.mdlog=true \
|
|
ro.radio.log_loc="/data/vendor/modem_dump" \
|
|
ro.radio.log_prefix="modem_log_"
|
|
endif
|
|
|
|
#IMU calibration
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml
|
|
|
|
# Vibrator HAL
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.vibrator.hal.click.duration=10 \
|
|
ro.vibrator.hal.tick.duration=4
|
|
|
|
# HWUI common settings
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.hwui.gradient_cache_size=1 \
|
|
ro.hwui.drop_shadow_cache_size=6 \
|
|
ro.hwui.r_buffer_cache_size=8 \
|
|
ro.hwui.texture_cache_flushrate=0.4 \
|
|
ro.hwui.text_small_cache_width=1024 \
|
|
ro.hwui.text_small_cache_height=1024 \
|
|
ro.hwui.text_large_cache_width=2048 \
|
|
ro.hwui.text_large_cache_height=1024 \
|
|
ro.hwui.texture_cache_size=84 \
|
|
ro.hwui.layer_cache_size=64 \
|
|
ro.hwui.path_cache_size=32
|