1# 2# Copyright (C) 2017 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := device/google/muskie 18 19# Audio XMLs 20PRODUCT_COPY_FILES += \ 21 $(LOCAL_PATH)/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml \ 22 $(LOCAL_PATH)/audio_platform_info_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tavil.xml \ 23 $(LOCAL_PATH)/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml 24 25# Bug 62375603 26PRODUCT_PROPERTY_OVERRIDES += audio.adm.buffering.ms=3 27PRODUCT_PROPERTY_OVERRIDES += vendor.audio.adm.buffering.ms=3 28PRODUCT_PROPERTY_OVERRIDES += audio_hal.period_multiplier=2 29PRODUCT_PROPERTY_OVERRIDES += af.fast_track_multiplier=1 30 31# Whether by default, the eSIM system UI, including that in SUW and Settings, will be shown. 32PRODUCT_SYSTEM_DEFAULT_PROPERTIES += esim.enable_esim_system_ui_by_default=false 33 34# Pro audio feature 35PRODUCT_COPY_FILES += \ 36 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml 37 38# Enable AAudio MMAP/NOIRQ data path. 39# 1 is AAUDIO_POLICY_NEVER means only use Legacy path. 40# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path. 41# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path. 42PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2 43# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode 44# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode. 45# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode. 46PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2 47 48# Increase the apparent size of a hardware burst from 1 msec to 2 msec. 49# A "burst" is the number of frames processed at one time. 50# That is an increase from 48 to 96 frames at 48000 Hz. 51# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames. 52# A low number, like 48, might increase power consumption or stress the system. 53PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 54 55# Enable SM log mechanism by default 56ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 57PRODUCT_PROPERTY_OVERRIDES += \ 58 persist.radio.smlog_switch=1 \ 59 ro.radio.log_prefix="modem_log_" \ 60 ro.radio.log_loc="/data/vendor/modem_dump" 61 62PRODUCT_COPY_FILES += \ 63 $(LOCAL_PATH)/init.logging.userdebug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc 64else 65PRODUCT_COPY_FILES += \ 66 $(LOCAL_PATH)/init.logging.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).logging.rc 67endif 68 69PRODUCT_COPY_FILES += \ 70 $(LOCAL_PATH)/init-common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init-$(PRODUCT_HARDWARE).rc \ 71 $(LOCAL_PATH)/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).usb.rc \ 72 $(LOCAL_PATH)/init.insmod.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.cfg \ 73 $(LOCAL_PATH)/init.insmod_charger.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod_charger.cfg 74 75# Input device files 76PRODUCT_COPY_FILES += \ 77 $(LOCAL_PATH)/synaptics_dsxv26.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/synaptics_dsxv26.idc 78 79include device/google/wahoo/device.mk 80 81# Kernel modules 82ifeq (,$(filter-out walleye_kasan, $(TARGET_PRODUCT))) 83# if TARGET_PRODUCT == *_kasan 84BOARD_VENDOR_KERNEL_MODULES += \ 85 device/google/wahoo-kernel/kasan/synaptics_dsx_core_htc.ko \ 86 device/google/wahoo-kernel/kasan/synaptics_dsx_rmi_dev_htc.ko \ 87 device/google/wahoo-kernel/kasan/synaptics_dsx_fw_update_htc.ko \ 88 device/google/wahoo-kernel/kasan/htc_battery.ko \ 89 device/google/wahoo-kernel/kasan/wlan.ko 90else ifeq (,$(filter-out walleye_kernel_debug_memory, $(TARGET_PRODUCT))) 91# if TARGET == walleye_kernel_debug_memory 92BOARD_VENDOR_KERNEL_MODULES += \ 93 device/google/wahoo-kernel/debug_memory/synaptics_dsx_core_htc.ko \ 94 device/google/wahoo-kernel/debug_memory/synaptics_dsx_rmi_dev_htc.ko \ 95 device/google/wahoo-kernel/debug_memory/synaptics_dsx_fw_update_htc.ko \ 96 device/google/wahoo-kernel/debug_memory/htc_battery.ko \ 97 device/google/wahoo-kernel/debug_memory/wlan.ko 98else ifeq (,$(filter-out walleye_kernel_debug_locking, $(TARGET_PRODUCT))) 99# if TARGET == walleye_kernel_debug_locking 100BOARD_VENDOR_KERNEL_MODULES += \ 101 device/google/wahoo-kernel/debug_locking/synaptics_dsx_core_htc.ko \ 102 device/google/wahoo-kernel/debug_locking/synaptics_dsx_rmi_dev_htc.ko \ 103 device/google/wahoo-kernel/debug_locking/synaptics_dsx_fw_update_htc.ko \ 104 device/google/wahoo-kernel/debug_locking/htc_battery.ko \ 105 device/google/wahoo-kernel/debug_locking/wlan.ko 106else ifeq (,$(filter-out walleye_kernel_debug_hang, $(TARGET_PRODUCT))) 107# if TARGET == walleye_kernel_debug_hang 108BOARD_VENDOR_KERNEL_MODULES += \ 109 device/google/wahoo-kernel/debug_hang/synaptics_dsx_core_htc.ko \ 110 device/google/wahoo-kernel/debug_hang/synaptics_dsx_rmi_dev_htc.ko \ 111 device/google/wahoo-kernel/debug_hang/synaptics_dsx_fw_update_htc.ko \ 112 device/google/wahoo-kernel/debug_hang/htc_battery.ko \ 113 device/google/wahoo-kernel/debug_hang/wlan.ko 114else ifeq (,$(filter-out walleye_kernel_debug_api, $(TARGET_PRODUCT))) 115# if TARGET == walleye_kernel_debug_api 116BOARD_VENDOR_KERNEL_MODULES += \ 117 device/google/wahoo-kernel/debug_api/synaptics_dsx_core_htc.ko \ 118 device/google/wahoo-kernel/debug_api/synaptics_dsx_rmi_dev_htc.ko \ 119 device/google/wahoo-kernel/debug_api/synaptics_dsx_fw_update_htc.ko \ 120 device/google/wahoo-kernel/debug_api/htc_battery.ko \ 121 device/google/wahoo-kernel/debug_api/wlan.ko 122else ifneq (,$(TARGET_PREBUILT_KERNEL)) 123 # If TARGET_PREBUILT_KERNEL is set, check whether there are modules packaged with that kernel 124 # image. If so, use them, otherwise fall back to the default directory. 125 TARGET_PREBUILT_KERNEL_PREBUILT_VENDOR_KERNEL_MODULES := \ 126 $(wildcard $(dir $(TARGET_PREBUILT_KERNEL))/*.ko) 127 ifneq (,$(TARGET_PREBUILT_KERNEL_PREBUILT_VENDOR_KERNEL_MODULES)) 128 BOARD_VENDOR_KERNEL_MODULES += $(TARGET_PREBUILT_KERNEL_PREBUILT_VENDOR_KERNEL_MODULES) 129 else 130 BOARD_VENDOR_KERNEL_MODULES += $(wildcard device/google/wahoo-kernel/*.ko) 131 endif 132 # Do NOT delete TARGET_PREBUILT..., it will lead to empty BOARD_VENDOR_KERNEL_MODULES. 133else 134BOARD_VENDOR_KERNEL_MODULES += \ 135 device/google/wahoo-kernel/synaptics_dsx_core_htc.ko \ 136 device/google/wahoo-kernel/synaptics_dsx_rmi_dev_htc.ko \ 137 device/google/wahoo-kernel/synaptics_dsx_fw_update_htc.ko \ 138 device/google/wahoo-kernel/htc_battery.ko \ 139 device/google/wahoo-kernel/wlan.ko 140endif 141 142PRODUCT_COPY_FILES += \ 143 device/google/muskie/nfc/libnfc-nxp.muskie.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf 144 145PRODUCT_COPY_FILES += \ 146 device/google/muskie/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \ 147 device/google/muskie/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf 148 149PRODUCT_COPY_FILES += \ 150 device/google/muskie/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 151 152# Wifi configuration file 153PRODUCT_COPY_FILES += \ 154 device/google/muskie/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini 155 156#IMU calibration 157PRODUCT_PROPERTY_OVERRIDES += \ 158 persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml 159 160# NFC/camera interaction workaround - DO NOT COPY TO NEW DEVICES 161PRODUCT_PROPERTY_OVERRIDES += \ 162 ro.camera.notify_nfc=1 163 164PRODUCT_CHECK_ELF_FILES := true 165