nx: Intial rebrand from foster
* This is a tree for all Nintendo Switch variants: `odin`, `modin`, `vali`, and `frig`. * `ro.hardware` will be NX on all variants with `ro.hardware.sku` being set per variant by u-boot. Changes are as follows: * At the moment the packaged DTB is only for `odin`, more to follow. * Note: We may make `modin`, `vail`, and `frig` device-tree-overlays on the `odin` base DTB to simplify things. * Use darcy's thermal config as it's the most lenient, and is a same SoC STB. * Unlike `icosa_sr` previously did, we will use the BCM HAL for BT over BTLinux, as A2DP is tested and verified, no need to deviate. Changes that will require follow-up commits to build out: * Update init to reflect nx's needs - will need more work to support devices other than `odin`. Removals are as follows: * Remove all non-nx device support files. Co-authored-by: Thomas Makin <halorocker89@gmail.com> Co-authored-by: Billy Laws <blaws05@gmail.com> Co-authored-by: Aaron Kling <webgeek1234@gmail.com> Co-authored-by: CTCaer <ctcaer@gmail.com> Co-authored-by: John Smith <nemui3353@gmail.com> Co-authored-by: langerhans <langerhans@users.noreply.github.com> Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com> Change-Id: I9bab4d94c6e94a9c6e2a7cf04d16c4b76c0b6ac5
This commit is contained in:
1 parent
773c8b96c7
commit
c03875880c
81 files changed
+364
-4626
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ifeq ($(TARGET_REFERENCE_DEVICE), foster)
|
||||
ifneq ($(filter $(TARGET_DEVICE), nx),)
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
|
||||
+8
-12
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -15,16 +15,12 @@
|
||||
#
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/full_foster.mk \
|
||||
$(LOCAL_DIR)/lineage_foster.mk \
|
||||
$(LOCAL_DIR)/twrp_foster.mk
|
||||
$(LOCAL_DIR)/lineage_nx.mk \
|
||||
$(LOCAL_DIR)/twrp_nx.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
full_foster-eng \
|
||||
full_foster-user \
|
||||
full_foster-userdebug \
|
||||
lineage_foster-eng \
|
||||
lineage_foster-user \
|
||||
lineage_foster-userdebug \
|
||||
twrp_foster-eng \
|
||||
twrp_foster-userdebug
|
||||
lineage_nx-eng \
|
||||
lineage_nx-user \
|
||||
lineage_nx-userdebug \
|
||||
twrp_nx-eng \
|
||||
twrp_nx-userdebug
|
||||
+9
-16
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -19,11 +19,7 @@ BOARD_BOOTIMAGE_PARTITION_SIZE := 26738688
|
||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 26767360
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 10099646976
|
||||
ifeq ($(WITH_GMS_TV),true)
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1616904192
|
||||
endif
|
||||
BOARD_VENDORIMAGE_PARTITION_SIZE := 379584512
|
||||
TARGET_USERIMAGES_USE_EXT4 := true
|
||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
@@ -32,10 +28,7 @@ TARGET_COPY_OUT_VENDOR := vendor
|
||||
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|
||||
|
||||
# Assert
|
||||
TARGET_OTA_ASSERT_DEVICE := foster,darcy,jetson,loki,mdarcy,nx
|
||||
ifneq ($(WITH_GMS_TV),true)
|
||||
TARGET_OTA_ASSERT_DEVICE := $(TARGET_OTA_ASSERT_DEVICE),sif
|
||||
endif
|
||||
TARGET_OTA_ASSERT_DEVICE := nx
|
||||
|
||||
# Boot image
|
||||
BOARD_CUSTOM_BOOTIMG := true
|
||||
@@ -43,15 +36,15 @@ BOARD_CUSTOM_BOOTIMG_MK := device/nvidia/foster/mkbootimg.mk
|
||||
BOARD_MKBOOTIMG_ARGS := --header_version 1
|
||||
|
||||
# Bootloader versions
|
||||
TARGET_BOARD_INFO_FILE := device/nvidia/foster/board-info.txt
|
||||
TARGET_BOARD_INFO_FILE := device/nintendo/nx/board-info.txt
|
||||
|
||||
# Manifest
|
||||
DEVICE_MANIFEST_FILE := device/nvidia/foster/manifest.xml
|
||||
DEVICE_MANIFEST_FILE := device/nintendo/nx/manifest.xml
|
||||
|
||||
# Bluetooth
|
||||
ifeq ($(TARGET_TEGRA_BT),bcm)
|
||||
BOARD_CUSTOM_BT_CONFIG := device/nvidia/foster/comms/vnd_foster.txt
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/nvidia/foster/comms
|
||||
BOARD_CUSTOM_BT_CONFIG := device/nintendo/nx/comms/vnd_nx.txt
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/nintendo/nx/comms
|
||||
endif
|
||||
|
||||
# Charger
|
||||
@@ -68,12 +61,12 @@ BOARD_KERNEL_IMAGE_NAME := Image.gz
|
||||
TARGET_KERNEL_ADDITIONAL_FLAGS := "NV_BUILD_KERNEL_OPTIONS=$(TARGET_TEGRA_KERNEL)"
|
||||
|
||||
# Recovery
|
||||
TARGET_RECOVERY_FSTAB := device/nvidia/foster/initfiles/fstab.foster
|
||||
TARGET_RECOVERY_FSTAB := device/nintendo/nx/initfiles/fstab.nx
|
||||
TARGET_RECOVERY_UPDATER_LIBS := librecoveryupdater_tegra
|
||||
TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
|
||||
|
||||
# Releasetools
|
||||
TARGET_RELEASETOOLS_EXTENSIONS := device/nvidia/foster/releasetools
|
||||
TARGET_RELEASETOOLS_EXTENSIONS := device/nintendo/nx/releasetools
|
||||
|
||||
# Security Patch Level
|
||||
VENDOR_SECURITY_PATCH := 2022-04-05
|
||||
@@ -85,7 +78,7 @@ PRODUCT_FULL_TREBLE_OVERRIDE := true
|
||||
|
||||
# TWRP Support
|
||||
ifeq ($(WITH_TWRP),true)
|
||||
include device/nvidia/foster/twrp/twrp.mk
|
||||
include device/nintendo/nx/twrp/twrp.mk
|
||||
endif
|
||||
|
||||
include device/nvidia/t210-common/BoardConfigCommon.mk
|
||||
@@ -1,21 +1,10 @@
|
||||
# Device configuration for Nvidia SHIELD Android TV
|
||||
|
||||
## Spec Sheet
|
||||
| Feature | Specification |
|
||||
| :---------------------- | :-------------------------------- |
|
||||
| Chipset | NVIDIA® Tegra X1 T210 |
|
||||
| Memory | 3GB RAM |
|
||||
| Shipped Android Version | 5.1 |
|
||||
| Storage | 16/500GB |
|
||||
| MicroSD | Up to 128GB |
|
||||
| Dimensions | 98 x 159 x 25.93 mm |
|
||||
| Release Date | May 18, 2015 |
|
||||
# Common configuration for Nintendo Switch devices
|
||||
|
||||
## Copyright
|
||||
|
||||
```
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
require version-bootloader=32.00.2019.50-t210-d30cbd07|32.00.2019.50-t210-69ebfcbe|2020.04-03755-gf4d532d00d-rev3
|
||||
require version-bootloader=2020.04-03755-gf4d532d00d-rev3
|
||||
File renamed without changes.
@@ -15,11 +15,10 @@
|
||||
#
|
||||
|
||||
# Only include Shield apps for first party targets
|
||||
ifneq ($(filter $(word 2,$(subst _, ,$(TARGET_PRODUCT))), foster foster_tab),)
|
||||
ifneq ($(filter $(word 2,$(subst _, ,$(TARGET_PRODUCT))), nx),)
|
||||
include device/nvidia/shield-common/shield.mk
|
||||
endif
|
||||
|
||||
TARGET_REFERENCE_DEVICE ?= foster
|
||||
TARGET_TEGRA_VARIANT ?= common
|
||||
|
||||
TARGET_TEGRA_APTX ?= true
|
||||
@@ -51,78 +50,23 @@ PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
|
||||
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
|
||||
|
||||
$(call inherit-product, device/nvidia/foster/vendor/foster-vendor.mk)
|
||||
$(call inherit-product, device/nintendo/nx/vendor/nx-vendor.mk)
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
device/nvidia/foster/overlay
|
||||
device/nintendo/nx/overlay
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += device/nvidia/foster
|
||||
PRODUCT_SOONG_NAMESPACES += device/nintendo/nx
|
||||
|
||||
# Init related
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.batuu \
|
||||
fstab.darcy \
|
||||
fstab.dragon \
|
||||
fstab.foster \
|
||||
fstab.foster_e \
|
||||
fstab.foster_e_hdd \
|
||||
fstab.jetson_cv \
|
||||
fstab.jetson_e \
|
||||
fstab.loki_e_base \
|
||||
fstab.loki_e_lte \
|
||||
fstab.loki_e_wifi \
|
||||
fstab.nx \
|
||||
fstab.porg \
|
||||
fstab.porg_sd \
|
||||
fstab.sif \
|
||||
init.batuu.rc \
|
||||
init.darcy.rc \
|
||||
init.dragon.rc \
|
||||
init.foster_e.rc \
|
||||
init.foster_e_hdd.rc \
|
||||
init.foster_e_common.rc \
|
||||
init.loki_e_common.rc \
|
||||
init.loki_foster_e_common.rc \
|
||||
init.jetson_cv.rc \
|
||||
init.jetson_e.rc \
|
||||
init.loki_e_base.rc \
|
||||
init.loki_e_lte.rc \
|
||||
init.loki_e_wifi.rc \
|
||||
init.nx.rc \
|
||||
init.porg.rc \
|
||||
init.porg_sd.rc \
|
||||
init.sif.rc \
|
||||
init.recovery.batuu.rc \
|
||||
init.recovery.darcy.rc \
|
||||
init.recovery.dragon.rc \
|
||||
init.recovery.foster_e.rc \
|
||||
init.recovery.foster_e_hdd.rc \
|
||||
init.recovery.foster_common.rc \
|
||||
init.recovery.jetson_cv.rc \
|
||||
init.recovery.jetson_e.rc \
|
||||
init.recovery.loki_e_base.rc \
|
||||
init.recovery.loki_e_lte.rc \
|
||||
init.recovery.loki_e_wifi.rc \
|
||||
init.recovery.nx.rc \
|
||||
init.recovery.porg.rc \
|
||||
init.recovery.porg_sd.rc \
|
||||
init.recovery.sif.rc \
|
||||
power.batuu.rc \
|
||||
power.darcy.rc \
|
||||
power.dragon.rc \
|
||||
power.foster_e.rc \
|
||||
power.foster_e_hdd.rc \
|
||||
power.jetson_cv.rc \
|
||||
power.jetson_e.rc \
|
||||
power.loki_e_base.rc \
|
||||
power.loki_e_lte.rc \
|
||||
power.loki_e_wifi.rc \
|
||||
power.nx.rc \
|
||||
power.porg.rc \
|
||||
power.porg_sd.rc \
|
||||
power.sif.rc
|
||||
power.nx.rc
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
@@ -140,14 +84,6 @@ ifeq ($(TARGET_TEGRA_AUDIO),nvaudio)
|
||||
PRODUCT_PACKAGES += \
|
||||
audio_effects.xml \
|
||||
audio_policy_configuration.xml \
|
||||
audio_policy_configuration_dragon.xml \
|
||||
audio_policy_configuration_loki.xml \
|
||||
audio_policy_configuration_nx.xml \
|
||||
dragon_nvaudio_conf.xml \
|
||||
loki_e_base_nvaudio_conf.xml \
|
||||
loki_e_lte_nvaudio_conf.xml \
|
||||
loki_e_wifi_nvaudio_conf.xml \
|
||||
nx_nvaudio_conf.xml \
|
||||
nvaudio_conf.xml
|
||||
endif
|
||||
|
||||
@@ -155,11 +91,7 @@ endif
|
||||
ifeq ($(TARGET_TEGRA_KEYSTORE),nvkeystore)
|
||||
PRODUCT_PACKAGES += \
|
||||
init.eks2.rc \
|
||||
eks2_darcy.dat \
|
||||
eks2_foster.dat \
|
||||
eks2_mdarcy.dat \
|
||||
eks2_public.dat \
|
||||
eks2_sif.dat
|
||||
eks2_public.dat
|
||||
endif
|
||||
|
||||
# Kernel
|
||||
@@ -172,8 +104,7 @@ endif
|
||||
|
||||
# Keylayouts
|
||||
PRODUCT_PACKAGES += \
|
||||
gpio-keys.kl \
|
||||
gpio-keys-loki.kl
|
||||
gpio-keys.kl
|
||||
|
||||
# Light
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -224,18 +155,7 @@ PRODUCT_PACKAGES += \
|
||||
# Thermal
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.thermal@1.0-service-nvidia \
|
||||
thermalhal.batuu.xml \
|
||||
thermalhal.darcy.xml \
|
||||
thermalhal.foster_e.xml \
|
||||
thermalhal.foster_e_hdd.xml \
|
||||
thermalhal.nx.xml \
|
||||
thermalhal.jetson_cv.xml \
|
||||
thermalhal.jetson_e.xml \
|
||||
thermalhal.loki_e_lte.xml \
|
||||
thermalhal.loki_e_wifi.xml \
|
||||
thermalhal.porg.xml \
|
||||
thermalhal.porg_sd.xml \
|
||||
thermalhal.sif.xml
|
||||
thermalhal.nx.xml
|
||||
|
||||
# Treble workaround
|
||||
PRODUCT_PACKAGES += $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29)
|
||||
|
||||
@@ -16,37 +16,9 @@
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := eks2_foster.dat
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := eks2_foster.dat
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := eks2_darcy.dat
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := eks2_darcy.dat
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := eks2_mdarcy.dat
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := eks2_mdarcy.dat
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := eks2_public.dat
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := eks2_public.dat
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := eks2_sif.dat
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := eks2_sif.dat
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2
|
||||
include $(BUILD_PREBUILT)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2021 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -14,5 +14,4 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
FILELIST_PATHS+=("foster");
|
||||
PATCH_PATHS+=("foster");
|
||||
FILELIST_PATHS+=("nx");
|
||||
@@ -1,21 +1 @@
|
||||
stock-sif vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin32/hw/vendor.nvidia.hardware.convertibleport@1.0-service
|
||||
stock-t210 vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin64/hw/vendor.nvidia.hardware.convertibleport@1.0-service
|
||||
|
||||
stock-t210 vendor/firmware/nvram_darcy_a00.txt foster/bcm_firmware/bcm4354/nvram_darcy_a00.txt
|
||||
stock-t210 vendor/firmware/nvram_foster_e_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_4354.txt
|
||||
stock-t210 vendor/firmware/nvram_foster_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_antenna_tuned_4354.txt
|
||||
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_4354.txt
|
||||
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_antenna_tuned_4354.txt
|
||||
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/emb/nvram_jetsonE_cv_4354.txt foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt
|
||||
stock-t210 vendor/firmware/brcmfmac4356-pcie.txt foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.txt
|
||||
|
||||
stock-t210 vendor/firmware/bcmdhd_clm_darcy.blob foster/bcm_firmware/bcm4354/darcy.clm_blob
|
||||
stock-t210 vendor/firmware/bcmdhd_clm_foster.blob foster/bcm_firmware/bcm4354/foster.clm_blob
|
||||
stock-t210 vendor/firmware/bcmdhd_clm_darcy_flynn-hp.blob foster/bcm_firmware/bcm4354/flynn-hp.clm_blob
|
||||
nv-tegra-t210 3rdparty/cypress/bcm4356a3/wlan/fw_4356a3_prod.clm_blob foster/bcm_firmware/bcm4356/fw_4356a3_prod.clm_blob
|
||||
stock-t210 vendor/firmware/brcmfmac4356-pcie.clm_blob foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.clm_blob
|
||||
|
||||
l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P2180_A00_LP4_DSC_204Mhz.cfg foster/BCT/P2180_A00_LP4_DSC_204Mhz.cfg
|
||||
l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg foster/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg
|
||||
|
||||
nv-tegra-t210 tnspec_data/t210/tnspec.json foster/tnspec/foster.json
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright (C) 2021 The LineageOS 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.
|
||||
|
||||
# Needed by the Pixel C
|
||||
function fetch_smaug_nvram() {
|
||||
wget 'https://dumps.tadiphone.dev/dumps/google/dragon/-/raw/ryu-user-8.1.0-OPM8.190605.005-5749003-release-keys/system/etc/wifi/bcmdhd.cal' -O ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
|
||||
|
||||
# Crummy hack to match what was already committed
|
||||
sed -i -e '$a\' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
|
||||
}
|
||||
|
||||
# The previous default crashes the current firmware
|
||||
function patch_nvrams() {
|
||||
sed -i 's/ccode=XR/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt
|
||||
sed -i 's/ccode=0/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
|
||||
}
|
||||
|
||||
fetch_smaug_nvram;
|
||||
patch_nvrams;
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright (C) 2019 The LineageOS Project
|
||||
// Copyright (C) 2021 The LineageOS Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -15,24 +15,24 @@
|
||||
//
|
||||
|
||||
cc_library_static {
|
||||
name: "libinit_foster",
|
||||
name: "libinit_nx",
|
||||
recovery_available: true,
|
||||
include_dirs: [
|
||||
"device/nvidia/tegra-common/init",
|
||||
],
|
||||
whole_static_libs: ["libinit_tegra"],
|
||||
srcs: [
|
||||
"init_foster.cpp",
|
||||
"init_nx.cpp",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libinit_foster_vendor",
|
||||
name: "libinit_nx_vendor",
|
||||
vendor: true,
|
||||
include_dirs: [
|
||||
"device/nvidia/tegra-common/init",
|
||||
],
|
||||
srcs: [
|
||||
"init_foster.cpp",
|
||||
"init_nx.cpp",
|
||||
],
|
||||
}
|
||||
@@ -1,219 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "init_tegra.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
void vendor_set_usb_product_ids(tegra_init *ti)
|
||||
{
|
||||
std::map<std::string, std::string> mCommonUsbIds, mDeviceUsbIds;
|
||||
|
||||
mCommonUsbIds["ro.vendor.nv.usb.vid"] = "0955";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.rndis.acm.adb"] = "AF00";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "7104";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "7105";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "7106";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ncm"] = "7107";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ncm.adb"] = "7108";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "7109";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "710A";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ecm"] = "710B";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ecm.adb"] = "710C";
|
||||
|
||||
if (ti->is_model("foster_e")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B430";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B431";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B432";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B433";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B434";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B435";
|
||||
} else if (ti->is_model("foster_e_hdd")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B436";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B437";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B43E";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B43F";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B43A";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B43B";
|
||||
} else if (ti->is_model("darcy") || ti->is_model("sif")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B43C";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B43D";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B43E";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B43F";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B440";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B441";
|
||||
} else if (ti->is_model("mdarcy")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B42A";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B42B";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B42C";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B42D";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B42E";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B42F";
|
||||
} else if (ti->is_model("loki_e_base") || ti->is_model("loki_e_lte") || ti->is_model("loki_e_wifi")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B424";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B425";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B426";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B427";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B428";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B429";
|
||||
} else if (ti->is_model("odin") || ti->is_model("modin") || ti->is_model("vali") || ti->is_model("frig")) {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.vid"] = "057E";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "2000";
|
||||
} else if (ti->is_model("dragon")) {
|
||||
mCommonUsbIds["ro.vendor.nv.usb.vid"] = "18D1";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "5202";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "5203";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "5206";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "5207";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "5204";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "5205";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "5208";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "2D01";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "2D03";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "5209";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "520A";
|
||||
|
||||
} else {
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "EE02";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "EE03";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "EE04";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "EE05";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "EE08";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "EE09";
|
||||
}
|
||||
|
||||
for (auto const& id : mDeviceUsbIds)
|
||||
ti->property_set(id.first, id.second);
|
||||
|
||||
for (auto const& id : mCommonUsbIds)
|
||||
ti->property_set(id.first, id.second);
|
||||
}
|
||||
|
||||
void vendor_set_sku(tegra_init *ti)
|
||||
{
|
||||
if (ti->is_model("loki_e_base") || ti->is_model("loki_e_lte") || ti->is_model("loki_e_wifi"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "loki");
|
||||
else if (ti->is_model("odin") || ti->is_model("modin") || ti->is_model("frig") || ti->is_model("vali"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "nx");
|
||||
else if (ti->is_model("dragon"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "dragon");
|
||||
}
|
||||
|
||||
void vendor_set_nrdp_props(tegra_init *ti)
|
||||
{
|
||||
if (ti->is_model("mdarcy") || ti->is_model("sif"))
|
||||
ti->property_set("ro.vendor.nrdp.modelgroup", "NVIDIASHIELDANDROIDTV2019");
|
||||
else
|
||||
ti->property_set("ro.vendor.nrdp.modelgroup", "SHIELDANDROIDTV");
|
||||
|
||||
ti->property_set("ro.vendor.nrdp.audio.otfs", "true");
|
||||
ti->property_set("ro.vendor.nrdp.validation", "ninja_6");
|
||||
}
|
||||
|
||||
void vendor_set_oem_key1(tegra_init *ti)
|
||||
{
|
||||
std::string rel_year = "15";
|
||||
|
||||
if (ti->is_model("mdarcy") || ti->is_model("sif"))
|
||||
rel_year = "19";
|
||||
else if (ti->is_model("darcy"))
|
||||
rel_year = "17";
|
||||
|
||||
ti->property_set("ro.vendor.lineage.tegra.oem_key1", "ATV001000" + rel_year);
|
||||
}
|
||||
|
||||
void vendor_load_properties()
|
||||
{
|
||||
// device name model id sku api dpi
|
||||
std::vector<tegra_init::devices> devices = { { "foster", "foster_e", "SHIELD Android TV", 2530, 930, 21, 320 },
|
||||
{ "foster", "foster_e_hdd", "SHIELD Android TV", 2530, 932, 21, 320 },
|
||||
{ "darcy", "darcy", "SHIELD Android TV", 2894, 52, 23, 320 },
|
||||
{ "mdarcy", "mdarcy", "SHIELD Android TV", 2894, 2551, 28, 320 },
|
||||
{ "sif", "sif", "SHIELD Android TV", 3425, 500, 28, 320 },
|
||||
{ "loki", "loki_e_base", "SHIELD Portable", 2530, 131, 21, 214 },
|
||||
{ "loki", "loki_e_lte", "SHIELD Portable", 2530, 31, 21, 240 },
|
||||
{ "loki", "loki_e_wifi", "SHIELD Portable", 2530, 30, 21, 240 },
|
||||
{ "jetson", "jetson_cv", "Jetson TX1", 2597, 2180, 21, 320 },
|
||||
{ "jetson", "jetson_e", "Jetson TX1", 2595, 0, 21, 320 },
|
||||
{ "porg", "batuu", "Jetson Nano 2GB", 3448, 3, 28, 320 },
|
||||
{ "porg", "porg_sd", "Jetson Nano", 3448, 0, 28, 320 },
|
||||
{ "porg", "porg", "Jetson Nano", 3448, 2, 28, 320 },
|
||||
{ "nx", "odin", "Switch", 7888, 0, 27, 214 },
|
||||
{ "nx", "modin", "Switch V2", 7888, 1, 27, 214 },
|
||||
{ "nx", "vali", "Switch Lite", 7888, 2, 27, 214 },
|
||||
{ "nx", "frig", "Switch OLED", 7888, 3, 27, 214 },
|
||||
{ "dragon", "dragon", "Pixel C", 3, 0, 23, 320 } };
|
||||
tegra_init::build_version tav = { "11", "RQ1A.210105.003", "7825230_3167.5736" };
|
||||
|
||||
tegra_init ti(devices);
|
||||
|
||||
if (ti.is_model("sif")) {
|
||||
tav = { "11", "RQ1A.210105.003", "7825199_3167.5736" };
|
||||
} else if (ti.is_model("dragon")) {
|
||||
tav = { "8.1.0", "OPM8.190605.005", "5749003" };
|
||||
|
||||
if (ti.vendor_context()) {
|
||||
ti.property_set("ro.vendor.lineage.tegra.name", "ryu");
|
||||
}
|
||||
}
|
||||
|
||||
ti.set_properties();
|
||||
ti.set_fingerprints(tav);
|
||||
|
||||
if (ti.recovery_context()) {
|
||||
ti.property_set("ro.product.vendor.model", ti.property_get("ro.product.model"));
|
||||
ti.property_set("ro.product.vendor.manufacturer", ti.property_get("ro.product.manufacturer"));
|
||||
|
||||
// Unset avb flags. This is to ignore compatibility checks on unified builds
|
||||
if (ti.is_model("mdarcy") || ti.is_model("sif"))
|
||||
ti.property_set("ro.boot.avb_version", "");
|
||||
}
|
||||
|
||||
if (ti.vendor_context() || ti.recovery_context()) {
|
||||
vendor_set_usb_product_ids(&ti);
|
||||
vendor_set_sku(&ti);
|
||||
|
||||
if (ti.property_get("ro.build.characteristics") == "tv") {
|
||||
vendor_set_nrdp_props(&ti);
|
||||
vendor_set_oem_key1(&ti);
|
||||
}
|
||||
}
|
||||
|
||||
// For system and recovery context
|
||||
if (ti.is_model("dragon") && !ti.vendor_context()) {
|
||||
ti.property_set("ro.product.name", "ryu");
|
||||
ti.property_set("ro.product.system.name", "ryu");
|
||||
ti.property_set("ro.product.system_ext.name", "ryu");
|
||||
ti.property_set("ro.product.odm.name", "ryu");
|
||||
ti.property_set("ro.product.product.name", "ryu");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "init_tegra.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
void vendor_set_usb_product_ids(tegra_init *ti)
|
||||
{
|
||||
std::map<std::string, std::string> mCommonUsbIds, mDeviceUsbIds;
|
||||
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.rndis.acm.adb"] = "AF00";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "7104";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "7105";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "7106";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ncm"] = "7107";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ncm.adb"] = "7108";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "7109";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "710A";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ecm"] = "710B";
|
||||
mCommonUsbIds["ro.vendor.nv.usb.pid.ecm.adb"] = "710C";
|
||||
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.vid"] = "057E";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "2000";
|
||||
mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "2000";
|
||||
|
||||
for (auto const& id : mDeviceUsbIds)
|
||||
ti->property_set(id.first, id.second);
|
||||
|
||||
for (auto const& id : mCommonUsbIds)
|
||||
ti->property_set(id.first, id.second);
|
||||
}
|
||||
|
||||
void vendor_set_nrdp_props(tegra_init *ti)
|
||||
{
|
||||
ti->property_set("ro.vendor.nrdp.audio.otfs", "true");
|
||||
ti->property_set("ro.vendor.nrdp.validation", "ninja_6");
|
||||
}
|
||||
|
||||
void vendor_load_properties()
|
||||
{
|
||||
// device name model id sku api dpi
|
||||
std::vector<tegra_init::devices> devices = { { "nx", "odin", "Switch", 7888, 0, 27, 214 },
|
||||
{ "nx", "modin", "Switch v2", 7888, 1, 27, 214 },
|
||||
{ "nx", "vali", "Switch Lite", 7888, 2, 27, 214 },
|
||||
{ "nx", "frig", "Switch OLED", 7888, 3, 27, 214 } };
|
||||
|
||||
tegra_init ti(devices);
|
||||
|
||||
tegra_init::build_version tav = { "11", "RQ1A.210105.003", "7825230_3167.5736" };
|
||||
ti.set_fingerprints(tav);
|
||||
|
||||
ti.set_properties();
|
||||
|
||||
if (ti.recovery_context()) {
|
||||
ti.property_set("ro.product.vendor.model", ti.property_get("ro.product.model"));
|
||||
ti.property_set("ro.product.vendor.manufacturer", ti.property_get("ro.product.manufacturer"));
|
||||
|
||||
// Unset avb flags. This is to ignore compatibility checks on unified builds
|
||||
if (ti.is_model("mdarcy") || ti.is_model("sif"))
|
||||
ti.property_set("ro.boot.avb_version", "");
|
||||
}
|
||||
|
||||
if (ti.vendor_context() || ti.recovery_context()) {
|
||||
vendor_set_usb_product_ids(&ti);
|
||||
|
||||
if (ti.property_get("ro.build.characteristics") == "tv") {
|
||||
vendor_set_nrdp_props(&ti);
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
-416
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2019 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -14,83 +14,6 @@
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.batuu
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.porg_sd
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.darcy
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.darcy
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.dragon
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.dragon
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.foster
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.foster_e
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.foster_e_hdd
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e_hdd
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.jetson_e
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.jetson_cv
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.loki_e_base
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.loki_e_lte
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.loki_e_wifi
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.nx
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -98,107 +21,6 @@ LOCAL_SRC_FILES := fstab.nx
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.porg
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.porg_sd
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.porg_sd
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.sif
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := fstab.foster_e
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.batuu.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.batuu.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.darcy.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.darcy.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.dragon.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.foster_e.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.foster_e_hdd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.foster_e_hdd.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.jetson_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.jetson_e.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.jetson_cv.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.jetson_cv.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_e_base.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_e_base.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_e_lte.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_e_lte.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_e_wifi.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_e_wifi.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.nx.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -207,100 +29,6 @@ LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.porg.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.porg.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.porg_sd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.porg_sd.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.sif.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.sif.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.batuu.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.darcy.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.darcy.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.dragon.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.foster_e_hdd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.jetson_cv.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.jetson_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.loki_e_base.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.loki.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.loki_e_lte.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.loki.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.loki_e_wifi.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.loki.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.nx.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -308,128 +36,6 @@ LOCAL_SRC_FILES := init.recovery.nx.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.porg.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.porg_sd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.sif.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.sif.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.recovery.foster_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.recovery.foster_common.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.foster_e_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.foster_e_common.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_e_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_e_common.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_foster_e_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_foster_e_common.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.batuu.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.darcy.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.dragon.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.abca.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.foster_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.foster_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.foster_e_hdd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.foster_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.jetson_cv.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.foster_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.jetson_e.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.foster_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.loki_e_base.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.loki_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.loki_e_lte.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.loki_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.loki_e_wifi.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.loki_e_common.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.nx.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
@@ -437,27 +43,6 @@ LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.nx.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.porg.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.porg_sd.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := power.sif.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_ODM_MODULE := true
|
||||
LOCAL_SRC_FILES := power.darcy.rc
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := lkm_loader
|
||||
LOCAL_SRC_FILES := lkm_loader.sh
|
||||
@@ -473,3 +58,19 @@ LOCAL_SRC_FILES := init.eks2.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_e_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_e_common.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.loki_foster_e_common.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := init.loki_foster_e_common.rc
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
@@ -1,22 +0,0 @@
|
||||
#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA,quota,reservedsize=128M
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/BMP /bmps emmc defaults recoveryonly
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
@@ -1,16 +0,0 @@
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/VNR /vendor ext4 ro,noatime recoveryonly
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/KERN-A /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MD1,quota,reservedsize=128M
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MD1 /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/recovery /recovery emmc defaults defaults
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
@@ -1,16 +0,0 @@
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
# This fstab is only used for the updater script. Assumes the recovery has made appropriate symlinks
|
||||
|
||||
/dev/block/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,nodelalloc,errors=panic wait,formattable
|
||||
/dev/block/by-name/vendor /vendor ext4 ro,noatime wait
|
||||
/dev/block/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,noauto_da_alloc,errors=panic wait,check,formattable,encryptable=/dev/block/by-name/MDA
|
||||
/dev/block/by-name/USP /staging emmc defaults defaults
|
||||
/dev/block/by-name/SOS /recovery emmc defaults defaults
|
||||
/dev/block/by-name/BMP /bmps emmc defaults recoveryonly
|
||||
/devices/sdhci-tegra.0/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
@@ -1,25 +0,0 @@
|
||||
#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA,quota
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check,formattable
|
||||
/devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
/devices/platform/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly
|
||||
/dev/block/platform/sdhci-tegra.3/by-name/BMP /bmps emmc defaults recoveryonly
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
@@ -1,24 +0,0 @@
|
||||
#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/tegra-sata.0/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/tegra-sata.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,nodelalloc,barrier=1 wait,formattable
|
||||
/dev/block/platform/tegra-sata.0/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/platform/tegra-sata.0/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/tegra-sata.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,noauto_da_alloc,discard,barrier=0,init_itable=100 wait,check,formattable,encryptable=/dev/block/platform/tegra-sata.0/by-name/MDA,quota
|
||||
/dev/block/platform/tegra-sata.0/by-name/USP /staging emmc defaults defaults
|
||||
/dev/block/platform/tegra-sata.0/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/platform/tegra-sata.0/by-name/SOS /recovery emmc defaults defaults
|
||||
/dev/block/platform/tegra-sata.0/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check,formattable
|
||||
/devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata
|
||||
/dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/platform/tegra-sata.0/by-name/BMP /bmps emmc defaults recoveryonly
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
+8
-7
@@ -5,13 +5,14 @@
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.0/by-name/MDA,quota,reservedsize=128M
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/SOS /recovery emmc defaults defaults
|
||||
/dev/block/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/by-name/vendor /vendor ext4 ro,noatime wait,recoveryonly
|
||||
/dev/block/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/by-name/MDA,quota,reservedsize=128M
|
||||
/dev/block/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/by-name/SOS /recovery emmc defaults defaults
|
||||
/devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:1
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/APP / ext4 ro,noatime wait
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/LNX /boot emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/MSC /misc emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.0/by-name/MDA,quota,reservedsize=128M
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/USP /staging emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/MDA /metadata emmc defaults defaults
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/SOS /recovery emmc defaults defaults
|
||||
/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata
|
||||
/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly
|
||||
/dev/block/platform/sdhci-tegra.0/by-name/BMP /bmps emmc defaults recoveryonly
|
||||
/dev/block/zram0 none swap defaults zramsize=536870912
|
||||
79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_sd.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.batuu
|
||||
swapon_all /vendor/etc/fstab.batuu
|
||||
|
||||
# Create symlinks for VTS compatibility (must be after fstab mounting)
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/DTB /dev/block/platform/sdhci-tegra.0/by-name/dtbo
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/LNX /dev/block/platform/sdhci-tegra.0/by-name/boot
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/SOS /dev/block/platform/sdhci-tegra.0/by-name/recovery
|
||||
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
|
||||
on post-fs-data
|
||||
setprop atv.setup.bt_remote_pairing false
|
||||
@@ -1,32 +0,0 @@
|
||||
# Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.darcy
|
||||
swapon_all /vendor/etc/fstab.darcy
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
|
||||
on post-fs
|
||||
# Create symlinks for VTS compatibility (must be after fstab mounting)
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery
|
||||
|
||||
# override cpuset cpus to 0-3
|
||||
on init
|
||||
write /dev/cpuset/foreground/cpus 0-3
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
write /dev/cpuset/top-app/cpus 0-3
|
||||
@@ -1,21 +0,0 @@
|
||||
# Copyright (C) 2020 The LineageOS 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.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.loki_e_common.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.dragon
|
||||
swapon_all /vendor/etc/fstab.dragon
|
||||
@@ -1,33 +0,0 @@
|
||||
# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on init
|
||||
# support old sdcard features (apps on sdcard and migrated apps)
|
||||
setprop vendor.vold.linktoprimary 1
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.foster_e
|
||||
swapon_all /vendor/etc/fstab.foster_e
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
|
||||
on post-fs-data
|
||||
start cyupdate
|
||||
|
||||
service cyupdate /vendor/bin/cyupdate.sh
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.loki_foster_e_common.rc
|
||||
|
||||
on init
|
||||
setprop ro.hardware.gatekeeper tlk.tegra
|
||||
|
||||
on boot
|
||||
write /sys/devices/system/cpu/cpuquiet/runnable_threads/nr_run_thresholds "6 10 18"
|
||||
write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 0
|
||||
|
||||
# Lower console loglevel to reduce number of printk messages to console
|
||||
write /proc/sys/kernel/printk "4 7 1 7 3"
|
||||
|
||||
on boot && property:ro.build.type=user
|
||||
# Disable console logs in user build, print KERN_EMERG messages only
|
||||
setprop vendor.debug.enable_console_logs false
|
||||
write /dev/kmsg "Disabling kernel console prints. Prints can be enabled via the developer menu"
|
||||
|
||||
on post-fs-data
|
||||
# Set Foster as console mode
|
||||
setprop persist.vendor.tegra.composite.range Auto
|
||||
setprop sys.wal.off external.db,iu.upload.db
|
||||
setprop sys.wal.normal tz4,PGDatabase,launcher.db,playlog.db,music.db
|
||||
write /sys/power/wake_lock foster-staywake
|
||||
|
||||
# Disable rescue feature. This needs to be in vendor init, so that it
|
||||
# works on GSI images.
|
||||
setprop persist.sys.disable_rescue true
|
||||
|
||||
on post-fs-data
|
||||
chown system system /mnt/venodr/wifi_config
|
||||
chown system system /mnt/vendor/wifi_config/FSS.txt
|
||||
chown system system /mnt/vendor/wifi_config/country_code.txt
|
||||
chown system system /mnt/vendor/wifi_config/country_code.sig
|
||||
chown system system /mnt/vendor/wifi_config/package.txt
|
||||
restorecon_recursive /mnt/vendor/wifi_config
|
||||
|
||||
on post-fs
|
||||
chown system system /sys/class/leds/led_lightbar/brightness
|
||||
chown system system /sys/class/leds/led_lightbar/boot_mode
|
||||
chown system system /sys/class/leds/led_lightbar/version
|
||||
chown system system /sys/class/leds/led_lightbar/effects
|
||||
chown system system /sys/class/leds/led_lightbar/params
|
||||
|
||||
on property:vendor.debug.enable_console_logs=true && property:ro.build.type=user
|
||||
write /proc/sys/kernel/printk "4 7 1 7 3"
|
||||
|
||||
on property:vendor.debug.enable_console_logs=false && property:ro.build.type=user
|
||||
write /proc/sys/kernel/printk "1 7 1 7 3"
|
||||
|
||||
service mossignerd /vendor/bin/mossignerd
|
||||
class late_start
|
||||
user system
|
||||
@@ -1,35 +0,0 @@
|
||||
# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_sata.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on init
|
||||
# support old sdcard features (apps on sdcard and migrated apps)
|
||||
setprop vendor.vold.linktoprimary 1
|
||||
|
||||
on fs
|
||||
write /sys/block/sda/queue/scheduler deadline
|
||||
write /sys/block/sda/queue/iosched/read_expire 1000
|
||||
write /sys/block/sda/queue/iosched/write_expire 40000
|
||||
write /sys/block/sda/queue/iosched/writes_starved 16
|
||||
mount_all /vendor/etc/fstab.foster_e_hdd
|
||||
swapon_all /vendor/etc/fstab.foster_e_hdd
|
||||
|
||||
on post-fs-data
|
||||
start cyupdate
|
||||
start get-hddstat
|
||||
|
||||
service cyupdate /vendor/bin/cyupdate.sh
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.lkm.rc
|
||||
|
||||
on init
|
||||
# override cpuset cpus to 0-3, mems to 0
|
||||
write /dev/cpuset/foreground/cpus 0-3
|
||||
write /dev/cpuset/foreground/mems 0
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3
|
||||
write /dev/cpuset/foreground/boost/mems 0
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
write /dev/cpuset/background/mems 0
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
write /dev/cpuset/system-background/mems 0
|
||||
write /dev/cpuset/top-app/cpus 0-3
|
||||
write /dev/cpuset/top-app/mems 0
|
||||
|
||||
on fs
|
||||
setprop ro.wifi.sdmmc 1
|
||||
setprop audio.custompolicy 1
|
||||
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
|
||||
setprop ro.crypto.umount_sd false
|
||||
setprop ro.crypto.fuse_sdcard true
|
||||
mount_all /vendor/etc/fstab.jetson_cv
|
||||
swapon_all /vendor/etc/fstab.jetson_cv
|
||||
|
||||
# start Early Loadable Kernel Module service
|
||||
exec /vendor/bin/lkm_loader.sh early
|
||||
|
||||
on post-fs-data
|
||||
chown root system /sys/class/gps_wake/gps_device/gps_enable
|
||||
chmod 0664 /sys/class/gps_wake/gps_device/gps_enable
|
||||
|
||||
on post-fs-data
|
||||
chmod 0444 /sys/devices/platform/tegra-fuse/aid
|
||||
|
||||
on boot
|
||||
# start Loadable Kernel Module service
|
||||
start vendor.lkm_loader
|
||||
|
||||
on property:persist.gps.present=true
|
||||
symlink /system/etc/android.hardware.location.gps.xml /data/android.hardware.location.gps.xml
|
||||
|
||||
on property:persist.gps.present=false
|
||||
rm /data/android.hardware.location.gps.xml
|
||||
|
||||
#start pbc daemon
|
||||
service pbc2 /system/vendor/bin/pbc2
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /sys/devices/virtual/android_usb/android0/uevent_in_suspend N
|
||||
write /sys/devices/usb_cd/extcon/extcon1/uevent_in_suspend N
|
||||
@@ -1,54 +0,0 @@
|
||||
#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.ray_touch.rc
|
||||
import /vendor/etc/init/hw/init.cal.rc
|
||||
import /vendor/etc/init/hw/init.lkm.rc
|
||||
|
||||
on init
|
||||
# override cpuset cpus to 0-3, mems to 0
|
||||
write /dev/cpuset/foreground/cpus 0-3
|
||||
write /dev/cpuset/foreground/mems 0
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3
|
||||
write /dev/cpuset/foreground/boost/mems 0
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
write /dev/cpuset/background/mems 0
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
write /dev/cpuset/system-background/mems 0
|
||||
write /dev/cpuset/top-app/cpus 0-3
|
||||
write /dev/cpuset/top-app/mems 0
|
||||
|
||||
on fs
|
||||
setprop ro.wifi.sdmmc 1
|
||||
setprop audio.custompolicy 1
|
||||
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
|
||||
setprop ro.crypto.umount_sd false
|
||||
setprop ro.crypto.fuse_sdcard true
|
||||
mount_all /vendor/etc/fstab.jetson_e
|
||||
swapon_all /vendor/etc/fstab.jetson_e
|
||||
|
||||
# start Early Loadable Kernel Module service
|
||||
exec /vendor/bin/lkm_loader.sh early
|
||||
|
||||
on post-fs-data
|
||||
chmod 0444 /sys/devices/platform/tegra-fuse/aid
|
||||
|
||||
#start pbc daemon
|
||||
service pbc2 /system/vendor/bin/pbc2
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /sys/devices/virtual/android_usb/android0/uevent_in_suspend N
|
||||
|
||||
on boot
|
||||
# start Loadable Kernel Module service
|
||||
start vendor.lkm_loader
|
||||
@@ -1,16 +0,0 @@
|
||||
#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.loki_e_common.rc
|
||||
import /vendor/etc/init/hw/init.ray_touch.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.loki_e_base
|
||||
swapon_all /vendor/etc/fstab.loki_e_base
|
||||
@@ -1,16 +0,0 @@
|
||||
#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.loki_e_common.rc
|
||||
import /vendor/etc/init/hw/init.ray_touch.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.loki_e_lte
|
||||
swapon_all /vendor/etc/fstab.loki_e_lte
|
||||
@@ -1,16 +0,0 @@
|
||||
#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.loki_e_common.rc
|
||||
import /vendor/etc/init/hw/init.ray_touch.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.loki_e_wifi
|
||||
swapon_all /vendor/etc/fstab.loki_e_wifi
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on init
|
||||
enable btlinux-1.1
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.porg
|
||||
swapon_all /vendor/etc/fstab.porg
|
||||
|
||||
# Create symlinks for VTS compatibility (must be after fstab mounting)
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery
|
||||
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_sd.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on init
|
||||
enable btlinux-1.1
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.porg_sd
|
||||
swapon_all /vendor/etc/fstab.porg_sd
|
||||
|
||||
# Create symlinks for VTS compatibility (must be after fstab mounting)
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/DTB /dev/block/platform/sdhci-tegra.0/by-name/dtbo
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/LNX /dev/block/platform/sdhci-tegra.0/by-name/boot
|
||||
symlink /dev/block/platform/sdhci-tegra.0/by-name/SOS /dev/block/platform/sdhci-tegra.0/by-name/recovery
|
||||
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
@@ -1,18 +0,0 @@
|
||||
# Copyright (C) 2019 The LineageOS 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.
|
||||
|
||||
import init.recovery.foster_common.rc
|
||||
|
||||
on init
|
||||
write /sys/class/extcon/extcon3/state 0x1
|
||||
@@ -1,15 +0,0 @@
|
||||
# Copyright (C) 2019 The LineageOS 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.
|
||||
|
||||
import init.recovery.foster_common.rc
|
||||
@@ -1,15 +0,0 @@
|
||||
# Copyright (C) 2020 The LineageOS 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.
|
||||
|
||||
import init.recovery.usb.rc
|
||||
@@ -1,21 +0,0 @@
|
||||
# Copyright (C) 2019 The LineageOS 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.
|
||||
|
||||
import init.recovery.ray_touch.rc
|
||||
import init.recovery.foster_common.rc
|
||||
|
||||
on post-fs
|
||||
# touchscreen
|
||||
mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/FCT /mnt/vendor/factory ro
|
||||
restorecon_recursive /mnt/vendor/factory
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import init.recovery.foster_common.rc
|
||||
import init.recovery.usb.rc
|
||||
|
||||
on init
|
||||
setprop persist.twrp.rotation 270
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# Copyright (C) 2021 The LineageOS 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.
|
||||
|
||||
# Do nothing, usb can't be used on consumer sif units
|
||||
@@ -1,37 +0,0 @@
|
||||
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
#
|
||||
#NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
#proprietary rights in and to this software and related documentation. Any
|
||||
#use, reproduction, disclosure or distribution of this software and related
|
||||
#documentation without an express license agreement from NVIDIA Corporation
|
||||
#is strictly prohibited.
|
||||
|
||||
import /vendor/etc/init/hw/init.tegra_emmc.rc
|
||||
import /vendor/etc/init/hw/init.t210.rc
|
||||
import /vendor/etc/init/hw/init.foster_e_common.rc
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.sif
|
||||
swapon_all /vendor/etc/fstab.sif
|
||||
|
||||
# Create symlinks for VTS compatibility (must be after fstab mounting)
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot
|
||||
symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery
|
||||
|
||||
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/block/mmcblk0/queue/iostats 0
|
||||
write /sys/block/mmcblk0/queue/nr_requests 256
|
||||
|
||||
setprop config.disable_cameraservice true
|
||||
|
||||
# Controls the max total size the egl blob cache will use. (32 MB)
|
||||
setprop ro.vendor.tegra.blobcachetotalsize 33554432
|
||||
|
||||
# override cpuset cpus to 0-3
|
||||
on init
|
||||
write /dev/cpuset/foreground/cpus 0-3
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
write /dev/cpuset/top-app/cpus 0-3
|
||||
@@ -1,108 +0,0 @@
|
||||
# FORMAT:
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1280X720
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1080
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# ......
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1200
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
#
|
||||
# NOTES:
|
||||
# The panelresolution is the lcd panel resolution.
|
||||
# No space should exist in panelresolution=[xres]X[yres].
|
||||
# panelresolution=720X1280 equals with panelresolution=1280X720.
|
||||
# For panelresolution=-1X-1, it should be the last set of power settings in this file.
|
||||
# When your panel resolution is found in this file,
|
||||
# it will use the set of power settings followed by your panel resolution.
|
||||
# When your panel resolution is not found in this file, it will use the default power settings.
|
||||
# The power settings followed by panelresolution=-1X-1 is the default power settings.
|
||||
# powernode is the sysfs or variable we need to write and it is followed by three ints.
|
||||
# maxperf, optimized, maxbatterylife are the three ints for different power modes.
|
||||
#
|
||||
# Default power mode: can be set to 0, 1, or 2
|
||||
NV_DEFAULT_MODE 1
|
||||
panelresolution=1900X1200
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 900000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_HYPERVOLT_ALPHA 50 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_PRETHROTTLE 0 1 1
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 1 1
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 7 3 2
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=2500X1600
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 900000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_HYPERVOLT_ALPHA 50 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_PRETHROTTLE 0 1 1
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 1 1
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 7 3 2
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=-1X-1
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 900000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_HYPERVOLT_ALPHA 50 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_PRETHROTTLE 0 1 1
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 1 1
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 7 3 2
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
@@ -1,112 +0,0 @@
|
||||
# FORMAT:
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1280X720
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1080
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# ......
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1200
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
#
|
||||
# NOTES:
|
||||
# The panelresolution is the lcd panel resolution.
|
||||
# No space should exist in panelresolution=[xres]X[yres].
|
||||
# panelresolution=720X1280 equals with panelresolution=1280X720.
|
||||
# For panelresolution=-1X-1, it should be the last set of power settings in this file.
|
||||
# When your panel resolution is found in this file,
|
||||
# it will use the set of power settings followed by your panel resolution.
|
||||
# When your panel resolution is not found in this file, it will use the default power settings.
|
||||
# The power settings followed by panelresolution=-1X-1 is the default power settings.
|
||||
# powernode is the sysfs or variable we need to write and it is followed by three ints.
|
||||
# maxperf, optimized, maxbatterylife are the three ints for different power modes.
|
||||
#
|
||||
# Default power mode: can be set to 0, 1, or 2
|
||||
NV_DEFAULT_MODE 0
|
||||
panelresolution=1280X720
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
# 1100000 should be below Fmax@Vmin
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 18000 14000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=1440X810
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 18000 14000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=-1X-1
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 18000 14000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
@@ -1,111 +0,0 @@
|
||||
# FORMAT:
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1280X720
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1080
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# ......
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1200
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
#
|
||||
# NOTES:
|
||||
# The panelresolution is the lcd panel resolution.
|
||||
# No space should exist in panelresolution=[xres]X[yres].
|
||||
# panelresolution=720X1280 equals with panelresolution=1280X720.
|
||||
# For panelresolution=-1X-1, it should be the last set of power settings in this file.
|
||||
# When your panel resolution is found in this file,
|
||||
# it will use the set of power settings followed by your panel resolution.
|
||||
# When your panel resolution is not found in this file, it will use the default power settings.
|
||||
# The power settings followed by panelresolution=-1X-1 is the default power settings.
|
||||
# powernode is the sysfs or variable we need to write and it is followed by three ints.
|
||||
# maxperf, optimized, maxbatterylife are the three ints for different power modes.
|
||||
#
|
||||
# Default power mode: can be set to 0, 1, or 2
|
||||
NV_DEFAULT_MODE 0
|
||||
panelresolution=1280X720
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 537600 537600 537600
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=1440X810
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 537600 537600 537600
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=-1X-1
|
||||
NV_FPSLIMIT 0 0 30
|
||||
NV_MAX_CORES 4 4 4
|
||||
NV_MIN_CORES 4 4 2
|
||||
NV_CPUQUIET_GOV 1 1 1
|
||||
NV_DISPOFF_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 1100000 1100000
|
||||
NV_DISPOFF_FREQ 1100000 358400 358400
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 537600 537600 537600
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255
|
||||
NV_ECO_MAX_FREQ 2200000 2200000 2200000
|
||||
NV_ECO_MAX_GPU_FREQ 800000 800000 800000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 10 10 10
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
@@ -1,106 +0,0 @@
|
||||
# FORMAT:
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1280X720
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1080
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# ......
|
||||
# panelresolution=[xres]X[yres], such as panelresolution=1920X1200
|
||||
# powernode1 maxperf optimized maxbatterylife
|
||||
# powernode2 maxperf optimized maxbatterylife
|
||||
# ......
|
||||
# powernoden maxperf optimized maxbatterylife
|
||||
#
|
||||
# NOTES:
|
||||
# The panelresolution is the lcd panel resolution.
|
||||
# No space should exist in panelresolution=[xres]X[yres].
|
||||
# panelresolution=720X1280 equals with panelresolution=1280X720.
|
||||
# For panelresolution=-1X-1, it should be the last set of power settings in this file.
|
||||
# When your panel resolution is found in this file,
|
||||
# it will use the set of power settings followed by your panel resolution.
|
||||
# When your panel resolution is not found in this file, it will use the default power settings.
|
||||
# The power settings followed by panelresolution=-1X-1 is the default power settings.
|
||||
# powernode is the sysfs or variable we need to write and it is followed by three ints.
|
||||
# maxperf, optimized, maxbatterylife are the three ints for different power modes.
|
||||
#
|
||||
# Default power mode: can be set to 0, 1, or 2
|
||||
NV_DEFAULT_MODE 0
|
||||
panelresolution=1280X720
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 5 5 5
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
NV_ECO_CPU_CORE_CAP 2 2 2
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=1440X810
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 5 5 5
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
NV_ECO_CPU_CORE_CAP 2 2 2
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
panelresolution=-1X-1
|
||||
NV_FPSLIMIT 0 0 0
|
||||
NV_MAX_CORES 0 0 0
|
||||
NV_MIN_CORES 2 2 2
|
||||
NV_MAX_FREQ 0 0 0
|
||||
NV_MIN_FREQ 1100000 0 0
|
||||
NV_MAX_GPU_FREQ 0 0 0
|
||||
NV_MIN_GPU_FREQ 0 0 0
|
||||
NV_APM_CPU_BOOST 5 0 0
|
||||
NV_APM_GPU_BOOST 5 0 0
|
||||
NV_APM_FRT_BOOST 5 0 0
|
||||
NV_APM_FRT_MIN 20 15 15
|
||||
NV_APM_LOADAPPFRT 0 0 0
|
||||
NV_PBC_SYSPOWER_CAP 15000 11000 8500
|
||||
NV_PBC_BATCURRENT_CAP 5000 5000 4100
|
||||
NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_FAN_STATE_CAP 4 4 4
|
||||
NV_ECO_MAX_FREQ 1400000 1400000 1400000
|
||||
NV_ECO_MAX_GPU_FREQ 700000 700000 700000
|
||||
NV_ECO_PBC_LIMIT 8500 8500 8500
|
||||
NV_ECO_THRESHOLD 5 5 5
|
||||
NV_ECO_THRESHYST 5 5 5
|
||||
NV_ECO_CPU_CORE_CAP 2 2 2
|
||||
/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29
|
||||
@@ -23,12 +23,3 @@ LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/usr/keylayout
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := gpio-keys-loki.kl
|
||||
LOCAL_SRC_FILES := gpio-keys-loki.kl
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/usr/keylayout
|
||||
include $(BUILD_PREBUILT)
|
||||
@@ -1,4 +0,0 @@
|
||||
key 116 POWER
|
||||
key 115 VOLUME_UP
|
||||
key 114 VOLUME_DOWN
|
||||
|
||||
+2
-14
@@ -37,20 +37,8 @@
|
||||
"target_path": "hardware/nvidia/light"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_nvidia_platform_t210_foster",
|
||||
"target_path": "hardware/nvidia/platform/t210/foster"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_nvidia_platform_t210_jetson",
|
||||
"target_path": "hardware/nvidia/platform/t210/jetson"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_nvidia_platform_t210b01_darcy",
|
||||
"target_path": "hardware/nvidia/platform/t210b01/darcy"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_nvidia_platform_t210b01_sif",
|
||||
"target_path": "hardware/nvidia/platform/t210b01/sif"
|
||||
"repository": "android_hardware_nvidia_platform_t210_icosa",
|
||||
"target_path": "hardware/nvidia/platform/t210/icosa"
|
||||
},
|
||||
{
|
||||
"repository": "android_hardware_nvidia_power",
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2020 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -19,7 +19,7 @@ TARGET_SCREEN_HEIGHT := 1920
|
||||
TARGET_SCREEN_WIDTH := 1080
|
||||
|
||||
# Unified device support
|
||||
TARGET_INIT_VENDOR_LIB := //device/nvidia/foster:libinit_foster
|
||||
TARGET_INIT_VENDOR_LIB := //device/nintendo/nx:libinit_nx
|
||||
PRODUCT_VENDOR_PROPERTY_BLACKLIST := \
|
||||
ro.product.vendor.device \
|
||||
ro.product.vendor.model \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -12,12 +12,24 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Inherit some common lineage stuff.
|
||||
|
||||
# Inherit some common LineageOS stuff.
|
||||
$(call inherit-product, vendor/lineage/config/common_full_tv.mk)
|
||||
|
||||
# Inherit device configuration for foster.
|
||||
include device/nvidia/foster/lineage.mk
|
||||
$(call inherit-product, device/nvidia/foster/full_foster.mk)
|
||||
# Inherit NX-specific LineageOS additions.
|
||||
include device/nintendo/nx/lineage.mk
|
||||
|
||||
PRODUCT_NAME := lineage_foster
|
||||
PRODUCT_DEVICE := foster
|
||||
# Inherit some common AOSP stuff.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
|
||||
# Inherit some common ATV stuff.
|
||||
$(call inherit-product, device/google/atv/products/atv_base.mk)
|
||||
|
||||
# Inherit device configuration for nx.
|
||||
$(call inherit-product, device/nintendo/nx/device.mk)
|
||||
|
||||
PRODUCT_NAME := lineage_nx
|
||||
PRODUCT_DEVICE := nx
|
||||
PRODUCT_BRAND := Nintendo
|
||||
PRODUCT_MANUFACTURER := Nintendo
|
||||
PRODUCT_MODEL := Switch
|
||||
+1
-75
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := audio_effects.xml
|
||||
@@ -30,76 +30,6 @@ LOCAL_SRC_FILES := audio_policy_configuration.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := audio_policy_configuration_dragon.xml
|
||||
LOCAL_MODULE_STEM := audio_policy_configuration.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := audio_policy_configuration_loki.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := audio/sku_dragon
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := audio_policy_configuration_loki.xml
|
||||
LOCAL_MODULE_STEM := audio_policy_configuration.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := audio_policy_configuration_loki.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := audio/sku_loki
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := audio_policy_configuration_nx.xml
|
||||
LOCAL_MODULE_STEM := audio_policy_configuration.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := audio_policy_configuration_nx.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := audio/sku_nx
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := dragon_nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := dragon_nvaudio_conf.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nx_nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := nx_nvaudio_conf.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := loki_e_base_nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := loki_nvaudio_conf.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := loki_e_lte_nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := loki_nvaudio_conf.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := loki_e_wifi_nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := loki_nvaudio_conf.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvaudio_conf.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
@@ -112,11 +42,7 @@ include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := media_codecs.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
ifneq (,$(findstring nvmm,$(TARGET_TEGRA_OMX)))
|
||||
LOCAL_SRC_FILES := media_codecs.xml
|
||||
else
|
||||
LOCAL_SRC_FILES := media_codecs_sw.xml
|
||||
endif
|
||||
LOCAL_ODM_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!-- Copyright (C) 2018-2021 NVIDIA Corporation. All rights reserved. -->
|
||||
<!-- Copyright (C) 2018-2019 NVIDIA Corporation. All rights reserved. -->
|
||||
|
||||
<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
||||
@@ -47,52 +47,62 @@
|
||||
<!-- Primary Audio HAL -->
|
||||
<module name="primary" halVersion="2.0">
|
||||
<attachedDevices>
|
||||
<item>DummySpeaker</item>
|
||||
<item>Built-In Mic</item>
|
||||
<item>Speaker</item>
|
||||
</attachedDevices>
|
||||
<defaultOutputDevice>DummySpeaker</defaultOutputDevice>
|
||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||
|
||||
<!-- Primary HAL mixPorts and devicePorts -->
|
||||
<xi:include href="primary_module_mixports.xml"/>
|
||||
<xi:include href="primary_module_deviceports_tv.xml"/>
|
||||
<xi:include href="/vendor/etc/primary_module_mixports.xml"/>
|
||||
<xi:include href="/vendor/etc/primary_module_deviceports.xml"/>
|
||||
|
||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||
<routes>
|
||||
<!-- Playback routes -->
|
||||
<route type="mix" sink="DummySpeaker"
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="AUX Digital"
|
||||
sources="primary_output,multichannel,passthrough,hra"/>
|
||||
<route type="mix" sink="Digital Dock HS"
|
||||
sources="primary_output"/>
|
||||
|
||||
<!-- Capture routes -->
|
||||
<route type="mix" sink="primary_input"
|
||||
sources="Built-In Mic,Digital Dock HS Mic"/>
|
||||
sources="BT SCO Headset Mic,Digital Dock HS Mic,AudioIP-In"/>
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
||||
<!-- A2DP Input Audio HAL -->
|
||||
<xi:include href="a2dp_in_audio_policy_configuration.xml"/>
|
||||
<xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Usb Audio HAL -->
|
||||
<xi:include href="usb_audio_policy_configuration.xml"/>
|
||||
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Remote Submix Audio HAL -->
|
||||
<xi:include href="r_submix_audio_policy_configuration.xml"/>
|
||||
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Bluetooth Audio HAL -->
|
||||
<xi:include href="bluetooth_audio_policy_configuration.xml"/>
|
||||
<xi:include href="/vendor/etc/bluetooth_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- MSD Audio HAL -->
|
||||
<xi:include href="msd_audio_policy_configuration.xml"/>
|
||||
<xi:include href="/vendor/etc/msd_audio_policy_configuration.xml"/>
|
||||
</modules>
|
||||
<!-- End of Modules section -->
|
||||
|
||||
<!-- Volume section -->
|
||||
|
||||
<xi:include href="audio_policy_volumes.xml"/>
|
||||
<xi:include href="default_volume_tables.xml"/>
|
||||
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
||||
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
||||
|
||||
<!-- End of Volume section -->
|
||||
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Copyright (C) 2015 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.
|
||||
-->
|
||||
<!-- Copyright (C) 2018-2019 NVIDIA Corporation. All rights reserved. -->
|
||||
|
||||
<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
||||
|
||||
<!-- Global configuration Decalaration -->
|
||||
<!--globalConfiguration speaker_drc_enabled="true"/-->
|
||||
|
||||
|
||||
<!-- Modules section:
|
||||
There is one section per audio HW module present on the platform.
|
||||
Each module section will contains two mandator y tags for audio HAL “halVersion” and “name”.
|
||||
The module names are the same as in current .conf file:
|
||||
“primary”, “A2DP”, “remote_submix”, “USB”
|
||||
Each module will contain the following sections:
|
||||
“devicePorts”: a list of device descriptors for all input and output devices accessible via this
|
||||
module.
|
||||
This contains both permanently attached devices and removable devices.
|
||||
“mixPorts”: listing all output and input streams exposed by the audio HAL
|
||||
“routes”: list of possible connections between input and output devices or between stream and
|
||||
devices.
|
||||
"route": is defined by an attribute:
|
||||
-"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
|
||||
-"sink": the sink involved in this route
|
||||
-"sources": all the sources than can be connected to the sink via vis route
|
||||
“attachedDevices”: permanently attached devices.
|
||||
The attachedDevices section is a list of devices names. The names correspond to device names
|
||||
defined in <devicePorts> section.
|
||||
“defaultOutputDevice”: device to be used by default when no policy rule applies
|
||||
-->
|
||||
<modules>
|
||||
<!-- Primary Audio HAL -->
|
||||
<module name="primary" halVersion="2.0">
|
||||
<attachedDevices>
|
||||
<item>Speaker</item>
|
||||
<item>Built-In Mic</item>
|
||||
</attachedDevices>
|
||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||
|
||||
<!-- Primary HAL mixPorts and devicePorts -->
|
||||
<xi:include href="/vendor/etc/primary_module_mixports.xml"/>
|
||||
<xi:include href="/vendor/etc/primary_module_deviceports.xml"/>
|
||||
|
||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||
<routes>
|
||||
<!-- Playback routes -->
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="AUX Digital"
|
||||
sources="primary_output,multichannel,passthrough,hra"/>
|
||||
<route type="mix" sink="Digital Dock HS"
|
||||
sources="primary_output"/>
|
||||
|
||||
<!-- Capture routes -->
|
||||
<route type="mix" sink="primary_input"
|
||||
sources="Built-In Mic,BT SCO Headset Mic,Digital Dock HS Mic,AudioIP-In"/>
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
||||
<!-- A2DP Input Audio HAL -->
|
||||
<xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Usb Audio HAL -->
|
||||
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Remote Submix Audio HAL -->
|
||||
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Bluetooth Audio HAL -->
|
||||
<xi:include href="/vendor/etc/bluetooth_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- MSD Audio HAL -->
|
||||
<xi:include href="/vendor/etc/msd_audio_policy_configuration.xml"/>
|
||||
</modules>
|
||||
<!-- End of Modules section -->
|
||||
|
||||
<!-- Volume section -->
|
||||
|
||||
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
||||
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
||||
|
||||
<!-- End of Volume section -->
|
||||
|
||||
</audioPolicyConfiguration>
|
||||
@@ -1,109 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Copyright (C) 2015 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.
|
||||
-->
|
||||
<!-- Copyright (C) 2018-2019 NVIDIA Corporation. All rights reserved. -->
|
||||
|
||||
<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
||||
|
||||
<!-- Global configuration Decalaration -->
|
||||
<!--globalConfiguration speaker_drc_enabled="true"/-->
|
||||
|
||||
|
||||
<!-- Modules section:
|
||||
There is one section per audio HW module present on the platform.
|
||||
Each module section will contains two mandator y tags for audio HAL “halVersion” and “name”.
|
||||
The module names are the same as in current .conf file:
|
||||
“primary”, “A2DP”, “remote_submix”, “USB”
|
||||
Each module will contain the following sections:
|
||||
“devicePorts”: a list of device descriptors for all input and output devices accessible via this
|
||||
module.
|
||||
This contains both permanently attached devices and removable devices.
|
||||
“mixPorts”: listing all output and input streams exposed by the audio HAL
|
||||
“routes”: list of possible connections between input and output devices or between stream and
|
||||
devices.
|
||||
"route": is defined by an attribute:
|
||||
-"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
|
||||
-"sink": the sink involved in this route
|
||||
-"sources": all the sources than can be connected to the sink via vis route
|
||||
“attachedDevices”: permanently attached devices.
|
||||
The attachedDevices section is a list of devices names. The names correspond to device names
|
||||
defined in <devicePorts> section.
|
||||
“defaultOutputDevice”: device to be used by default when no policy rule applies
|
||||
-->
|
||||
<modules>
|
||||
<!-- Primary Audio HAL -->
|
||||
<module name="primary" halVersion="2.0">
|
||||
<attachedDevices>
|
||||
<item>Speaker</item>
|
||||
</attachedDevices>
|
||||
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||
|
||||
<!-- Primary HAL mixPorts and devicePorts -->
|
||||
<xi:include href="/vendor/etc/primary_module_mixports.xml"/>
|
||||
<xi:include href="/vendor/etc/primary_module_deviceports.xml"/>
|
||||
|
||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||
<routes>
|
||||
<!-- Playback routes -->
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary_output"/>
|
||||
<route type="mix" sink="AUX Digital"
|
||||
sources="primary_output,multichannel,passthrough,hra"/>
|
||||
<route type="mix" sink="Digital Dock HS"
|
||||
sources="primary_output"/>
|
||||
|
||||
<!-- Capture routes -->
|
||||
<route type="mix" sink="primary_input"
|
||||
sources="BT SCO Headset Mic,Digital Dock HS Mic,AudioIP-In"/>
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
||||
<!-- A2DP Input Audio HAL -->
|
||||
<xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Usb Audio HAL -->
|
||||
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Remote Submix Audio HAL -->
|
||||
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Bluetooth Audio HAL -->
|
||||
<xi:include href="/vendor/etc/bluetooth_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- MSD Audio HAL -->
|
||||
<xi:include href="/vendor/etc/msd_audio_policy_configuration.xml"/>
|
||||
</modules>
|
||||
<!-- End of Modules section -->
|
||||
|
||||
<!-- Volume section -->
|
||||
|
||||
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
||||
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
||||
|
||||
<!-- End of Volume section -->
|
||||
|
||||
</audioPolicyConfiguration>
|
||||
@@ -1,217 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AudioConfigs version="2">
|
||||
<card name="tegra-hda">
|
||||
<pcm_config name ="hdmi-playback"
|
||||
device_id="3"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="8"
|
||||
start_threshold="2047"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"
|
||||
devices="hdmi"/>
|
||||
|
||||
<param name="HDMI HW Latency" val="50"/>
|
||||
<param name="DP DEVICE ID" val="3"/>
|
||||
</card>
|
||||
<card name="tegra-snd-t210ref-mobile-rt5677">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="2"
|
||||
start_threshold="1023"
|
||||
stop_threshold="1024"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="0"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="ulp" val="0"/>
|
||||
<param name="ulp formats" val="mp3 aac"/>
|
||||
<!-- <param name="builtin speaker" val="0"/>-->
|
||||
<param name="nvoice" val="0"/>
|
||||
<!-- <param name="safe-routing" val="1"/>
|
||||
<param name="spkprot-flag" val="CPU"/>-->
|
||||
<param name="HW Rates" val="48000 44100"/>
|
||||
<param name="flags" val="AUDIO_OUTPUT_FLAG_PRIMARY"/>
|
||||
|
||||
<!-- Boot ADSP -->
|
||||
<ctl name="x ADSP init" val="1"/>
|
||||
|
||||
<!-- Keep MIXER output ready for "adsp-spkprot" or "adsp-bypass"
|
||||
<ctl name="x I2S3 Mux" val="ADMAIF3"/>
|
||||
<ctl name="x ADMAIF3 Mux" val="I2S2"/>
|
||||
|
||||
<ctl name="x I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="x ADMAIF2 Mux" val="I2S2"/>-->
|
||||
<ctl name="x I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="x ADMAIF1 Mux" val="I2S1"/>
|
||||
|
||||
<ctl name="x I2S1 Sample Rate" val="48000"/>
|
||||
|
||||
<ctl name="x DAC1 Playback Volume" val="87"/>
|
||||
<ctl name="x STO1 ADC Boost Volume" val="2"/>
|
||||
<ctl name="x STO2 ADC Boost Volume" val="2"/>
|
||||
<ctl name="x STO3 ADC Boost Volume" val="0"/>
|
||||
<ctl name="x Mono ADC Boost Volume" val="2"/>
|
||||
<ctl name="x ADC1 Capture Volume" val="23"/>
|
||||
<ctl name="x ADC2 Capture Volume" val="23"/>
|
||||
<ctl name="x ADC3 Capture Volume" val="23"/>
|
||||
<ctl name="x Mic Volume" val="207"/>
|
||||
<ctl name="x Frontend PGA Volume" val="1"/>
|
||||
|
||||
<ctl name="x Stereo1 DMIC Mux" val="DMIC2"/>
|
||||
<ctl name="x Stereo1 ADC2 Mux" val="DMIC"/>
|
||||
<ctl name="x Stereo2 DMIC Mux" val="DMIC1"/>
|
||||
<ctl name="x Stereo2 ADC2 Mux" val="DMIC"/>
|
||||
|
||||
<ctl name="x Stereo3 ADC1 Mux" val="Stereo DAC MIX"/>
|
||||
<ctl name="x DAC1 Mux" val="IF1 DAC 01"/>
|
||||
<ctl name="x DAC1 MIXL DAC1 Switch" val="1"/>
|
||||
<ctl name="x DAC1 MIXR DAC1 Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXL DAC1 L Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC1 R Switch" val="1"/>
|
||||
<ctl name="x DAC3 L Mux" val="IF3 DAC L"/>
|
||||
<ctl name="x DAC3 R Mux" val="IF3 DAC R"/>
|
||||
<ctl name="x DD1 MIXL DAC3 L Switch" val="1"/>
|
||||
<ctl name="x DD1 MIXR DAC3 R Switch" val="1"/>
|
||||
<ctl name="x DACL Mux" val="DACL"/>
|
||||
<ctl name="x DACR Mux" val="DACR"/>
|
||||
|
||||
<ctl name="x Sto1 ADC MIXL ADC2 Switch" val="1"/>
|
||||
<ctl name="x Sto1 ADC MIXR ADC2 Switch" val="1"/>
|
||||
<ctl name="x Sto2 ADC MIXL ADC2 Switch" val="1"/>
|
||||
<ctl name="x Sto2 ADC MIXR ADC2 Switch" val="1"/>
|
||||
<ctl name="x Sto3 ADC MIXL ADC1 Switch" val="1"/>
|
||||
<ctl name="x Sto3 ADC MIXR ADC1 Switch" val="1"/>
|
||||
|
||||
<!--
|
||||
IF1 - link to SoC
|
||||
IF2 - link to Speaker
|
||||
IF3 - link to Headset
|
||||
-->
|
||||
<ctl name="x IF1 ADC1 Mux" val="STO1 ADC MIX"/>
|
||||
<ctl name="x IF1 ADC2 Mux" val="STO2 ADC MIX"/>
|
||||
<ctl name="x IF1 ADC3 Mux" val="OB45"/>
|
||||
<ctl name="x IF1 ADC TDM Swap Mux" val="1/2/3/4"/>
|
||||
|
||||
<ctl name="x IF2 ADC1 Mux" val="OB01"/>
|
||||
<ctl name="x IF2 ADC2 Mux" val="OB23"/>
|
||||
<ctl name="x IF2 ADC3 Mux" val="OB45"/>
|
||||
<ctl name="x IF2 ADC TDM Swap Mux" val="2/3/1/4"/>
|
||||
|
||||
<ctl name="x IF3 ADC Mux" val="OB01"/>
|
||||
|
||||
<ctl name="x IF2 ADC3 Swap Mux" val="L/R"/>
|
||||
|
||||
<ctl name="x Int Spk Switch" val="0"/>
|
||||
<ctl name="x Headphone Jack Switch" val="0"/>
|
||||
<ctl name="x Mic Jack Switch" val="0"/>
|
||||
<ctl name="x Int Mic Switch" val="0"/>
|
||||
|
||||
<path name="adsp-bypass">
|
||||
<!-- No specifc controls now -->
|
||||
</path>
|
||||
|
||||
<path name="rt5677-speaker">
|
||||
<ctl name="x Headphone Jack Switch" val="0"/>
|
||||
<ctl name="x ADC3 Capture Volume" val="28"/>
|
||||
<ctl name="x IF2 ADC3 Mux" val="STO3 ADC MIX"/>
|
||||
<ctl name="x IF3 ADC Mux" val="OB01"/>
|
||||
<ctl name="x Int Spk Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="rt5677-headphone">
|
||||
<ctl name="x Int Spk Switch" val="0"/>
|
||||
<ctl name="x ADC3 Capture Volume" val="23"/>
|
||||
<ctl name="x IF2 ADC3 Mux" val="OB45"/>
|
||||
<ctl name="x IF3 ADC Mux" val="STO3 ADC MIX"/>
|
||||
<ctl name="x Headphone Jack Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<!-- dmic -->
|
||||
<path name="builtin-mic">
|
||||
<ctl name="x Mic Jack Switch" val="0"/>
|
||||
<ctl name="x Stereo1 ADC2 Mux" val="DMIC"/>
|
||||
<ctl name="x Int Mic Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<!-- analog mic -->
|
||||
<path name="headset-mic">
|
||||
<ctl name="x Int Mic Switch" val="0"/>
|
||||
<ctl name="x Stereo1 ADC2 Mux" val="DD MIX1"/>
|
||||
<ctl name="x Mic Jack Switch" val="1"/>
|
||||
<ctl name="x STO1 ADC Boost Volume" val="2"/>
|
||||
<ctl name="x ADC1 Capture Volume" val="27"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker">
|
||||
<path name="rt5677-speaker"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headphone">
|
||||
<path name="rt5677-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headset">
|
||||
<path name="headphone"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headphone">
|
||||
<ctl name="x ADC3 Capture Volume" val="23"/>
|
||||
|
||||
<ctl name="x IF2 ADC3 Mux" val="STO3 ADC MIX"/>
|
||||
<ctl name="x IF3 ADC Mux" val="STO3 ADC MIX"/>
|
||||
<ctl name="x Int Spk Switch" val="1"/>
|
||||
<ctl name="x Headphone Jack Switch" val="1"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headset">
|
||||
<path name="speaker-and-headphone"/>
|
||||
</path>
|
||||
</card>
|
||||
</AudioConfigs>
|
||||
@@ -1,790 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2012 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
proprietary rights in and to this software and related documentation. Any
|
||||
use, reproduction, disclosure or distribution of this software and related
|
||||
documentation without an express license agreement from NVIDIA Corporation
|
||||
is strictly prohibited.
|
||||
|
||||
This file is used to declare various board specific audio configs
|
||||
-->
|
||||
|
||||
<!--
|
||||
Basic/Offload Playback on HP/HS
|
||||
- - - - - - - - - - - - - - - -
|
||||
(Music-playback) ADMAIF-IN1 - - - - - -> AMIXER-IN1\
|
||||
(Fast-playback) ADMAIF-IN6 - - - - - -> AMIXER-IN6 | - > AMIXER-OUT1 - - > I2S-OUT1
|
||||
(Offload) ADSP - > ADMAIF-IN5 - > SFC1 - > AMIXER-IN2/ |
|
||||
(Visualizer-capture) ADMAIF-OUT7 <- - - - - - - - - - - - - - - - - - - - | - > I2S-OUT4 - \
|
||||
(GameCast) ADMAIF-OUT4 < - - - - - - - - - - - - - - - - - - - - - - I2S-IN4 < -/
|
||||
|
||||
(Music-capture) ADMAIF-IN1 < - - - - - - - - - - - - - - - - - - - - - - - I2S-IN1
|
||||
|
||||
Basic/Offload Playback on SPEAKER
|
||||
- - - - - - - - - - - - - - - - -
|
||||
(Music-playback) ADMAIF-IN1 - - - - - -> AMIXER-IN1\
|
||||
(Fast-playback) ADMAIF-IN6 - - - - - -> AMIXER-IN6 | - > AMIXER-OUT1 - - -|
|
||||
(Offload) ADSP - > ADMAIF-IN5 - > SFC1 - > AMIXER-IN2/ | | |
|
||||
(Visualizer-capture) ADMAIF-OUT7 <- - - - - - - - - - - - - - - - - - - - / | |
|
||||
| \- > I2S-OUT4 - \
|
||||
(GameCast) ADMAIF-OUT4 < - - - - - - - - - - - - - - - - - - - - -|- - - I2S-IN4 < -/
|
||||
|
|
||||
\ - -> I2S-OUT3 - -\
|
||||
(Speaker-protection) ADSP < - ADMAIF-OUT3 - - - - - - - - - - - - - - - - - - - - - - - - - I2S-IN3 < - /
|
||||
(Speaker-protection) ADSP - > ADMAIF-IN4 - - - - - - - - - - - - - - - - - - - - - - - > I2S-OUT1
|
||||
|
||||
(Music-capture) ADMAIF-IN1 < - - - - - - - - - - - - - - - - - - - - - - - I2S-IN1
|
||||
|
||||
HRA Playback
|
||||
- - - - - - -
|
||||
(Music-playback) ADMAIF-IN1 - > SFC1 -> AMIXER-IN1\
|
||||
(Fast-playback) ADMAIF-IN6 - > SFC2 -> AMIXER-IN6 | - > AMIXER-OUT1 - - > I2S-OUT1
|
||||
(HRA) ADMAIF-IN3 - - - - - - > AMIXER-IN3/
|
||||
|
||||
(Music-capture) ADMAIF-IN1 < - - - - - - - - - - - - - - - - - - - - - - - I2S-IN1
|
||||
|
||||
BT SCO
|
||||
- - - -
|
||||
(BT-SCO-playback) ADMAIF-IN2 - - > I2S-OUT2
|
||||
(BT-SCO-capture) ADMAIF-OUT2 < - I2S-IN2
|
||||
-->
|
||||
|
||||
<AudioConfigs version="2">
|
||||
<card name="tegra-snd-t210ref-mobile-es755">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"
|
||||
start_threshold="4095"
|
||||
stop_threshold="-1"
|
||||
silence_threshold="0"
|
||||
silence_size="-1"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="fast-playback"
|
||||
device_id="5"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="2"
|
||||
start_threshold="255"
|
||||
stop_threshold="-1"
|
||||
silence_threshold="0"
|
||||
silence_size="-1"
|
||||
avail_min="1"
|
||||
devices="speaker|earpiece|headset|headphone|rsubmix"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="4096"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="builtin-mic|headset-mic"/>
|
||||
|
||||
<pcm_config name="fast-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="builtin-mic|headset-mic"/>
|
||||
|
||||
<pcm_config name="rsubmix-ahub-capture"
|
||||
device_id="3"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="2048"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="rsubmix-in"/>
|
||||
|
||||
<!-- Period size and period count for compress device
|
||||
actually mean compr_frag_size and no of fragments
|
||||
-->
|
||||
<pcm_config name="offload-playback"
|
||||
device_id="95"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="32768"
|
||||
period_count="4"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="bt-sco|rsubmix"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="bt-sco-mic"/>
|
||||
|
||||
<pcm_config name="bt-sco-wb-playback"
|
||||
device_id="1"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="4"
|
||||
start_threshold="1023"
|
||||
stop_threshold="1024"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="bt-sco|rsubmix"/>
|
||||
|
||||
<pcm_config name="bt-sco-wb-capture"
|
||||
device_id="1"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="1024"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="bt-sco-mic"/>
|
||||
|
||||
<pcm_config name="hra-playback"
|
||||
device_id="2"
|
||||
rate="96000"
|
||||
channels="2"
|
||||
bps="32"
|
||||
period_size="1024"
|
||||
period_count="4"
|
||||
start_threshold="4095"
|
||||
stop_threshold="-1"
|
||||
silence_threshold="0"
|
||||
silence_size="-1"
|
||||
avail_min="1"
|
||||
devices="headset|headphone"/>
|
||||
|
||||
<pcm_config name="hra-capture"
|
||||
device_id="2"
|
||||
rate="96000"
|
||||
channels="2"
|
||||
bps="32"
|
||||
period_size="1024"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="4096"
|
||||
silence_threshold="0"
|
||||
avail_min="1"
|
||||
devices="builtin-mic|headset-mic"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="1"/>
|
||||
<param name="safe-routing" val="1"/>
|
||||
<!--Speaker protection flag:
|
||||
None -> Disable speaker protection
|
||||
CPU -> CPU based speaker protection
|
||||
ADSP -> ADSP based speaker protection-->
|
||||
<param name="spkprot-flag" val="ADSP"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<!-- Codec capture & playback-->
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
<ctl name="Adder1 RX1" val="1"/>
|
||||
<ctl name="Mixer Enable" val="1"/>
|
||||
<ctl name="MIXER1-1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="codec-x rate" val="None"/>
|
||||
|
||||
<!-- FAST path -->
|
||||
<ctl name="MIXER1-6 Mux" val="ADMAIF6"/>
|
||||
<ctl name="Adder1 RX6" val="1"/>
|
||||
|
||||
<!-- Visualizer control to capture pcm data-->
|
||||
<ctl name="ADMAIF7 Mux" val="MIXER1-1"/>
|
||||
|
||||
<!-- BT SCO -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
|
||||
<!-- Boot ADSP -->
|
||||
<ctl name="ADSP init" val="1"/>
|
||||
|
||||
<!-- ADSP path for Offload (reset controls) -->
|
||||
<!-- Maintain below order of disconnecting APM connections -->
|
||||
<ctl name="MP3-DEC1 MUX" val="None"/>
|
||||
<ctl name="AAC-DEC1 MUX" val="None"/>
|
||||
<ctl name="SRC MUX" val="None"/>
|
||||
<ctl name="ADMA3 MUX" val="None"/>
|
||||
<ctl name="APM-OUT2 MUX" val="None"/>
|
||||
<ctl name="ADSP-ADMAIF5 MUX" val="None"/>
|
||||
<ctl name="APM-IN2 MUX" val="None"/>
|
||||
<ctl name="Adder1 RX2" val="1"/>
|
||||
<!-- Add SFC block during offload playback -->
|
||||
<ctl name="SFC1 Mux" val="ADMAIF5"/>
|
||||
<ctl name="MIXER1-2 Mux" val="SFC1"/>
|
||||
|
||||
<!-- ADSP path for speaker protection -->
|
||||
<ctl name="I2S3 Loopback" val="1"/>
|
||||
<ctl name="ADMAIF3 Mux" val="I2S3"/>
|
||||
<ctl name="APM-IN1 MUX" val="ADSP-ADMAIF3"/>
|
||||
<ctl name="ADMA1 MUX" val="APM-IN1"/>
|
||||
<ctl name="SPKPROT-SW MUX" val="ADMA1"/>
|
||||
<ctl name="ADMA2 MUX" val="SPKPROT-SW"/>
|
||||
<ctl name="APM-OUT1 MUX" val="ADMA2"/>
|
||||
<ctl name="ADSP-ADMAIF4 MUX" val="APM-OUT1"/>
|
||||
<!-- Set higher priority for speaker protection APM -->
|
||||
<ctl name="APM1 Priority" val="49"/>
|
||||
<!-- Set ADSP clock required in MHz for speaker protection APM -->
|
||||
<ctl name="APM1 Min ADSP Clock" val="250"/>
|
||||
|
||||
<!-- I2S bit format for codec -->
|
||||
<ctl name="I2S1 codec bit format" val="32"/>
|
||||
|
||||
<!-- Reset value of codec controls -->
|
||||
<!-- Reset codec fw routes -->
|
||||
<ctl name="Reset" val="1"/>
|
||||
<ctl name="ES755 Power State" val="Normal"/>
|
||||
<ctl name="PT_VP Algorithm" val="Off"/>
|
||||
<ctl name="VP AEC" val="Off"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="None"/>
|
||||
<ctl name="DAC0.0 MUX" val="None"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="None"/>
|
||||
<ctl name="DAC0.1 MUX" val="None"/>
|
||||
<ctl name="VP Primary MUX" val="None"/>
|
||||
<ctl name="PCM0.0 MUX" val="None"/>
|
||||
<ctl name="VP Secondary MUX" val="None"/>
|
||||
<ctl name="PCM0.1 MUX" val="None"/>
|
||||
<ctl name="VP Algorithm" val="Off"/>
|
||||
<ctl name="DHWPT Algorithm" val="Off"/>
|
||||
<ctl name="VP FEIN MUX" val="None"/>
|
||||
<ctl name="VP FEIN2 MUX" val="None"/>
|
||||
<ctl name="Algorithm Rate" val="None"/>
|
||||
|
||||
<ctl name="HPR MIXER DAC0R" val="0"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="0"/>
|
||||
<ctl name="HP Gain" val="0"/>
|
||||
|
||||
<ctl name="SPKRR MIXER DAC0R" val="0"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="0"/>
|
||||
<ctl name="SPKR Gain" val="0"/>
|
||||
<ctl name="Int Spk Switch" val="0"/>
|
||||
|
||||
<ctl name="MIC0 PGA Mux" val="None"/>
|
||||
<ctl name="MICHS Gain" val="0"/>
|
||||
<ctl name="MICHS SEL MUX" val="MIC1_PGA"/>
|
||||
|
||||
<!-- Reset value of HRA controls-->
|
||||
<ctl name="DHWPT Enable" val="0"/>
|
||||
<ctl name="Bits per Sample" val="0"/>
|
||||
<ctl name="I2S Channels" val="0"/>
|
||||
<ctl name="FrameSync SEL" val="0"/>
|
||||
<ctl name="codec-x format" val="None"/>
|
||||
<ctl name="SFC1 input bit format" val="16"/>
|
||||
<ctl name="SFC2 input bit format" val="16"/>
|
||||
<ctl name="I2S1 input bit format" val="16"/>
|
||||
|
||||
<!-- Keep adsp bypass as default to avoid MIXER output floating -->
|
||||
<ctl name="I2S1 Mux" val="MIXER1-1"/>
|
||||
<ctl name="I2S3 Mux" val="None"/>
|
||||
|
||||
<!-- Route MIXER output to ADSP speaker protection -->
|
||||
<path name="adsp-spkprot">
|
||||
<!-- Route via ADSP -->
|
||||
<ctl name="I2S3 Mux" val="MIXER1-1"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF4"/>
|
||||
<!-- Bypass ADSP -->
|
||||
<!--ctl name="I2S1 Mux" val="MIXER1-1"/>
|
||||
<ctl name="I2S3 Mux" val="None"/-->
|
||||
</path>
|
||||
|
||||
<!-- Route MIXER output to I2S -->
|
||||
<path name="adsp-bypass">
|
||||
<ctl name="I2S1 Mux" val="MIXER1-1"/>
|
||||
<ctl name="I2S3 Mux" val="None"/>
|
||||
</path>
|
||||
|
||||
<!-- ADSP path for MP3 Offload -->
|
||||
<path name="adsp-mp3dec">
|
||||
<!-- Maintain this order to ensure proper disconnection.
|
||||
Controls are executed in reverse order when closing. -->
|
||||
<ctl name="APM-IN2 MUX" val="ADSP-FE3"/>
|
||||
<ctl name="ADSP-ADMAIF5 MUX" val="APM-OUT2"/>
|
||||
<ctl name="APM-OUT2 MUX" val="ADMA3"/>
|
||||
<ctl name="ADMA3 MUX" val="SRC"/>
|
||||
<ctl name="SRC MUX" val="MP3-DEC1"/>
|
||||
<ctl name="MP3-DEC1 MUX" val="APM-IN2"/>
|
||||
<!-- Set default priority for offload APM -->
|
||||
<ctl name="APM2 Priority" val="48"/>
|
||||
</path>
|
||||
|
||||
<!-- ADSP path for AAC Offload -->
|
||||
<path name="adsp-aacdec">
|
||||
<!-- Maintain this order to ensure proper disconnection.
|
||||
Controls are executed in reverse order when closing. -->
|
||||
<ctl name="APM-IN2 MUX" val="ADSP-FE3"/>
|
||||
<ctl name="ADSP-ADMAIF5 MUX" val="APM-OUT2"/>
|
||||
<ctl name="APM-OUT2 MUX" val="ADMA3"/>
|
||||
<ctl name="ADMA3 MUX" val="SRC"/>
|
||||
<ctl name="SRC MUX" val="AAC-DEC1"/>
|
||||
<ctl name="AAC-DEC1 MUX" val="APM-IN2"/>
|
||||
<!-- Set default priority for offload APM -->
|
||||
<ctl name="APM2 Priority" val="48"/>
|
||||
</path>
|
||||
|
||||
<path name="es755-speaker">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="VP AEC" val="On"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="PRI Playback Mode" val="Stereo"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="es755-headphone">
|
||||
<ctl name="DHWPT Algorithm" val="On"/>
|
||||
<ctl name="DAC0.0 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.1 MUX" val="PCM0.1"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<ctl name="ES755 Power State" val="MP_Sleep"/>
|
||||
</path>
|
||||
|
||||
<path name="es755-headset">
|
||||
<ctl name="DHWPT Algorithm" val="On"/>
|
||||
<ctl name="DAC0.0 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.1 MUX" val="PCM0.1"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<ctl name="ES755 Power State" val="MP_Sleep"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-headphone">
|
||||
<path name="adsp-bypass"/>
|
||||
<ctl name="SFC1 input rate" val="48000"/>
|
||||
<ctl name="SFC2 input rate" val="48000"/>
|
||||
<ctl name="codec-x rate" val="96kHz"/>
|
||||
<ctl name="codec-x format" val="32"/>
|
||||
<ctl name="SFC1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="SFC2 Mux" val="ADMAIF6"/>
|
||||
<ctl name="MIXER1-6 Mux" val="SFC2"/>
|
||||
<ctl name="MIXER1-1 Mux" val="SFC1"/>
|
||||
<ctl name="MIXER1-3 Mux" val="ADMAIF3"/>
|
||||
<ctl name="Adder1 RX3" val="1"/>
|
||||
<ctl name="DHWPT Algorithm" val="On"/>
|
||||
<ctl name="DAC0.0 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.1 MUX" val="PCM0.1"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<ctl name="ES755 Power State" val="MP_Sleep"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-headset">
|
||||
<path name="adsp-bypass"/>
|
||||
<ctl name="SFC1 input rate" val="48000"/>
|
||||
<ctl name="SFC2 input rate" val="48000"/>
|
||||
<ctl name="codec-x rate" val="96kHz"/>
|
||||
<ctl name="codec-x format" val="32"/>
|
||||
<ctl name="SFC1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="SFC2 Mux" val="ADMAIF6"/>
|
||||
<ctl name="MIXER1-6 Mux" val="SFC2"/>
|
||||
<ctl name="MIXER1-1 Mux" val="SFC1"/>
|
||||
<ctl name="MIXER1-3 Mux" val="ADMAIF3"/>
|
||||
<ctl name="Adder1 RX3" val="1"/>
|
||||
<ctl name="DHWPT Algorithm" val="On"/>
|
||||
<ctl name="DAC0.0 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.1 MUX" val="PCM0.1"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<ctl name="ES755 Power State" val="MP_Sleep"/>
|
||||
</path>
|
||||
|
||||
<!-- Usecases paths -->
|
||||
<path name="speaker">
|
||||
<path name="es755-speaker"/>
|
||||
<path name="adsp-spkprot"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-speaker">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="Algorithm Rate" val="SR_16k"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
<path name="adsp-spkprot"/>
|
||||
</path>
|
||||
|
||||
<path name="headphone">
|
||||
<path name="es755-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-headphone">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="Algorithm Rate" val="SR_16k"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headset">
|
||||
<path name="es755-headset"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-headset">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="Algorithm Rate" val="SR_16k"/>
|
||||
<ctl name="VP Primary MUX" val="ADC0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="HPR MIXER DAC0R" val="1"/>
|
||||
<ctl name="HPL MIXER DAC0L" val="1"/>
|
||||
<ctl name="HP Gain" val="15"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="earpiece">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="VP AEC" val="On"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="PRI Playback Mode" val="Stereo"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="20"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-earpiece">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="Algorithm Rate" val="SR_16k"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="20"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headphone">
|
||||
<path name="es755-headphone"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
<path name="adsp-spkprot"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headset">
|
||||
<path name="es755-headset"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
<path name="adsp-spkprot"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-speaker-and-headphone">
|
||||
<path name="hra-headphone"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-speaker-and-headset">
|
||||
<path name="hra-headset"/>
|
||||
<ctl name="SPKRR MIXER DAC0R" val="1"/>
|
||||
<ctl name="SPKRL MIXER DAC0L" val="1"/>
|
||||
<ctl name="SPKR Gain" val="26"/>
|
||||
<ctl name="Int Spk Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="builtin-mic">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="VP AEC" val="On"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="Algo Preset 1" val="918"/>
|
||||
</path>
|
||||
|
||||
<path name="hp-builtin-mic">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="DHWPT Enable" val="1"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="Algo Preset 1" val="918"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-builtin-mic">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="DHWPT Enable" val="1"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="Algo Preset 1" val="918"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-builtin-mic">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="VP Primary MUX" val="PDMI0"/>
|
||||
<ctl name="VP Secondary MUX" val="PDMI1"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="Algo Preset 1" val="116"/>
|
||||
</path>
|
||||
|
||||
<path name="voice-rec-builtin-mic">
|
||||
<path name="builtin-mic"/>
|
||||
<ctl name="Algo Preset 1" val="942"/>
|
||||
</path>
|
||||
|
||||
<path name="voice-rec-hp-builtin-mic">
|
||||
<path name="hp-builtin-mic"/>
|
||||
<ctl name="Algo Preset 1" val="942"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-voice-rec-builtin-mic">
|
||||
<path name="hra-builtin-mic"/>
|
||||
<ctl name="Algo Preset 1" val="942"/>
|
||||
</path>
|
||||
|
||||
<path name="headset-mic">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="DHWPT Enable" val="1"/>
|
||||
<ctl name="VP Primary MUX" val="ADC0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="MIC0 PGA Mux" val="MIC-HS"/>
|
||||
<ctl name="MICHS Gain" val="15"/>
|
||||
<ctl name="MICHS SEL MUX" val="MIC0_PGA"/>
|
||||
<ctl name="Algo Preset 1" val="591"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-headset-mic">
|
||||
<ctl name="PT_VP Algorithm" val="On"/>
|
||||
<ctl name="DHWPT Enable" val="1"/>
|
||||
<ctl name="VP Primary MUX" val="ADC0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="Pass AUDIN1 MUX" val="PCM0.0"/>
|
||||
<ctl name="DAC0.0 MUX" val="Pass AUDOUT1"/>
|
||||
<ctl name="Pass AUDIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.1 MUX" val="Pass AUDOUT2"/>
|
||||
<ctl name="MIC0 PGA Mux" val="MIC-HS"/>
|
||||
<ctl name="MICHS Gain" val="15"/>
|
||||
<ctl name="MICHS SEL MUX" val="MIC0_PGA"/>
|
||||
<ctl name="Algo Preset 1" val="591"/>
|
||||
</path>
|
||||
|
||||
<path name="voip-headset-mic">
|
||||
<ctl name="VP Algorithm" val="On"/>
|
||||
<ctl name="VP Primary MUX" val="ADC0"/>
|
||||
<ctl name="PCM0.0 MUX" val="VP CSOUT1"/>
|
||||
<ctl name="PCM0.1 MUX" val="VP CSOUT2"/>
|
||||
<ctl name="VP FEIN MUX" val="PCM0.0"/>
|
||||
<ctl name="VP FEIN2 MUX" val="PCM0.1"/>
|
||||
<ctl name="DAC0.0 MUX" val="VP FEOUT1"/>
|
||||
<ctl name="DAC0.1 MUX" val="VP FEOUT2"/>
|
||||
<ctl name="MIC0 PGA Mux" val="MIC-HS"/>
|
||||
<ctl name="MICHS Gain" val="15"/>
|
||||
<ctl name="MICHS SEL MUX" val="MIC0_PGA"/>
|
||||
<ctl name="Algo Preset 1" val="591"/>
|
||||
</path>
|
||||
|
||||
<path name="voice-rec-headset-mic">
|
||||
<path name="headset-mic"/>
|
||||
<ctl name="Algo Preset 1" val="615"/>
|
||||
</path>
|
||||
|
||||
<path name="hra-voice-rec-headset-mic">
|
||||
<path name="hra-headset-mic"/>
|
||||
<ctl name="Algo Preset 1" val="615"/>
|
||||
</path>
|
||||
|
||||
<path name="gamecast-headset-mic">
|
||||
<path name="headset-mic"/>
|
||||
<ctl name="Algo Preset 1" val="966"/>
|
||||
</path>
|
||||
|
||||
<path name="gamecast-builtin-mic">
|
||||
<path name="builtin-mic"/>
|
||||
<ctl name="Algo Preset 1" val="966"/>
|
||||
</path>
|
||||
|
||||
<!-- Gamecast loopback path -->
|
||||
<path name="rsubmix">
|
||||
<ctl name="I2S4 Loopback" val="1"/>
|
||||
<ctl name="I2S4 Mux" val="MIXER1-1"/>
|
||||
</path>
|
||||
|
||||
<path name="rsubmix-in">
|
||||
<ctl name="ADMAIF4 Mux" val="I2S4"/>
|
||||
</path>
|
||||
|
||||
</card>
|
||||
|
||||
<card name="Tegra">
|
||||
<pcm_config name ="hdmi-playback"
|
||||
device_id="3"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="8"
|
||||
start_threshold="4095"
|
||||
stop_threshold="-1"
|
||||
silence_threshold="0"
|
||||
silence_size="-1"
|
||||
avail_min="1"
|
||||
devices="hdmi"/>
|
||||
|
||||
<param name="HW Rates" val="48000 44100 96000 192000"/>
|
||||
<param name="HDMI HW Latency" val="50"/>
|
||||
</card>
|
||||
|
||||
<card name="dummy">
|
||||
<pcm_config name ="rsubmix-playback"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"/>
|
||||
<pcm_config name ="rsubmix-capture"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"/>
|
||||
</card>
|
||||
|
||||
<card name="dummy">
|
||||
<pcm_config name="usb-controller-remote-playback"
|
||||
rate="32000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="2"
|
||||
start_threshold="1023"
|
||||
stop_threshold="-1"
|
||||
silence_threshold="0"
|
||||
silence_size="-1"
|
||||
avail_min="1"
|
||||
devices="blake"/>
|
||||
|
||||
<pcm_config name="usb-controller-remote-capture"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="2"
|
||||
start_threshold="1023"
|
||||
stop_threshold="1024"
|
||||
avail_min="1"
|
||||
devices="blake-in"/>
|
||||
</card>
|
||||
</AudioConfigs>
|
||||
@@ -1,81 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (C) 2012 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.
|
||||
-->
|
||||
|
||||
<!--
|
||||
<!DOCTYPE MediaCodecs [
|
||||
<!ELEMENT MediaCodecs (Decoders,Encoders)>
|
||||
<!ELEMENT Decoders (MediaCodec*)>
|
||||
<!ELEMENT Encoders (MediaCodec*)>
|
||||
<!ELEMENT MediaCodec (Type*,Quirk*)>
|
||||
<!ATTLIST MediaCodec name CDATA #REQUIRED>
|
||||
<!ATTLIST MediaCodec type CDATA>
|
||||
<!ELEMENT Type EMPTY>
|
||||
<!ATTLIST Type name CDATA #REQUIRED>
|
||||
<!ELEMENT Quirk EMPTY>
|
||||
<!ATTLIST Quirk name CDATA #REQUIRED>
|
||||
]>
|
||||
|
||||
There's a simple and a complex syntax to declare the availability of a
|
||||
media codec:
|
||||
|
||||
A codec that properly follows the OpenMax spec and therefore doesn't have any
|
||||
quirks and that only supports a single content type can be declared like so:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" type="something/interesting" />
|
||||
|
||||
If a codec has quirks OR supports multiple content types, the following syntax
|
||||
can be used:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" >
|
||||
<Type name="something/interesting" />
|
||||
<Type name="something/else" />
|
||||
...
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="output-buffers-are-unreadable" />
|
||||
</MediaCodec>
|
||||
|
||||
Only the three quirks included above are recognized at this point:
|
||||
|
||||
"requires-allocate-on-input-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of input buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"requires-allocate-on-output-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of output buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"output-buffers-are-unreadable"
|
||||
must be advertised if the emitted output buffers of a decoder component
|
||||
are not readable, i.e. use a custom format even though abusing one of
|
||||
the official OMX colorspace constants.
|
||||
Clients of such decoders will not be able to access the decoded data,
|
||||
naturally making the component much less useful. The only use for
|
||||
a component with this quirk is to render the output to the screen.
|
||||
Audio decoders MUST NOT advertise this quirk.
|
||||
Video decoders that advertise this quirk must be accompanied by a
|
||||
corresponding color space converter for thumbnail extraction,
|
||||
matching surfaceflinger support that can render the custom format to
|
||||
a texture and possibly other code, so just DON'T USE THIS QUIRK.
|
||||
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Include href="media_codecs_google_audio.xml" />
|
||||
<Include href="media_codecs_google_video.xml" />
|
||||
</MediaCodecs>
|
||||
+107
-398
@@ -1,329 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2012-2021 NVIDIA Corporation. All Rights Reserved.
|
||||
|
||||
NVIDIA Corporation and its licensors retain all intellectual property and
|
||||
proprietary rights in and to this software and related documentation. Any
|
||||
use, reproduction, disclosure or distribution of this software and related
|
||||
documentation without an express license agreement from NVIDIA Corporation
|
||||
is strictly prohibited.
|
||||
|
||||
This file is used to declare various board specific audio configs
|
||||
-->
|
||||
|
||||
<AudioConfigs version="2">
|
||||
<card name="tegra-snd-t210ref-mobile-es755">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="0"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
</card>
|
||||
|
||||
<card name="tegra-snd-t210ref-mobile-rt565x">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="0"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
</card>
|
||||
|
||||
<card name="NVIDIA Jetson Nano APE">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="0"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
</card>
|
||||
|
||||
<card name="NVIDIA Jetson TX1 APE">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="0"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
</card>
|
||||
|
||||
<card name="NVIDIA SHIELD Android TV APE">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-playback"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="bt-sco-capture"
|
||||
device_id="1"
|
||||
rate="8000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="4"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="0"/>
|
||||
|
||||
<!-- AHUB static controls -->
|
||||
<ctl name="I2S2 Mux" val="ADMAIF2"/>
|
||||
<ctl name="ADMAIF2 Mux" val="I2S2"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
</card>
|
||||
|
||||
<card name="Tegra">
|
||||
<pcm_config name ="hdmi-playback"
|
||||
device_id="3"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"/>
|
||||
|
||||
<param name="HW Rates" val="48000 44100 96000 192000"/>
|
||||
<param name="HDMI HW Latency" val="0"/>
|
||||
</card>
|
||||
|
||||
<card name="tegra-hda">
|
||||
<pcm_config name ="hdmi-playback"
|
||||
device_id="3"
|
||||
@@ -331,98 +7,131 @@
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
period_count="8"
|
||||
start_threshold="2047"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"/>
|
||||
avail_min="1"
|
||||
devices="hdmi"/>
|
||||
|
||||
<param name="HW Rates" val="48000 44100 96000 192000"/>
|
||||
<param name="HDMI HW Latency" val="0"/>
|
||||
<param name="HDMI HW Latency" val="50"/>
|
||||
<param name="DP DEVICE ID" val="3"/>
|
||||
</card>
|
||||
|
||||
<card name="dummy">
|
||||
<card name="Nintendo Switch APE">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="1"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="511"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
|
||||
<pcm_config name="music-capture"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="2"
|
||||
start_threshold="1"
|
||||
stop_threshold="512"
|
||||
silence_threshold="0"
|
||||
avail_min="1"/>
|
||||
</card>
|
||||
|
||||
<card name="dummy">
|
||||
<pcm_config name ="rsubmix-playback"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"/>
|
||||
<pcm_config name ="rsubmix-capture"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"/>
|
||||
</card>
|
||||
|
||||
<card name="dummy">
|
||||
<pcm_config name="usb-controller-remote-playback"
|
||||
rate="32000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_count="2"
|
||||
start_threshold="1023"
|
||||
period_count="4"
|
||||
start_threshold="4095"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"/>
|
||||
avail_min="1"
|
||||
devices="speaker|headphone|headset"/>
|
||||
|
||||
<pcm_config name="usb-controller-remote-capture"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
<pcm_config name="fast-playback"
|
||||
device_id="5"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="512"
|
||||
period_size="128"
|
||||
period_count="2"
|
||||
start_threshold="1023"
|
||||
stop_threshold="1024"
|
||||
avail_min="1"/>
|
||||
start_threshold="255"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"
|
||||
devices="speaker|headphone|headset"/>
|
||||
|
||||
<pcm_config name="hotword-capture"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="320"
|
||||
period_count="8"
|
||||
start_threshold="2559"
|
||||
stop_threshold="2560"
|
||||
avail_min="1"/>
|
||||
</card>
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="1"/>
|
||||
<param name="safe-routing" val="1"/>
|
||||
<param name="spkprot-flag" val="CPU"/>
|
||||
|
||||
<card name="dummy">
|
||||
<pcm_config name ="beyonder-capture"
|
||||
rate="16000"
|
||||
channels="1"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"/>
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
<ctl name="codec-x rate" val="None"/>
|
||||
|
||||
<!-- Boot ADSP -->
|
||||
<ctl name="ADSP init" val="0"/>
|
||||
|
||||
<!-- Keep MIXER output ready for "adsp-spkprot" or "adsp-bypass" -->
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="I2S1 Sample Rate" val="48000"/>
|
||||
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x SPK MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x SPK MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x Speaker L Playback Switch" val="0"/>
|
||||
<ctl name="x Speaker R Playback Switch" val="0"/>
|
||||
<ctl name="x SPOL MIX SPKVOL L Switch" val="0"/>
|
||||
<ctl name="x SPOR MIX SPKVOL R Switch" val="0"/>
|
||||
<ctl name="x Speaker Playback Volume" val="0,0"/>
|
||||
<ctl name="x Speaker Channel Switch" val="0,0"/>
|
||||
<ctl name="x OUT MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x OUT MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x HPO MIX HPVOL Switch" val="0"/>
|
||||
<ctl name="x HP L Playback Switch" val="0"/>
|
||||
<ctl name="x HP R Playback Switch" val="0"/>
|
||||
<ctl name="x HP Playback Volume" val="0,0"/>
|
||||
<ctl name="x HP Channel Switch" val="0,0"/>
|
||||
|
||||
<path name="adsp-bypass">
|
||||
<!-- No specifc controls now -->
|
||||
</path>
|
||||
|
||||
<path name="rt5640-speaker">
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x SPK MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x SPK MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x Speaker L Playback Switch" val="1"/>
|
||||
<ctl name="x Speaker R Playback Switch" val="1"/>
|
||||
<ctl name="x SPOL MIX SPKVOL L Switch" val="1"/>
|
||||
<ctl name="x SPOR MIX SPKVOL R Switch" val="1"/>
|
||||
<ctl name="x Speaker Playback Volume" val="30,30"/>
|
||||
<ctl name="x Speaker Channel Switch" val="1,1"/>
|
||||
</path>
|
||||
|
||||
<path name="rt5640-headphone">
|
||||
<ctl name="x HPO MIX HPVOL Switch" val="1"/>
|
||||
<ctl name="x HP L Playback Switch" val="1"/>
|
||||
<ctl name="x HP R Playback Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x HP Playback Volume" val="38,38"/>
|
||||
<ctl name="x HP Channel Switch" val="1,1"/>
|
||||
<ctl name="x OUT MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x OUT MIXL DAC L1 Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker">
|
||||
<path name="rt5640-speaker"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headphone">
|
||||
<path name="rt5640-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headset">
|
||||
<path name="headphone"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headphone">
|
||||
<path name="rt5640-speaker"/>
|
||||
<path name="rt5640-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headset">
|
||||
<path name="speaker-and-headphone"/>
|
||||
</path>
|
||||
</card>
|
||||
</AudioConfigs>
|
||||
@@ -1,137 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AudioConfigs version="2">
|
||||
<card name="tegra-hda">
|
||||
<pcm_config name ="hdmi-playback"
|
||||
device_id="3"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="256"
|
||||
period_count="8"
|
||||
start_threshold="2047"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"
|
||||
devices="hdmi"/>
|
||||
|
||||
<param name="HDMI HW Latency" val="50"/>
|
||||
<param name="DP DEVICE ID" val="3"/>
|
||||
</card>
|
||||
<card name="Nintendo Switch APE">
|
||||
<pcm_config name="music-playback"
|
||||
device_id="0"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="1024"
|
||||
period_count="4"
|
||||
start_threshold="4095"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"
|
||||
devices="speaker|headphone|headset"/>
|
||||
|
||||
<pcm_config name="fast-playback"
|
||||
device_id="5"
|
||||
rate="48000"
|
||||
channels="2"
|
||||
bps="16"
|
||||
period_size="128"
|
||||
period_count="2"
|
||||
start_threshold="255"
|
||||
stop_threshold="4294967295"
|
||||
silence_threshold="0"
|
||||
silence_size="4294967295"
|
||||
avail_min="1"
|
||||
devices="speaker|headphone|headset"/>
|
||||
|
||||
<param name="nvoice" val="0"/>
|
||||
<param name="builtin speaker" val="1"/>
|
||||
<param name="safe-routing" val="1"/>
|
||||
<param name="spkprot-flag" val="CPU"/>
|
||||
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
<ctl name="codec-x rate" val="None"/>
|
||||
|
||||
<!-- Boot ADSP -->
|
||||
<ctl name="ADSP init" val="0"/>
|
||||
|
||||
<!-- Keep MIXER output ready for "adsp-spkprot" or "adsp-bypass" -->
|
||||
<ctl name="ADMAIF1 Mux" val="I2S1"/>
|
||||
<ctl name="I2S1 Mux" val="ADMAIF1"/>
|
||||
<ctl name="I2S1 Sample Rate" val="48000"/>
|
||||
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x SPK MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x SPK MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x Speaker L Playback Switch" val="0"/>
|
||||
<ctl name="x Speaker R Playback Switch" val="0"/>
|
||||
<ctl name="x SPOL MIX SPKVOL L Switch" val="0"/>
|
||||
<ctl name="x SPOR MIX SPKVOL R Switch" val="0"/>
|
||||
<ctl name="x Speaker Playback Volume" val="0,0"/>
|
||||
<ctl name="x Speaker Channel Switch" val="0,0"/>
|
||||
<ctl name="x OUT MIXL DAC L1 Switch" val="0"/>
|
||||
<ctl name="x OUT MIXR DAC R1 Switch" val="0"/>
|
||||
<ctl name="x HPO MIX HPVOL Switch" val="0"/>
|
||||
<ctl name="x HP L Playback Switch" val="0"/>
|
||||
<ctl name="x HP R Playback Switch" val="0"/>
|
||||
<ctl name="x HP Playback Volume" val="0,0"/>
|
||||
<ctl name="x HP Channel Switch" val="0,0"/>
|
||||
|
||||
<path name="adsp-bypass">
|
||||
<!-- No specifc controls now -->
|
||||
</path>
|
||||
|
||||
<path name="rt5640-speaker">
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x SPK MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x SPK MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x Speaker L Playback Switch" val="1"/>
|
||||
<ctl name="x Speaker R Playback Switch" val="1"/>
|
||||
<ctl name="x SPOL MIX SPKVOL L Switch" val="1"/>
|
||||
<ctl name="x SPOR MIX SPKVOL R Switch" val="1"/>
|
||||
<ctl name="x Speaker Playback Volume" val="30,30"/>
|
||||
<ctl name="x Speaker Channel Switch" val="1,1"/>
|
||||
</path>
|
||||
|
||||
<path name="rt5640-headphone">
|
||||
<ctl name="x HPO MIX HPVOL Switch" val="1"/>
|
||||
<ctl name="x HP L Playback Switch" val="1"/>
|
||||
<ctl name="x HP R Playback Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXL DAC L1 Switch" val="1"/>
|
||||
<ctl name="x Stereo DAC MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x HP Playback Volume" val="38,38"/>
|
||||
<ctl name="x HP Channel Switch" val="1,1"/>
|
||||
<ctl name="x OUT MIXR DAC R1 Switch" val="1"/>
|
||||
<ctl name="x OUT MIXL DAC L1 Switch" val="1"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker">
|
||||
<path name="rt5640-speaker"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headphone">
|
||||
<path name="rt5640-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="headset">
|
||||
<path name="headphone"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headphone">
|
||||
<path name="rt5640-speaker"/>
|
||||
<path name="rt5640-headphone"/>
|
||||
<path name="adsp-bypass"/>
|
||||
</path>
|
||||
|
||||
<path name="speaker-and-headset">
|
||||
<path name="speaker-and-headphone"/>
|
||||
</path>
|
||||
</card>
|
||||
</AudioConfigs>
|
||||
+1
-1
@@ -19,6 +19,6 @@ LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvphsd.conf
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := nvphsd.foster.conf
|
||||
LOCAL_SRC_FILES := nvphsd.nx.conf
|
||||
LOCAL_ODM_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2019 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -13,7 +13,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
""" Custom OTA commands for foster devices """
|
||||
""" Custom OTA commands for nx devices """
|
||||
|
||||
import common
|
||||
import re
|
||||
@@ -33,20 +33,9 @@ DTSFILENAME_PATH = '/proc/device-tree/nvidia,dtsfilename'
|
||||
MODE_UNFUSED = '0x00000000\n'
|
||||
MODE_FUSED = '0x00000001\n'
|
||||
|
||||
FOSTER_E_PUBLIC_KEY = '0x0256ff42f60a5159edad8029772f1d5f848477fb9d33cd2b2e8f0b4d85c8d78a\n'
|
||||
FOSTER_E_BL_VERSION = '32.00.2019.50-t210-d30cbd07'
|
||||
|
||||
LOKI_E_PUBLIC_KEY = '0x4261f1714a7d71c7e810c9b33769878128cc54ae3c5736646496104b643aed09\n'
|
||||
LOKI_E_BL_VERSION = '24.00.2015.42-t210-39c6cadc' # the last released signed bootloader
|
||||
|
||||
DARCY_PUBLIC_KEY = '0x435a807e9187c53eae50e2dcab521e0ea41458a9b18d31db553ceb711c21fb52\n'
|
||||
MDARCY_PUBLIC_KEY = '0xc5ae4221f0f4f5113c0271b3519cac7f0bcb0cb860381a4648e9eee350e97f89\n'
|
||||
SIF_PUBLIC_KEY = '0x26646fe375375e39410853f75e59e2c4ca8440926fa37604a280b5c8a25a2c3e\n'
|
||||
DARCY_BL_VERSION = '32.00.2019.50-t210-69ebfcbe'
|
||||
|
||||
NX_ERISTA_PUBLIC_KEY = '0x7e39e100d1135918ceedfe5d66e66496eed21ecb3486d72095cc0b7c60b8bd4f\n'
|
||||
NX_MARIKO_PUBLIC_KEY = '0x72b9db116837289e5bfa57bb1c69e2c8fa9697151aa975066381e7efa19fb0c9\n'
|
||||
NX_BL_VERSION = '2020.04-03755-gf4d532d00d-rev3'
|
||||
NX_BL_VERSION = '2020.04-03755-gf4d532d00d-rev3'
|
||||
|
||||
def FullOTA_PostValidate(info):
|
||||
if 'INSTALL/bin/resize2fs_static' in info.input_zip.namelist():
|
||||
@@ -85,138 +74,6 @@ def AddBootloaderFlash(info, input_zip):
|
||||
info.script.AppendExtra(' read_file("' + FUSED_PATH + '") == "' + MODE_FUSED + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
|
||||
""" Fused foster_e or foster_e_hdd """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "foster_e" || getprop("ro.hardware") == "foster_e_hdd",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + FOSTER_E_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/" + getprop(ro.hardware) + ".blob", "' + STAGING_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for " + getprop("ro.hardware") + " detected.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Fused darcy """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "darcy",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' is_substring("tegra210b01", read_file("' + DTSFILENAME_PATH + '")),')
|
||||
""" mdarcy """
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused mdarcy");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + MDARCY_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused mdarcy");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/mdarcy.blob", "' + STAGING_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for mdarcy detected.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/mdarcy.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
""" darcy """
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused darcy");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + DARCY_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused darcy");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/darcy.blob", "' + STAGING_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for darcy detected.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Fused loki_e """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "loki_e_base" || getprop("ro.hardware") == "loki_e_lte" || getprop("ro.hardware") == "loki_e_wifi",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + LOKI_E_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Fused " + getprop(ro.hardware) + " is not currently supported.");')
|
||||
info.script.AppendExtra(' ui_print("There has not been a signed bootloader update since rel-24.");')
|
||||
info.script.AppendExtra(' ui_print("The newer kernel will not boot on the old bootloader.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for " + getprop("ro.hardware") + " detected.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Fused jetson """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "jetson_cv",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("You fused your Jetson TX1?!? Seriously, why would you do this?");')
|
||||
info.script.AppendExtra(' ui_print("You are on your own. The LineageOS Maintainer does not want to hear about this.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Fused nx """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "nx",')
|
||||
@@ -230,8 +87,9 @@ def AddBootloaderFlash(info, input_zip):
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + NX_ERISTA_PUBLIC_KEY + '" || read_file("' + PUBLIC_KEY_PATH + '") == "' + NX_MARIKO_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/nx_bl31.bin", "' + NX_SD + 'bl31.bin");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/nx_u-boot-dtb.bin", "' + NX_SD + 'bl33.bin");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/coreboot.rom", "' + NX_SD + 'coreboot.rom");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/common.scr", "' + NX_SD + 'common.scr");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/" + getprop(ro.hardware) + ".scr", "' + NX_SD + 'boot.scr");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key for nx detected.");')
|
||||
@@ -240,34 +98,7 @@ def AddBootloaderFlash(info, input_zip):
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/nx.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Fused sif """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "sif",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused sif");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + SIF_PUBLIC_KEY + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused sif");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/sif.blob", "' + STAGING_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for sif detected.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/sif.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
@@ -276,104 +107,6 @@ def AddBootloaderFlash(info, input_zip):
|
||||
""" If not fused """
|
||||
info.script.AppendExtra(' (')
|
||||
|
||||
""" Unfused foster_e or foster_e_hdd """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "foster_e" || getprop("ro.hardware") == "foster_e_hdd",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("This is an unfused foster_e or foster_e_hdd.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Unfused darcy """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "darcy",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' is_substring("tegra210b01", read_file("' + DTSFILENAME_PATH + '")),')
|
||||
""" mdarcy """
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused mdarcy");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("This is an unfused mdarcy.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/mdarcy.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");')
|
||||
info.script.AppendExtra(' ),')
|
||||
""" darcy """
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused darcy");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("This is an unfused darcy.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Unfused loki_e """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "loki_e_base" || getprop("ro.hardware") == "loki_e_lte" || getprop("ro.hardware") == "loki_e_wifi",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("This is an unfused " + getprop(ro.hardware) + ".");')
|
||||
info.script.AppendExtra(' ui_print("Updating the bootloader is not currently supported.");')
|
||||
info.script.AppendExtra(' ui_print("There has not been a working bootloader since rel-29.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Unfused jetson """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "jetson_cv",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for " + getprop(ro.hardware));')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Flashing updated bootloader for unfused Jetson TX1");')
|
||||
info.script.AppendExtra(' package_extract_file("firmware-update/jetson_cv.blob", "' + STAGING_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Unfused nx """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "nx",')
|
||||
@@ -389,27 +122,7 @@ def AddBootloaderFlash(info, input_zip):
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/nx.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
""" Unfused sif """
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.hardware") == "sif",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ifelse(')
|
||||
info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused sif");')
|
||||
info.script.AppendExtra(' ),')
|
||||
info.script.AppendExtra(' (')
|
||||
info.script.AppendExtra(' ui_print("This is an unfused sif.");')
|
||||
info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");')
|
||||
info.script.AppendExtra(' abort();')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
info.script.AppendExtra(' package_extract_file("install/sif.dtb.img", "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");')
|
||||
info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");')
|
||||
info.script.AppendExtra(' )')
|
||||
info.script.AppendExtra(' );')
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!-- Pixel specific wifi overlays -->
|
||||
<!-- nx specific wifi overlays -->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.wifi.resources.foster"
|
||||
package="com.android.wifi.resources.overlay.nx"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
|
||||
+2
-90
@@ -12,100 +12,12 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.batuu.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.porg.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.darcy.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.foster_e.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.foster_e_hdd.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.jetson_cv.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.jetson_e.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.loki_e_lte.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.loki_e.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.loki_e_wifi.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.loki_e.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.nx.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.porg.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.porg.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.porg_sd.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.porg.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := thermalhal.sif.xml
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := thermalhal.darcy.xml
|
||||
LOCAL_SRC_FILES := thermalhal.nx.xml
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
@@ -1,35 +0,0 @@
|
||||
<!--ThermalHAL Config
|
||||
Attributes for thermal
|
||||
These must be declared as a 'thermal-prop' element node
|
||||
Attributes:
|
||||
name - name of thermal device
|
||||
type - type defined by AOSP
|
||||
sensor-label - tz name
|
||||
multiplier - converting factor to degree Celsius
|
||||
cores - only for CPU type
|
||||
threshold-label - to use a different temperature threshold
|
||||
Attributes for cooling
|
||||
These must be declared as a 'cooling-prop' element node
|
||||
name - name of cooling device
|
||||
type - type defined by AOSP
|
||||
cooling-path - node that represents cooling state
|
||||
Attributes for cpu-usages
|
||||
These must be part of 'cpu_usages' element node
|
||||
cpus - number of cpus in the platform-->
|
||||
<thermalhal>
|
||||
<thermal_devices>
|
||||
<thermal_device>
|
||||
<thermal-prop name="CPU" type="DEVICE_TEMPERATURE_CPU" sensor-label="CPU-therm" multiplier='0.001' />
|
||||
<thermal-prop cores='4' />
|
||||
</thermal_device>
|
||||
<thermal_device>
|
||||
<thermal-prop name="GPU" type="DEVICE_TEMPERATURE_GPU" sensor-label="GPU-therm" multiplier='0.001' />
|
||||
</thermal_device>
|
||||
</thermal_devices>
|
||||
<cooling_devices>
|
||||
<cooling_device>
|
||||
<cooling-prop name="FAN" type="FAN_RPM" cooling-path="/sys/devices/platform/pwm-fan.43/rpm_measured" />
|
||||
</cooling_device>
|
||||
</cooling_devices>
|
||||
<cpu_usages cpus="4" />
|
||||
</thermalhal>
|
||||
File renamed without changes.
@@ -1,30 +0,0 @@
|
||||
<!--ThermalHAL Config
|
||||
Attributes for thermal
|
||||
These must be declared as a 'thermal-prop' element node
|
||||
Attributes:
|
||||
name - name of thermal device
|
||||
type - type defined by AOSP
|
||||
sensor-label - tz name
|
||||
multiplier - converting factor to degree Celsius
|
||||
cores - only for CPU type
|
||||
threshold-label - to use a different temperature threshold
|
||||
Attributes for cooling
|
||||
These must be declared as a 'cooling-prop' element node
|
||||
name - name of cooling device
|
||||
type - type defined by AOSP
|
||||
cooling-path - node that represents cooling state
|
||||
Attributes for cpu-usages
|
||||
These must be part of 'cpu_usages' element node
|
||||
cpus - number of cpus in the platform-->
|
||||
<thermalhal>
|
||||
<thermal_devices>
|
||||
<thermal_device>
|
||||
<thermal-prop name="CPU" type="DEVICE_TEMPERATURE_CPU" sensor-label="CPU-therm" multiplier='0.001' />
|
||||
<thermal-prop cores='4' />
|
||||
</thermal_device>
|
||||
<thermal_device>
|
||||
<thermal-prop name="GPU" type="DEVICE_TEMPERATURE_GPU" sensor-label="GPU-therm" multiplier='0.001' />
|
||||
</thermal_device>
|
||||
</thermal_devices>
|
||||
<cpu_usages cpus="4" />
|
||||
</thermalhal>
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,7 @@ TARGET_KERNEL_CONFIG := tegra_android_recovery_defconfig
|
||||
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive
|
||||
BOARD_RAMDISK_USE_LZMA := true
|
||||
|
||||
PRODUCT_COPY_FILES += device/nvidia/foster/twrp/twrp.fstab:recovery/root/system/etc/twrp.fstab
|
||||
PRODUCT_COPY_FILES += device/nintendo/nx/twrp/twrp.fstab:recovery/root/system/etc/twrp.fstab
|
||||
|
||||
TW_THEME := landscape_hdpi
|
||||
TW_NO_SCREEN_TIMEOUT := true
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright (C) 2021 The LineageOS 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.
|
||||
|
||||
# Inherit some common twrp stuff.
|
||||
$(call inherit-product, vendor/twrp/config/common.mk)
|
||||
|
||||
# Inherit device configuration for foster.
|
||||
include device/nvidia/foster/lineage.mk
|
||||
$(call inherit-product, device/nvidia/foster/full_foster.mk)
|
||||
|
||||
PRODUCT_NAME := twrp_foster
|
||||
PRODUCT_DEVICE := foster
|
||||
+20
-11
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -12,14 +12,23 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Inherit from those products. Most specific first.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, device/google/atv/products/atv_base.mk)
|
||||
$(call inherit-product, device/nvidia/foster/device.mk)
|
||||
# Inherit some common TWRP stuff.
|
||||
$(call inherit-product, vendor/twrp/config/common.mk)
|
||||
|
||||
# Set those variables here to overwrite the inherited values.
|
||||
PRODUCT_NAME := full_foster
|
||||
PRODUCT_DEVICE := foster
|
||||
PRODUCT_BRAND := NVIDIA
|
||||
PRODUCT_MANUFACTURER := NVIDIA
|
||||
PRODUCT_MODEL := SHIELD Android TV
|
||||
# Inherit full configuration for nx.
|
||||
include device/nintendo/nx/lineage.mk
|
||||
|
||||
# Inherit some common AOSP stuff.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
|
||||
# Inherit some common ATV stuff.
|
||||
$(call inherit-product, device/google/atv/products/atv_base.mk)
|
||||
|
||||
# Inherit device configuration for nx.
|
||||
$(call inherit-product, device/nintendo/nx/device.mk)
|
||||
|
||||
PRODUCT_NAME := twrp_nx
|
||||
PRODUCT_DEVICE := nx
|
||||
PRODUCT_BRAND := Nintendo
|
||||
PRODUCT_MANUFACTURER := Nintendo
|
||||
PRODUCT_MODEL := Switch
|
||||
Vendored
+2
-121
@@ -13,130 +13,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
FOSTER_BCM_PATH := ../../../../../vendor/nvidia/foster/bcm_firmware
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_darcy_a00
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_darcy_a00.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_foster_e_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_foster_e_4354.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_foster_e_antenna_tuned_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_foster_e_antenna_tuned_4354.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_loki_e_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_loki_e_4354.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_loki_e_antenna_tuned_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_loki_e_antenna_tuned_4354.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_jetsonE_cv_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_jetsonE_cv_4354.txt
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nvram_smaug_4354
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/bcmdhd.cal
|
||||
LOCAL_MODULE_SUFFIX := .txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := brcmfmac4356-pcie.txt
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4356/brcmfmac4356-pcie.txt
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := bcmdhd_clm_darcy
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/darcy.clm_blob
|
||||
LOCAL_MODULE_SUFFIX := .blob
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := bcmdhd_clm_foster
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/foster.clm_blob
|
||||
LOCAL_MODULE_SUFFIX := .blob
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := bcmdhd_clm_loki
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/foster.clm_blob
|
||||
LOCAL_MODULE_SUFFIX := .blob
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := bcmdhd_clm_darcy_flynn-hp
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/flynn-hp.clm_blob
|
||||
LOCAL_MODULE_SUFFIX := .blob
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := nvidia
|
||||
include $(BUILD_NVIDIA_PREBUILT)
|
||||
NX_BCM_PATH := ../../../../../vendor/nintendo/nx/bcm_firmware
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := brcmfmac4356-pcie.clm_blob
|
||||
LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4356/brcmfmac4356-pcie.clm_blob
|
||||
LOCAL_SRC_FILES := $(NX_BCM_PATH)/bcm4356/brcmfmac4356-pcie.clm_blob
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
Vendored
+4
-9
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2020 The LineageOS Project
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -12,15 +12,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
LOCAL_PATH := device/nvidia/foster/vendor/bcm_firmware
|
||||
LOCAL_PATH := device/nintendo/nx/vendor/bcm_firmware
|
||||
COMMON_BCM_PATH := device/nvidia/tegra-common/vendor/bcm_firmware
|
||||
|
||||
$(call inherit-product, $(COMMON_BCM_PATH)/bcm4354/device-bcm.mk)
|
||||
$(call inherit-product, $(LOCAL_PATH)/clm.mk)
|
||||
$(call inherit-product, $(LOCAL_PATH)/nvram.mk)
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
bcm4350 \
|
||||
BCM4354A2-13d3-3488 \
|
||||
bcm4356 \
|
||||
brcmfmac4356-pcie
|
||||
brcmfmac4356-pcie \
|
||||
brcmfmac4356-pcie.clm_blob
|
||||
Vendored
-20
@@ -1,20 +0,0 @@
|
||||
# Copyright (C) 2020 The LineageOS 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_PACKAGES += \
|
||||
bcmdhd_clm_darcy \
|
||||
bcmdhd_clm_darcy_flynn-hp \
|
||||
bcmdhd_clm_foster \
|
||||
bcmdhd_clm_loki \
|
||||
brcmfmac4356-pcie.clm_blob
|
||||
Vendored
-23
@@ -1,23 +0,0 @@
|
||||
# Copyright (C) 2020 The LineageOS 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_PACKAGES += \
|
||||
nvram_darcy_a00 \
|
||||
nvram_foster_e_4354 \
|
||||
nvram_foster_e_antenna_tuned_4354 \
|
||||
nvram_loki_e_4354 \
|
||||
nvram_loki_e_antenna_tuned_4354 \
|
||||
nvram_jetsonE_cv_4354 \
|
||||
nvram_smaug_4354 \
|
||||
brcmfmac4356-pcie.txt
|
||||
Vendored
-20
@@ -1,20 +0,0 @@
|
||||
# Copyright (C) 2020 The LineageOS 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.
|
||||
|
||||
$(call inherit-product, device/nvidia/t210-common/vendor/t210.mk)
|
||||
$(call inherit-product, device/nvidia/tegra-common/vendor/common-by-flags.mk)
|
||||
$(call inherit-product, device/nvidia/foster/vendor/bcm_firmware/bcm.mk)
|
||||
$(call inherit-product, device/nvidia/shield-common/vendor/shield-by-flags.mk)
|
||||
|
||||
PRODUCT_PACKAGES += public.libraries
|
||||
+5
-6
@@ -12,10 +12,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import init.recovery.foster_common.rc
|
||||
include device/nvidia/t210-common/vendor/t210.mk
|
||||
include device/nvidia/tegra-common/vendor/common-by-flags.mk
|
||||
include device/nintendo/nx/vendor/bcm_firmware/bcm.mk
|
||||
include device/nvidia/shield-common/vendor/shield-by-flags.mk
|
||||
|
||||
on post-fs
|
||||
rm /dev/block/by-name/LNX
|
||||
symlink /dev/block/by-name/KERN-A /dev/block/by-name/LNX
|
||||
symlink /dev/block/by-name/recovery /dev/block/by-name/SOS
|
||||
symlink /dev/block/by-name/VNR /dev/block/by-name/vendor
|
||||
PRODUCT_PACKAGES += public.libraries
|
||||
Reference in new issue
Block a user