• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_gcc, $(TARGET_PRODUCT)))
83# if TARGET_PRODUCT == *_gcc
84BOARD_VENDOR_KERNEL_MODULES += \
85    device/google/wahoo-kernel/gcc/synaptics_dsx_core_htc.ko \
86    device/google/wahoo-kernel/gcc/synaptics_dsx_rmi_dev_htc.ko \
87    device/google/wahoo-kernel/gcc/synaptics_dsx_fw_update_htc.ko \
88    device/google/wahoo-kernel/gcc/htc_battery.ko \
89    device/google/wahoo-kernel/gcc/wlan.ko
90else ifeq (,$(filter-out walleye_kasan, $(TARGET_PRODUCT)))
91# if TARGET_PRODUCT == *_kasan
92BOARD_VENDOR_KERNEL_MODULES += \
93    device/google/wahoo-kernel/kasan/synaptics_dsx_core_htc.ko \
94    device/google/wahoo-kernel/kasan/synaptics_dsx_rmi_dev_htc.ko \
95    device/google/wahoo-kernel/kasan/synaptics_dsx_fw_update_htc.ko \
96    device/google/wahoo-kernel/kasan/htc_battery.ko \
97    device/google/wahoo-kernel/kasan/wlan.ko
98else ifeq (,$(filter-out walleye_kcfi, $(TARGET_PRODUCT)))
99# if TARGET_PRODUCT == *_kcfi
100BOARD_VENDOR_KERNEL_MODULES += \
101    device/google/wahoo-kernel/kcfi/synaptics_dsx_core_htc.ko \
102    device/google/wahoo-kernel/kcfi/synaptics_dsx_rmi_dev_htc.ko \
103    device/google/wahoo-kernel/kcfi/synaptics_dsx_fw_update_htc.ko \
104    device/google/wahoo-kernel/kcfi/htc_battery.ko \
105    device/google/wahoo-kernel/kcfi/wlan.ko
106else ifeq (,$(filter-out walleye_kernel_debug_memory, $(TARGET_PRODUCT)))
107# if TARGET == walleye_kernel_debug_memory
108BOARD_VENDOR_KERNEL_MODULES += \
109    device/google/wahoo-kernel/debug_memory/synaptics_dsx_core_htc.ko \
110    device/google/wahoo-kernel/debug_memory/synaptics_dsx_rmi_dev_htc.ko \
111    device/google/wahoo-kernel/debug_memory/synaptics_dsx_fw_update_htc.ko \
112    device/google/wahoo-kernel/debug_memory/htc_battery.ko \
113    device/google/wahoo-kernel/debug_memory/wlan.ko
114else ifeq (,$(filter-out walleye_kernel_debug_locking, $(TARGET_PRODUCT)))
115# if TARGET == walleye_kernel_debug_locking
116BOARD_VENDOR_KERNEL_MODULES += \
117    device/google/wahoo-kernel/debug_locking/synaptics_dsx_core_htc.ko \
118    device/google/wahoo-kernel/debug_locking/synaptics_dsx_rmi_dev_htc.ko \
119    device/google/wahoo-kernel/debug_locking/synaptics_dsx_fw_update_htc.ko \
120    device/google/wahoo-kernel/debug_locking/htc_battery.ko \
121    device/google/wahoo-kernel/debug_locking/wlan.ko
122else ifeq (,$(filter-out walleye_kernel_debug_hang, $(TARGET_PRODUCT)))
123# if TARGET == walleye_kernel_debug_hang
124BOARD_VENDOR_KERNEL_MODULES += \
125    device/google/wahoo-kernel/debug_hang/synaptics_dsx_core_htc.ko \
126    device/google/wahoo-kernel/debug_hang/synaptics_dsx_rmi_dev_htc.ko \
127    device/google/wahoo-kernel/debug_hang/synaptics_dsx_fw_update_htc.ko \
128    device/google/wahoo-kernel/debug_hang/htc_battery.ko \
129    device/google/wahoo-kernel/debug_hang/wlan.ko
130else ifeq (,$(filter-out walleye_kernel_debug_api, $(TARGET_PRODUCT)))
131# if TARGET == walleye_kernel_debug_api
132BOARD_VENDOR_KERNEL_MODULES += \
133    device/google/wahoo-kernel/debug_api/synaptics_dsx_core_htc.ko \
134    device/google/wahoo-kernel/debug_api/synaptics_dsx_rmi_dev_htc.ko \
135    device/google/wahoo-kernel/debug_api/synaptics_dsx_fw_update_htc.ko \
136    device/google/wahoo-kernel/debug_api/htc_battery.ko \
137    device/google/wahoo-kernel/debug_api/wlan.ko
138else
139BOARD_VENDOR_KERNEL_MODULES += \
140    device/google/wahoo-kernel/synaptics_dsx_core_htc.ko \
141    device/google/wahoo-kernel/synaptics_dsx_rmi_dev_htc.ko \
142    device/google/wahoo-kernel/synaptics_dsx_fw_update_htc.ko \
143    device/google/wahoo-kernel/htc_battery.ko \
144    device/google/wahoo-kernel/wlan.ko
145endif
146
147PRODUCT_COPY_FILES += \
148    device/google/muskie/nfc/libnfc-nxp.muskie.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
149
150PRODUCT_COPY_FILES += \
151    device/google/muskie/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
152    device/google/muskie/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf
153
154# Wifi configuration file
155PRODUCT_COPY_FILES += \
156    device/google/muskie/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
157
158#IMU calibration
159PRODUCT_PROPERTY_OVERRIDES += \
160  persist.config.calibration_fac=/persist/sensors/calibration/calibration.xml
161
162# NFC/camera interaction workaround - DO NOT COPY TO NEW DEVICES
163PRODUCT_PROPERTY_OVERRIDES += \
164    ro.camera.notify_nfc=1
165