rhodep: Initial conversion to rhodep

* All configs and files are from rhodep_g-user 13 T1SUS33.1-124-6-14 a15be release-keys.

Change-Id: I003e30441fbff06a7551cdfe4358f6620cf3f67d
This commit is contained in:
Anand S 2025-04-05 15:30:48 +05:30
parent 4b3457172c
commit e4d777d6dd
No known key found for this signature in database
GPG key ID: EFD0D6FBB9A067B4
61 changed files with 740 additions and 1208 deletions

View file

@ -5,4 +5,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_fogos.mk
$(LOCAL_DIR)/lineage_rhodep.mk

View file

@ -4,17 +4,17 @@
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/motorola/fogos
DEVICE_PATH := device/motorola/rhodep
# Inherit from motorola sm6375-common
include device/motorola/sm6375-common/BoardConfigCommon.mk
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := fogos
TARGET_BOOTLOADER_BOARD_NAME := rhodep
# Kernel
BOARD_KERNEL_CMDLINE += androidboot.hab.product=fogos
TARGET_KERNEL_CONFIG += vendor/fogos_defconfig
BOARD_KERNEL_CMDLINE += androidboot.hab.product=rhodep
TARGET_KERNEL_CONFIG += vendor/rhodep_defconfig
# Kernel Modules
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
@ -23,8 +23,8 @@ BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVIC
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD)
# Partitions
BOARD_MOT_DP_GROUP_SIZE := 5901385728 # (BOARD_SUPER_PARTITION_SIZE - 4MB)
BOARD_SUPER_PARTITION_SIZE := 5905580032
BOARD_MOT_DP_GROUP_SIZE := 8608808960 # (BOARD_SUPER_PARTITION_SIZE - 4MB)
BOARD_SUPER_PARTITION_SIZE := 8613003264
# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
@ -35,7 +35,7 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
# Security patch level
VENDOR_SECURITY_PATCH := 2024-11-01
VENDOR_SECURITY_PATCH := 2025-02-01
# inherit from the proprietary version
include vendor/motorola/fogos/BoardConfigVendor.mk
include vendor/motorola/rhodep/BoardConfigVendor.mk

View file

@ -1 +1 @@
# Device configuration files for Motorola moto g34 5G (fogos)
# Device configuration files for Motorola moto g82 5G (rhodep)

View file

@ -1,5 +1,5 @@
global_config {
name fogos
name Rhodep
force_ring_ramp true
sonification_pad 20
sonification_prox_timeout_sec 5
@ -9,7 +9,7 @@ ring {
#dB to attenuate playback to meet safety level at each volume step
#16 steps total, 15...0. In case of truncated list, last attenuation
#given will be applied to all lower volume steps
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
attenuation 31,29,26,24,22,19,17,15,12,10,7,5,3,0,0,0
knee_step 16
}
@ -17,14 +17,14 @@ voice {
#dB to attenuate playback to meet safety level at each volume step
#16 steps total, 15...0. In case of truncated list, last attenuation
#given will be applied to all lower volume steps
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
knee_step 16
knee_step 1
attenuation 0
}
media {
#dB to attenuate playback to meet safety level at each volume step
#16 steps total, 15...0. In case of truncated list, last attenuation
#given will be applied to all lower volume steps
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
attenuation 31,29,26,24,22,19,17,15,12,10,7,5,3,0,0,0
knee_step 16
}

View file

@ -11,130 +11,21 @@
# the flags and formats should match the ones in "audio_policy.conf"
outputs {
default {
flags AUDIO_OUTPUT_FLAG_PRIMARY
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69937
}
proaudio {
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69943
}
voip_rx {
flags AUDIO_OUTPUT_FLAG_VOIP_RX
flags AUDIO_OUTPUT_FLAG_VOIP_RX|AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 8000|16000|32000|48000
sampling_rates 48000
bit_width 16
app_type 69946
}
deep_buffer {
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69936
}
direct_pcm_16 {
flags AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
sampling_rates 48000|96000
bit_width 16
app_type 69937
}
direct_pcm_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
sampling_rates 48000|96000
bit_width 24
app_type 69940
}
direct_pcm_32 {
flags AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_32_BIT
sampling_rates 48000|96000
bit_width 32
app_type 69942
}
compress_passthrough {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH
formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
sampling_rates 48000
bit_width 16
app_type 69941
}
compress_offload_16 {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2
sampling_rates 48000|96000
bit_width 16
app_type 69937
}
compress_offload_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2
sampling_rates 48000|96000
bit_width 24
app_type 69940
}
}
inputs {
record_16bit {
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69938
}
record_24bit {
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
sampling_rates 48000
bit_width 24
app_type 69948
}
record_32bit {
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
sampling_rates 48000
bit_width 32
app_type 69949
}
record_compress_16 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69938
}
record_compress_24 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
sampling_rates 48000
bit_width 24
app_type 69948
}
record_compress_32 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
sampling_rates 48000
bit_width 32
app_type 69949
}
voip_tx {
flags AUDIO_INPUT_FLAG_VOIP_TX
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 8000|16000|32000|48000
sampling_rates 48000
bit_width 16
app_type 69946
}
low_latency_voip_tx {
flags AUDIO_INPUT_FLAG_FAST|AUDIO_INPUT_FLAG_VOIP_TX
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type
}
}

View file

@ -99,7 +99,6 @@
<usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="29" />
<usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="29" />
<usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="35" />
<usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="out" id="35" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="23" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK2" type="out" id="23" />
<usecase name="USECASE_AUDIO_RECORD_COMPRESS2" type="in" id="36" />
@ -148,7 +147,6 @@
<device name="SND_DEVICE_OUT_USB_HEADPHONES" acdb_id="45" />
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" acdb_id="9" />
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES" acdb_id="9" />
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_HEADPHONES" acdb_id="10" />
<device name="SND_DEVICE_OUT_SPEAKER" acdb_id="14" />
<device name="SND_DEVICE_OUT_SPEAKER_RIGHT" acdb_id="13" />
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="14" />
@ -179,8 +177,8 @@
<device name="SND_DEVICE_IN_HANDSET_MIC_AEC_NS" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_MIC_NS" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_MIC_NN" acdb_id="318" />
<device name="SND_DEVICE_IN_HANDSET_MIC_TOP" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_MIC_NN_TOP" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_MIC_TOP" acdb_id="4" />
<device name="SND_DEVICE_IN_HANDSET_MIC_NN_TOP" acdb_id="4" />
<device name="SND_DEVICE_IN_SPEAKER_DMIC" acdb_id="35" />
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC" acdb_id="35" />
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" acdb_id="35" />
@ -228,7 +226,7 @@
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_STEREO" acdb_id="35" />
<device name="SND_DEVICE_IN_CAPTURE_FM" acdb_id="90" />
<device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC_NN" acdb_id="301" />
<device name="SND_DEVICE_IN_VOICE_HEADSET_MIC_NN" acdb_id="302" />
<device name="SND_DEVICE_IN_VOICE_HEADSET_MIC_NN" acdb_id="8" />
<device name="SND_DEVICE_IN_VOICE_USB_HEADSET_MIC_NN" acdb_id="303" />
<device name="SND_DEVICE_IN_SPEAKER_MIC_NN" acdb_id="304" />
<device name="SND_DEVICE_IN_SPEAKER_MIC_AEC_NN" acdb_id="304" />
@ -252,12 +250,12 @@
<device name="SND_DEVICE_OUT_BT_A2DP" backend="bt-a2dp" interface="SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_LINE" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_ANC_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_HIFI_FILTER" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_LINE" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_ANC_HEADSET" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_HEADPHONES" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_HIFI_FILTER" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_LINE" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_ANC_HEADSET" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HEADSET" backend="headset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HEADSET" backend="headset" interface="RX_CDC_DMA_RX_0"/>
@ -267,47 +265,48 @@
<device name="SND_DEVICE_OUT_VOICE_TTY_FULL_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_CQA_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HANDSET_TMUS" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_ANC_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_RIGHT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_CQA_SPEAKER" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_SPEAKER" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_1" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_2" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_REVERSE" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_1" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_2" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_ANC_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HAC_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HANDSET_TMUS" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_CQA_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HANDSET_TMUS" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_ANC_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_CQA_SPEAKER" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_SPEAKER" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_1" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_2" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_REVERSE" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_LEFT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_RIGHT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_1" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_2" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_ANC_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOLTE_NB_HAC_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_HANDSET_TMUS" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_IN_HANDSET_GENERIC_QMIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_STEREO" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HDMI" interface="RX_CDC_DMA_RX_0-and-HDMI"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_DISPLAY_PORT" interface="RX_CDC_DMA_RX_0-and-DISPLAY_PORT"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_A2DP" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_STEREO" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_HDMI" interface="SEC_MI2S_RX-and-HDMI"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_DISPLAY_PORT" interface="SEC_MI2S_RX-and-DISPLAY_PORT"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_A2DP" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" backend="handset" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_ANC_FB_HEADSET" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_ANC_FB_HEADSET" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_ANC_HANDSET" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED_VBAT" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_ANC_HANDSET" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED_VBAT" interface="SEC_MI2S_RX"/>
<device name="SND_DEVICE_IN_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_HANDSET_MIC_NN" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_HANDSET_MIC_TOP" interface="TX_CDC_DMA_TX_3"/>
@ -403,14 +402,14 @@
<device name="SND_DEVICE_IN_UNPROCESSED_THREE_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_UNPROCESSED_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_HEADPHONES" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_ANC_HEADSET" backend="speaker-and-headphones" interface="RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_SCO" backend="speaker-and-bt-sco" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="RX_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET" backend="speaker-and-usb-headset" interface="RX_CDC_DMA_RX_0-and-USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_USB_HEADSET" backend="speaker-and-usb-headset" interface="RX_CDC_DMA_RX_0-and-USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_HEADPHONES" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_ANC_HEADSET" backend="speaker-and-headphones" interface="SEC_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_SCO" backend="speaker-and-bt-sco" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="SEC_MI2S_RX-and-SLIMBUS_7_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET" backend="speaker-and-usb-headset" interface="SEC_MI2S_RX-and-USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_SPEAKER_SAFE_AND_USB_HEADSET" backend="speaker-and-usb-headset" interface="SEC_MI2S_RX-and-USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_FULL_USB" backend="usb-headset" interface="USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_VOICE_TTY_VCO_USB" backend="usb-headset" interface="USB_AUDIO_RX"/>
<device name="SND_DEVICE_OUT_USB_HEADSET" backend="usb-headset" interface="USB_AUDIO_RX"/>

View file

@ -49,22 +49,7 @@
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="hifi_playback" role="source" />
<mixPort name="direct_pcm" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
<profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
</mixPort>
<mixPort name="hifi_playback" role="source" />
<mixPort name="compressed_offload" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
<profile name="" format="AUDIO_FORMAT_MP3"
@ -117,7 +102,7 @@
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
<mixPort name="voip_rx" role="source"
flags="AUDIO_OUTPUT_FLAG_VOIP_RX">
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
@ -126,6 +111,11 @@
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
</mixPort>
<mixPort name="fast input" role="sink" flags="AUDIO_INPUT_FLAG_FAST" maxOpenCount="1" maxActiveCount="1">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,16000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>
<devicePorts>
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
@ -177,31 +167,31 @@
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="Speaker"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="Wired Headset"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="Wired Headphones"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="Line Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="Dock Headset"
sources="primary output,deep_buffer,voip_rx"/>
<route type="mix" sink="BT SCO"
sources="primary output,deep_buffer,direct_pcm,voip_rx"/>
sources="primary output,deep_buffer,voip_rx"/>
<route type="mix" sink="BT SCO Headset"
sources="primary output,deep_buffer,direct_pcm,voip_rx"/>
sources="primary output,deep_buffer,voip_rx"/>
<route type="mix" sink="BT SCO Car Kit"
sources="primary output,deep_buffer,direct_pcm,voip_rx"/>
sources="primary output,deep_buffer,voip_rx"/>
<route type="mix" sink="Proxy"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="HDMI Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
<route type="mix" sink="USB Device Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,hifi_playback,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,hifi_playback,voip_rx"/>
<route type="mix" sink="USB Headset Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,hifi_playback,voip_rx"/>
sources="primary output,deep_buffer,compressed_offload,hifi_playback,voip_rx"/>
<route type="mix" sink="Telephony Tx"
sources="voice_tx,incall_music_uplink"/>
<route type="mix" sink="voice_rx"
@ -215,6 +205,8 @@
<route type="mix" sink="fm input"
sources="FM tuner"/>
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
<route type="mix" sink="fast input"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In"/>
</routes>
</module>
@ -227,9 +219,6 @@
<!-- Remote Submix Audio HAL -->
<xi:include href="r_submix_audio_policy_configuration.xml"/>
<!-- Bluetooth Audio HAL -->
<xi:include href="bluetooth_audio_policy_configuration.xml"/>
</modules>
<!-- End of Modules section -->

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Volume section defines a volume curve for a given use case and device category.
It contains a list of points of this curve expressing the attenuation in Millibels for a given
volume index from 0 to 100.
@ -8,20 +8,26 @@ volume index from 0 to 100.
</volume>
-->
<volumes>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>0,-3000</point>
<point>33,-2000</point>
<point>66,-1000</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>0,-2300</point>
<point>33,-1400</point>
<point>66,-650</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
<point>0,-2500</point>
<point>44,-1400</point>
<point>71,-700</point>
<point>0,-2400</point>
<point>33,-1600</point>
<point>66,-800</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-3000</point>
<point>33,-2600</point>
@ -34,8 +40,6 @@ volume index from 0 to 100.
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -44,41 +48,14 @@ volume index from 0 to 100.
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-6550</point>
<point>15,-4300</point>
<point>30,-3050</point>
<point>43,-2200</point>
<point>65,-1150</point>
<point>85,-640</point>
<point>93,-280</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-5500</point>
<point>13,-3950</point>
<point>20,-3400</point>
<point>27,-3200</point>
<point>33,-3150</point>
<point>40,-2990</point>
<point>47,-2650</point>
<point>50,-2500</point>
<point>60,-2200</point>
<point>66,-1950</point>
<point>73,-1750</point>
<point>80,-1550</point>
<point>86,-1150</point>
<point>90,-820</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -87,22 +64,18 @@ volume index from 0 to 100.
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-3600</point>
<point>33,-1950</point>
<point>60,-1600</point>
<point>100,-1000</point>
<point>1,-5300</point>
<point>70,-2890</point>
<point>84,-2010</point>
<point>100,-1300</point>
</volume>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -111,8 +84,6 @@ volume index from 0 to 100.
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -121,22 +92,26 @@ volume index from 0 to 100.
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-3000</point>
<point>33,-2600</point>
<point>66,-2200</point>
<point>100,-1800</point>
</volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-3800</point>
<point>33,-2800</point>
<point>66,-2000</point>
<point>100,-1300</point>
</volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE">
<point>1,-2700</point>
<point>33,-1600</point>
<point>66,-700</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -145,8 +120,6 @@ volume index from 0 to 100.
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -155,8 +128,6 @@ volume index from 0 to 100.
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -165,8 +136,6 @@ volume index from 0 to 100.
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
@ -175,6 +144,4 @@ volume index from 0 to 100.
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="FULL_SCALE_VOLUME_CURVE"/>
</volumes>

View file

@ -28,8 +28,8 @@
<reference name="NOTIFICATION_CATEGORY_SPEAKER_VOLUME_CURVE">
<!-- Speaker Sonification reference Volume Curve -->
<point>1,-5300</point>
<point>33,-2990</point>
<point>66,-1800</point>
<point>70,-2390</point>
<point>84,-1010</point>
<point>100,0</point>
</reference>
<reference name="DEFAULT_SYSTEM_VOLUME_CURVE">
@ -37,7 +37,7 @@
<point>1,-3800</point>
<point>33,-3300</point>
<point>66,-2800</point>
<point>100,-1300</point>
<point>100,-2300</point>
</reference>
<reference name="DEFAULT_MEDIA_VOLUME_CURVE">
<!-- Default Media reference Volume Curve -->
@ -62,9 +62,12 @@
</reference>
<reference name="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE">
<!-- Default is Speaker Media Volume Curve -->
<point>1,-5800</point>
<point>33,-3000</point>
<point>66,-1400</point>
<point>1,-5400</point>
<point>30,-3300</point>
<point>43,-2400</point>
<point>65,-1400</point>
<point>85,-750</point>
<point>93,-500</point>
<point>100,0</point>
</reference>
<reference name="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE">
@ -81,19 +84,4 @@
<point>60,-2100</point>
<point>100,-1000</point>
</reference>
<reference name="DEFAULT_HEARING_AID_VOLUME_CURVE">
<!-- Default Hearing Aid Volume Curve -->
<point>1,-12700</point>
<point>20,-8000</point>
<point>60,-4000</point>
<point>100,0</point>
</reference>
<reference name="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE">
<!-- Default non-mutable Hearing Aid Volume Curve -->
<!-- based on DEFAULT_HEARING_AID_VOLUME_CURVE -->
<point>0,-12700</point>
<point>20,-8000</point>
<point>60,-4000</point>
<point>100,0</point>
</reference>
</volumes>

View file

@ -360,13 +360,12 @@
<ctl name="TX SMIC MUX7" value="ZERO" />
<!-- Volume controls -->
<ctl name="RX_RX0 Digital Volume" value="79" />
<ctl name="RX_RX1 Digital Volume" value="79" />
<ctl name="RX_RX2 Digital Volume" value="80" />
<ctl name="RX_RX0 Digital Volume" value="84" />
<ctl name="RX_RX1 Digital Volume" value="84" />
<ctl name="RX_RX2 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="EAR SPKR PA Gain" value="G_DEFAULT" />
<ctl name="AUX PATH Mode" value="NORMAL_MODE" />
<ctl name="TX_DEC0 Volume" value="84" />
<ctl name="TX_DEC1 Volume" value="84" />
@ -432,8 +431,6 @@
<ctl name="RX INT2_1 VBAT RX AUX VBAT Enable" value="0" />
<!-- Codec controls end -->
<ctl name="FSM_Scene" value="0"/>
<ctl name="FSM_Amp_Switch" value="0"/>
<!-- defaults for mmap record -->
<ctl name="MultiMedia16 Mixer TX_CDC_DMA_TX_3" value="0" />
@ -448,21 +445,41 @@
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia31" value="0" />
<ctl name="RX_CDC_DMA_RX_6 Channels" value="One" />
<ctl name="SEC_MI2S_RX Channels" value="One" />
<ctl name="SEC_MI2S_RX Channels" value="Two" />
<ctl name="SEC_MI2S_TX Channels" value="Two" />
<ctl name="SEC_MI2S_RX Format" value="S32_LE" />
<ctl name="SEC_MI2S_TX Format" value="S32_LE" />
<ctl name="SEC_MI2S_RX_VI_FB_MUX" value="ZERO" />
<ctl name="aw_dev_0_switch" value="Enable" />
<ctl name="aw_dev_1_switch" value="Enable" />
<ctl name="aw_dev_0_prof" value="Music" />
<ctl name="aw_dev_1_prof" value="Music" />
<ctl name="aw882xx_rx_switch" value="Disable" />
<ctl name="aw882xx_tx_switch" value="Disable" />
<ctl name="aw882xx_algo_cali_switch" value="Off" />
<ctl name="aw882xx_algo_bypass_switch" value="Off" />
<ctl name="aw882xx_algo_handset_switch" value="Off" />
<ctl name="aw882xx_algo_voice_switch" value="Off" />
<ctl name="aw882xx_algo_voip_switch" value="Off" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="Off" />
<ctl name="aw882xx_algo_music_fasttrack_switch" value="Off" />
<!-- These are audio route (FE to BE) specific mixer settings -->
<path name="gsm-mode">
<ctl name="GSM mode Enable" value="ON" />
</path>
<path name="echo-reference">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="RX_CDC_DMA_RX_0" />
<ctl name="EC Reference Channels" value="Two"/>
<ctl name="AUDIO_REF_EC_UL1 MUX" value="SEC_I2S_RX" />
<ctl name="EC Reference Channels" value="One"/>
</path>
<path name="echo-reference handset">
<ctl name="AUDIO_REF_EC_UL1 MUX" value="RX_CDC_DMA_RX_0" />
<ctl name="AUDIO_REF_EC_UL1 MUX" value="SEC_I2S_RX" />
<ctl name="EC Reference Channels" value="One"/>
</path>
@ -503,12 +520,12 @@
</path>
<path name="echo-reference-voip">
<ctl name="AUDIO_REF_EC_UL10 MUX" value="RX_CDC_DMA_RX_0" />
<ctl name="EC Reference Channels" value="Two"/>
<ctl name="AUDIO_REF_EC_UL10 MUX" value="SEC_I2S_RX" />
<ctl name="EC Reference Channels" value="One"/>
</path>
<path name="echo-reference-voip handset">
<ctl name="AUDIO_REF_EC_UL10 MUX" value="RX_CDC_DMA_RX_0" />
<ctl name="AUDIO_REF_EC_UL10 MUX" value="SEC_I2S_RX" />
<ctl name="EC Reference Channels" value="One"/>
</path>
@ -531,11 +548,13 @@
</path>
<path name="deep-buffer-playback">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia1" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia1" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="deep-buffer-playback handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia1" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia1" value="1" />
</path>
<path name="deep-buffer-playback speaker-protected">
@ -663,11 +682,13 @@
</path>
<path name="low-latency-playback">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia5" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia5" value="1" />
<ctl name="aw882xx_algo_music_fasttrack_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="low-latency-playback handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia5" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia5" value="1" />
</path>
<path name="low-latency-playback speaker-protected">
@ -799,11 +820,11 @@
</path>
<path name="audio-ull-playback">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia8" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia8" value="1" />
</path>
<path name="audio-ull-playback handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia8" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia8" value="1" />
</path>
<path name="audio-ull-playback speaker-protected">
@ -934,11 +955,13 @@
</path>
<path name="compress-offload-playback">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia4" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia4" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="compress-offload-playback handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia4" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia4" value="1" />
</path>
<path name="compress-offload-playback speaker-protected">
@ -1082,11 +1105,13 @@
</path>
<path name="compress-offload-playback2">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia7" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia7" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="compress-offload-playback2 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia7" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia7" value="1" />
</path>
<path name="compress-offload-playback2 display-port">
@ -1210,11 +1235,12 @@
</path>
<path name="compress-offload-playback3">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia10" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia10" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback3 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia10" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia10" value="1" />
</path>
<path name="compress-offload-playback3 display-port">
@ -1337,11 +1363,12 @@
</path>
<path name="compress-offload-playback4">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia11" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia11" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback4 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia11" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia11" value="1" />
</path>
<path name="compress-offload-playback4 display-port">
@ -1464,11 +1491,12 @@
</path>
<path name="compress-offload-playback5">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia12" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia12" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback5 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia12" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia12" value="1" />
</path>
<path name="compress-offload-playback5 display-port">
@ -1591,11 +1619,12 @@
</path>
<path name="compress-offload-playback6">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia13" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia13" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback6 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia13" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia13" value="1" />
</path>
<path name="compress-offload-playback6 display-port">
@ -1718,11 +1747,12 @@
</path>
<path name="compress-offload-playback7">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia14" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia14" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback7 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia14" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia14" value="1" />
</path>
<path name="compress-offload-playback7 display-port">
@ -1845,11 +1875,12 @@
</path>
<path name="compress-offload-playback8">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia15" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia15" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback8 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia15" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia15" value="1" />
</path>
<path name="compress-offload-playback8 display-port">
@ -1972,11 +2003,12 @@
</path>
<path name="compress-offload-playback9">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia16" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia16" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
</path>
<path name="compress-offload-playback9 handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia16" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="compress-offload-playback9 display-port">
@ -2430,12 +2462,13 @@
</path>
<path name="compress-voip-call">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer Voip" value="1" />
<ctl name="SEC_MI2S_RX_Voice Mixer Voip" value="1" />
<ctl name="Voip_Tx Mixer TX_CDC_DMA_TX_3_Voip" value="1" />
<ctl name="aw882xx_algo_voip_switch" value="On" />
</path>
<path name="compress-voip-call handset">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer Voip" value="1" />
<ctl name="SEC_MI2S_RX_Voice Mixer Voip" value="1" />
<ctl name="Voip_Tx Mixer TX_CDC_DMA_TX_3_Voip" value="1" />
</path>
@ -2484,8 +2517,10 @@
</path>
<path name="voicemmode1-call">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode1" value="1"/>
<ctl name="SEC_MI2S_RX_Voice Mixer VoiceMMode1" value="1" />
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
<ctl name="aw882xx_algo_voice_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="voicemmode1-call hearing-aid">
@ -2499,8 +2534,9 @@
</path>
<path name="voicemmode1-call handset">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode1" value="1" />
<ctl name="SEC_MI2S_RX_Voice Mixer VoiceMMode1" value="1" />
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
<ctl name="aw882xx_algo_handset_switch" value="On" />
</path>
<path name="voicemmode1-call headphones">
@ -2508,11 +2544,6 @@
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
</path>
<path name="voicemmode1-call voice-speaker-and-voice-headphones">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode1" value="1" />
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
</path>
<path name="voicemmode1-call headset">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode1" value="1" />
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_4_MMode1" value="1" />
@ -2568,13 +2599,16 @@
</path>
<path name="voicemmode2-call">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode2" value="1"/>
<ctl name="SEC_MI2S_RX_Voice Mixer VoiceMMode2" value="1" />
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
<ctl name="aw882xx_algo_voice_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="voicemmode2-call handset">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode2" value="1" />
<ctl name="SEC_MI2S_RX_Voice Mixer VoiceMMode2" value="1" />
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
<ctl name="aw882xx_algo_handset_switch" value="On" />
</path>
<path name="voicemmode2-call headphones">
@ -2587,11 +2621,6 @@
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_4_MMode2" value="1" />
</path>
<path name="voicemmode2-call voice-speaker-and-voice-headphones">
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode2" value="1" />
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
</path>
<path name="voicemmode2-call bt-sco">
<ctl name="SLIM_7_RX_Voice Mixer VoiceMMode2" value="1" />
<ctl name="VoiceMMode2_Tx Mixer SLIM_7_TX_MMode2" value="1" />
@ -2653,11 +2682,13 @@
<!-- VoIP Rx settings -->
<path name="audio-playback-voip">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia10" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia10" value="1" />
<ctl name="aw882xx_algo_voip_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="audio-playback-voip handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia10" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia10" value="1" />
</path>
<path name="audio-playback-voip headphones">
@ -2923,11 +2954,13 @@
</path>
<path name="mmap-playback">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia16" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia16" value="1" />
<ctl name="aw882xx_algo_music_deepbuffer_switch" value="On" />
<ctl name="aw882xx_spin_relase_time" value="100" />
</path>
<path name="mmap-playback handset">
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia16" value="1" />
<ctl name="SEC_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
@ -3322,6 +3355,9 @@
</path>
<path name="spkr-vi-record">
<ctl name="aw882xx_rx_switch" value="Enable" />
<ctl name="aw882xx_tx_switch" value="Enable" />
<ctl name="SEC_MI2S_RX_VI_FB_MUX" value="SEC_MI2S_TX" />
</path>
<!-- These are actual sound device specific mixer settings -->
@ -3415,43 +3451,27 @@
</path>
<path name="speaker">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="EAR_RDAC Switch" value="1" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT"/>
<ctl name="RX_EAR Mode" value="ON" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="0"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="RX_COMP1 Switch" value="1" />
<ctl name="HPHL_COMP Switch" value="1" />
<ctl name="AUX PATH Mode" value="HP_MODE" />
<ctl name="SEC_MI2S_RX Channels" value="Two" />
<ctl name="aw_dev_0_switch" value="Enable" />
<ctl name="aw_dev_1_switch" value="Enable" />
<ctl name="aw_dev_1_prof" value="Music" />
</path>
<path name="speaker-mono">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="One" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="0"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="SEC_MI2S_RX Channels" value="Two" />
<ctl name="aw_dev_0_switch" value="Enable" />
<ctl name="aw_dev_1_switch" value="Disable" />
<path name="spkr-vi-record" />
</path>
<path name="speaker-left">
<path name="speaker-mono" />
<ctl name="SEC_MI2S_RX Channels" value="One" />
<ctl name="aw_dev_0_switch" value="Disable" />
<ctl name="aw_dev_1_switch" value="Enable" />
</path>
<path name="speaker-right">
<path name="speaker-mono" />
<ctl name="FSM_Scene" value="14"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<path name="speaker" />
</path>
<path name="speaker-mono-2">
@ -3516,7 +3536,7 @@
</path>
<path name="afe-sidetone">
<ctl name="Voice Sidetone Enable" value="0" />
<ctl name="Voice Sidetone Enable" value="1" />
</path>
<path name="speaker-mic">
@ -3549,15 +3569,9 @@
</path>
<path name="handset">
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
<ctl name="RX_CDC_DMA_RX_0 Channels" value="One" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="EAR_RDAC Switch" value="1" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX_EAR Mode" value="ON" />
<ctl name="FSM_Scene" value="15"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="aw_dev_0_switch" value="Disable" />
<ctl name="aw_dev_1_switch" value="Enable" />
<ctl name="aw_dev_1_prof" value="Receiver" />
</path>
<path name="handset-mic">
@ -3637,41 +3651,15 @@
</path>
<path name="voice-speaker">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="EAR_RDAC Switch" value="1" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT"/>
<ctl name="RX_EAR Mode" value="ON" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="14"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="RX_COMP1 Switch" value="1" />
<ctl name="HPHL_COMP Switch" value="1" />
<ctl name="AUX PATH Mode" value="HP_MODE" />
</path>
<path name="voice-speaker-mono">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="One" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="14"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<path name="speaker-mono" />
</path>
<path name="voice-speaker-stereo">
<path name="voice-speaker" />
<path name="speaker" />
</path>
<path name="voice-speaker-2">
<path name="voice-speaker" />
<path name="speaker-mono-2" />
</path>
<path name="voice-speaker-mic">
@ -3695,51 +3683,8 @@
</path>
<path name="speaker-and-headphones">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="EAR_RDAC Switch" value="1" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT"/>
<ctl name="RX_EAR Mode" value="ON" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="0"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="RX INT1_1 MIX1 INP0" value="RX1" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX_COMP1 Switch" value="1" />
<ctl name="RX_COMP2 Switch" value="1" />
<ctl name="HPHL_COMP Switch" value="1" />
<ctl name="HPHR_COMP Switch" value="1" />
<ctl name="HPHL_RDAC Switch" value="1" />
<ctl name="HPHR_RDAC Switch" value="1" />
</path>
<path name="voice-speaker-and-voice-headphones">
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="EAR_RDAC Switch" value="1" />
<ctl name="RDAC3_MUX" value="RX1" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT"/>
<ctl name="RX_EAR Mode" value="ON" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
<ctl name="AUX_RDAC Switch" value="1"/>
<ctl name="RX HPH Mode" value="CLS_AB" />
<ctl name="FSM_Scene" value="14"/>
<ctl name="FSM_Amp_Switch" value="1"/>
<ctl name="RX INT1_1 MIX1 INP0" value="RX1" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX_COMP1 Switch" value="1" />
<ctl name="RX_COMP2 Switch" value="1" />
<ctl name="HPHL_COMP Switch" value="1" />
<ctl name="HPHR_COMP Switch" value="1" />
<ctl name="HPHL_RDAC Switch" value="1" />
<ctl name="HPHR_RDAC Switch" value="1" />
<path name="headphones" />
<path name="speaker" />
</path>
<path name="speaker-and-headphones-hifi-filter">
@ -3859,10 +3804,6 @@
<ctl name="ADC1_MIXER Switch" value="1" />
</path>
<path name="camcorder-mic-audio-zoom">
<path name="speaker-dmic-endfire" />
</path>
<path name="dmic-endfire">
<path name="handset-dmic-endfire" />
<ctl name="IIR0 INP0 MUX" value="DEC2" />

View file

@ -1,21 +1,18 @@
# Copyright (C) 2010 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
device.internal = 1
keyboard.layout = uinput_nav
keyboard.builtIn = 1
keyboard.orientationAware = 1
# Copyright (C) 2020 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.
device.internal = 1
keyboard.layout = uinput-egis
keyboard.builtIn = 1
keyboard.orientationAware = 1

View file

@ -0,0 +1,6 @@
device.internal = 1
keyboard.layout = uinput-focal
keyboard.builtIn = 1
keyboard.orientationAware = 1

View file

@ -1,20 +0,0 @@
#Copyright (c) 2021 Fingerprint Cards AB <tech@fingerprints.com>
#
#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.
device.internal = 1
keyboard.layout = uinput-fpc
keyboard.builtIn = 1
keyboard.orientationAware = 1

View file

@ -1,16 +1,18 @@
# Copyright (C) 2010 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.
key 618 SYSTEM_NAVIGATION_UP
key 619 SYSTEM_NAVIGATION_DOWN
# Copyright (C) 2020 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.
# ets320 "finger present"
key 618 SYSTEM_NAVIGATION_UP
key 619 SYSTEM_NAVIGATION_DOWN
key 622 SYSTEM_NAVIGATION_LEFT

View file

@ -0,0 +1 @@
key 622 SYSTEM_NAVIGATION_LEFT

View file

@ -1,21 +0,0 @@
#
# FPC1020 Touch sensor driver
#
# Copyright (c) 2021 Fingerprint Cards AB <tech@fingerprints.com>
#
# 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.
# fpc1020 "finger present"
# key 618 SYSTEM_NAVIGATION_UP
# key 619 SYSTEM_NAVIGATION_DOWN
key 622 SYSTEM_NAVIGATION_LEFT

View file

@ -10,30 +10,29 @@
TARGET_IS_VAB := true
# Boot animation
TARGET_SCREEN_HEIGHT := 1600
TARGET_SCREEN_WIDTH := 720
TARGET_SCREEN_HEIGHT := 2400
TARGET_SCREEN_WIDTH := 1080
# Screen
TARGET_SCREEN_DENSITY := 280
TARGET_SCREEN_DENSITY := 400
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := 280dpi
PRODUCT_AAPT_PREF_CONFIG := 400dpi
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
PRODUCT_SHIPPING_API_LEVEL := 34
PRODUCT_SHIPPING_API_LEVEL := 31
# Inherit from motorola sm6375-common
$(call inherit-product, device/motorola/sm6375-common/common.mk)
# Overlays
PRODUCT_PACKAGES += \
FrameworksResFogos \
LineageSystemUIFogos \
ProductFrameworksResFogos \
SettingsProviderResFogos \
SystemUIResFogos \
WifiResFogos
FrameworksResRhodep \
LineageSystemUIRhodep \
SettingsProviderResRhodep \
SystemUIResRhodep \
WifiResRhodep
# Audio
PRODUCT_COPY_FILES += \
@ -46,13 +45,9 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml
# Camera
PRODUCT_PACKAGES += \
libgui_shim_vendor
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fogos \
android.hardware.biometrics.fingerprint@2.1-service.rhodep \
com.motorola.hardware.biometric.fingerprint@1.0.vendor
$(foreach f,$(wildcard $(LOCAL_PATH)/configs/idc/*.idc),\
@ -70,7 +65,7 @@ $(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/bin/*.sh),\
# Lineage Touch
PRODUCT_PACKAGES += \
vendor.lineage.touch@1.0-service.fogos
vendor.lineage.touch@1.0-service.rhodep
# NFC
PRODUCT_PACKAGES += \
@ -85,11 +80,7 @@ PRODUCT_PACKAGES += \
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml \
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
# Sensors
@ -100,4 +91,4 @@ PRODUCT_COPY_FILES += \
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# Inherit from vendor blobs
$(call inherit-product, vendor/motorola/fogos/fogos-vendor.mk)
$(call inherit-product, vendor/motorola/rhodep/rhodep-vendor.mk)

View file

@ -9,6 +9,7 @@ from extract_utils.fixups_blob import (
blob_fixups_user_type,
)
from extract_utils.fixups_lib import (
lib_fixup_remove,
lib_fixups,
lib_fixups_user_type,
)
@ -32,15 +33,17 @@ namespace_imports = [
lib_fixups: lib_fixups_user_type = {
**lib_fixups,
(
'libpowercore',
'libmmcamera_mfnr',
): lib_fixup_remove,
}
blob_fixups: blob_fixups_user_type = {
('vendor/lib/libmot_chi_desktop_helper.so', 'vendor/lib64/libmot_chi_desktop_helper.so'): blob_fixup()
.add_needed('libgui_shim_vendor.so'),
} # fmt: skip
module = ExtractUtilsModule(
'fogos',
'rhodep',
'motorola',
namespace_imports=namespace_imports,
blob_fixups=blob_fixups,

View file

@ -4,9 +4,9 @@
// SPDX-License-Identifier: Apache-2.0
//
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.fogos",
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.fogos.xml"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.fogos.rc"],
name: "android.hardware.biometrics.fingerprint@2.1-service.rhodep",
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.rhodep.xml"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.rhodep.rc"],
defaults: ["hidl_defaults"],
relative_install_path: "hw",
srcs: ["service.cpp", "BiometricsFingerprint.cpp"],

View file

@ -5,7 +5,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.fogos"
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.rhodep"
#include "BiometricsFingerprint.h"

View file

@ -1,4 +1,4 @@
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.fogos
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.rhodep
interface android.hardware.biometrics.fingerprint@2.1::IBiometricsFingerprint default
oneshot
# "class hal" causes a race condition on some devices due to files created

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.fogos"
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.rhodep"
#include <android/log.h>
#include <hidl/HidlTransportSupport.h>

View file

@ -9,21 +9,21 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
TARGET_SUPPORTS_OMX_SERVICE := false
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from fogos device
$(call inherit-product, device/motorola/fogos/device.mk)
# Inherit from rhodep device
$(call inherit-product, device/motorola/rhodep/device.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
PRODUCT_NAME := lineage_fogos
PRODUCT_DEVICE := fogos
PRODUCT_NAME := lineage_rhodep
PRODUCT_DEVICE := rhodep
PRODUCT_MANUFACTURER := motorola
PRODUCT_BRAND := motorola
PRODUCT_MODEL := moto g34 5G
PRODUCT_MODEL := moto g82 5G
PRODUCT_GMS_CLIENTID_BASE := android-motorola
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="fogos_g-user 14 U1UGS34M.23-82-2-6 0b9749 release-keys" \
BuildFingerprint=motorola/fogos_g/fogos:11/U1UGS34.23-82-2-6/e21904:user/release-keys \
DeviceProduct=fogos_g
BuildDesc="rhodep_g-user 13 T1SUS33M.1-124-6-14 2ee2d0 release-keys" \
BuildFingerprint=motorola/rhodep_g/rhodep:13/T1SUS33M.1-124-6-14/2ee2d0:user/release-keys \
DeviceProduct=rhodep_g

View file

@ -99,13 +99,20 @@ blocklist moto_f_usbnet
# Motorola product module block list
#
blocklist goodix_fod_mmi
blocklist fpsensor_spi_tee
blocklist rbs_fps_mmi
blocklist focal_fps_mmi
blocklist fpc1020_mmi
blocklist qpnp_adaptive_charge
blocklist nova_0flash_mmi
blocklist leds_aw99703
blocklist leds_lm3697
blocklist focaltech_0flash_v2_mmi
blocklist mmi_smbcharger_iio
blocklist chipone_tddi_v2_mmi
blocklist ilitek_v3_mmi
blocklist goodix_brl_mmi
blocklist tcpc_class
blocklist tcpc_rt1711h
blocklist tcpc_sgm7220.ko
blocklist rt_pd_manager
blocklist mmi_charger
blocklist mmi_discrete_charger_class
blocklist mmi_discrete_charger
blocklist sgm4154x_charger
blocklist bq2589x_charger
blocklist bq2597x_mmi_iio
blocklist mmi_discrete_turbo_charger

View file

@ -1,41 +1,34 @@
sec_nfc.ko
lzo_decompress.ko
wcd9xxx_dlkm.ko
q6_pdr_dlkm.ko
apr_dlkm.ko
adsp_loader_dlkm.ko
swr_ctrl_dlkm.ko
va_macro_dlkm.ko
btpower.ko
platform_dlkm.ko
pinctrl_lpi_dlkm.ko
wcd938x_dlkm.ko
bolero_cdc_dlkm.ko
wcd937x_dlkm.ko
btpower.ko
lzo.ko
snd_event_dlkm.ko
stub_dlkm.ko
wcd_core_dlkm.ko
q6_dlkm.ko
q6_pdr_dlkm.ko
tx_macro_dlkm.ko
native_dlkm.ko
q6_dlkm.ko
wcd937x_slave_dlkm.ko
mbhc_dlkm.ko
bt_fm_slim.ko
camera.ko
q6_notifier_dlkm.ko
wcd938x_dlkm.ko
wsa881x_analog_dlkm.ko
lzo_compress.ko
rdbg.ko
stub_dlkm.ko
lzo-rle.ko
zram.ko
aw882xx_acf.ko
swr_dlkm.ko
rx_macro_dlkm.ko
pinctrl_lpi_dlkm.ko
wcd938x_slave_dlkm.ko
machine_dlkm.ko
wcd_core_dlkm.ko
va_macro_dlkm.ko
aw882xx_k419.ko
swr_ctrl_dlkm.ko
platform_dlkm.ko
fs1815_dlkm.ko
snd_event_dlkm.ko
rx_macro_dlkm.ko
wsa881x_analog_dlkm.ko
aw882xx_acf.ko
wcd937x_slave_dlkm.ko
bt_fm_slim.ko
rdbg.ko
wcd9xxx_dlkm.ko
wcd938x_slave_dlkm.ko
camera.ko
machine_dlkm.ko
mbhc_dlkm.ko
q6_notifier_dlkm.ko
adsp_loader_dlkm.ko
swr_dlkm.ko
apr_dlkm.ko
wlan.ko
rmnet_core.ko
rmnet_ctl.ko
@ -50,17 +43,29 @@ exfat.ko
moto_f_usbnet.ko
watchdogtest.ko
qpnp_adaptive_charge.ko
goodix_fod_mmi.ko
fpc1020_mmi.ko
rbs_fps_mmi.ko
focal_fps_mmi.ko
ldo_vibrator_mmi.ko
wl2868c.ko
cci_intf.ko
sensors_class.ko
mmi_relay.ko
touchscreen_mmi.ko
goodix_brl_mmi.ko
sec_nfc.ko
sx937x_sar.ko
awinic_sar.ko
mmi_sys_temp.ko
ldo_vibrator_mmi.ko
cci_intf.ko
mmi-smbcharger-iio.ko
chipone_tddi_v2_mmi.ko
ilitek_v3_mmi.ko
moto_mm.ko
moto_swap.ko
sm5602_fg_mmi.ko
tcpc_class.ko
tcpc_sgm7220.ko
adapter_class.ko
rt_pd_manager.ko
sgm4154x_charger.ko
bq2589x_charger.ko
bq2597x_mmi_iio.ko
mmi_charger.ko
mmi_discrete_charger_class.ko
mmi_discrete_charger.ko
leds_aw99703.ko
leds_lm3697.ko
mmi_discrete_turbo_charger.ko

View file

@ -6,7 +6,18 @@ sensors_class.ko
moto_f_usbnet.ko
watchdogtest.ko
qpnp_adaptive_charge.ko
sensors_class.ko
ilitek_v3_mmi.ko
goodix_brl_mmi.ko
touchscreen_mmi.ko
sm5602_fg_mmi.ko
tcpc_class.ko
tcpc_sgm7220.ko
adapter_class.ko
rt_pd_manager.ko
sgm4154x_charger.ko
bq2589x_charger.ko
bq2597x_mmi_iio.ko
mmi_sys_temp.ko
mmi-smbcharger-iio.ko
mmi_charger.ko
mmi_discrete_charger_class.ko
mmi_discrete_charger.ko
mmi_discrete_turbo_charger.ko

View file

@ -1,12 +1,14 @@
# All unpinned blobs are extracted from fogos_g-user 14 U1UGS34.23-82-2-6 e21904 release-keys
# All unpinned blobs are extracted from rhodep_g-user 13 T1SUS33.1-124-6-14 a15be release-keys
# ACDB-data
vendor/etc/acdbdata/nn_ns_models/candidate__2.7.1.31__3.0.0__eai_1.10_enpu1.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.0.0_0.1__3.0.0_0.0__eai_1.00.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.2.0_0.1__3.0.0_0.0__eai_1.00.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.0_0.0__3.0.0_0.0__eai_1.00-1.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.0_0.0__3.0.0_0.0__eai_1.00.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.1_0.0__eai_v1.10.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.10.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.10_enpu1.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.10.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.36_enpu2.pmd
vendor/etc/acdbdata/nn_ns_models/fai__2.7.4_0.0__3.0.0_0.0__eai_1.10_enpu1.pmd
vendor/etc/acdbdata/nn_vad_models/fai_3.0.0_0.0_eai_1.00.pmd
@ -24,15 +26,6 @@ vendor/lib/libacdbloader.so
vendor/lib64/libacdbloader.so
# Camera
vendor/etc/bst_3ddns_1.cfg
vendor/etc/bst_3ddns_2.cfg
vendor/etc/bst_3ddns_3.cfg
vendor/etc/bstconfig/hdrcfg.cfg
vendor/etc/pwr/PowerFeatureConfig.xml
vendor/etc/pwr/VideoPowerOptFeature.xml
vendor/lib/libcamxexternalformatutils.so
vendor/lib64/libc2d_helper.so
vendor/lib64/libhdr_impl.so
vendor/lib64/camera/fdconfigpreview.bin
vendor/lib64/camera/fdconfigpreviewlite.bin
vendor/lib64/camera/fdconfigvideo.bin
@ -46,14 +39,9 @@ vendor/lib64/com.qualcomm.mcx.distortionmapper.so
vendor/lib64/com.qualcomm.mcx.linearmapper.so
vendor/lib64/com.qualcomm.mcx.policy.mfl.so
vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so
vendor/lib64/libaidenoiser.so
vendor/lib64/libaidenoiserv2.so
vendor/lib64/libbitmlengine.so
vendor/lib64/libBSTSWAD.so;DISABLE_CHECKELF
vendor/lib64/libbitmlenginev2.so
vendor/lib64/libBST3DDNS.so
vendor/lib64/libBSTHDRDETECT.so
vendor/lib64/libBSTMultiExpoGainHDR.so
vendor/lib64/libBSTNodeUtils.so
vendor/lib64/libbitmlengine.so
vendor/lib64/libcamera_nn_stub.so
vendor/lib64/libcamerapostproc.so
vendor/lib64/libcamxexternalformatutils.so
@ -69,59 +57,42 @@ vendor/lib64/libcamxswprocessalgo.so
vendor/lib64/libcamxtintlessalgo.so
vendor/lib64/libchilog.so
vendor/lib64/libcom.qti.chinodeutils.so
vendor/lib64/libfcell.so
vendor/lib64/libipebpsstriping.so
vendor/lib64/libipebpsstriping170.so
vendor/lib64/libjpege.so
vendor/lib64/libarcsoft_chi_utils.so
vendor/lib64/libarcsoft_portrait_super_night_se_raw.so
vendor/lib64/libarcsoft_super_night_raw.so
vendor/lib64/libarcsoft_super_night_se_raw.so
vendor/lib64/libportrait_repair_ppl3_ocl.so
vendor/lib64/libmot_chi_desktop_helper.so
vendor/lib64/libmot_engine_settings.so
vendor/lib64/liblowlight_ai_portrait.arcsoft.so
vendor/lib64/libmctfengine_stub.so
vendor/lib64/libmfec.so
vendor/lib64/libmmcamera_bestats.so
vendor/lib64/libmmcamera_cac3.so
vendor/lib64/libmmcamera_faceproc.so
vendor/lib64/libmmcamera_faceproc2.so
vendor/lib64/libmmcamera_lscv35.so
vendor/lib64/libmmcamera_mfnr.so
vendor/lib64/libmmcamera_mfnr_t4.so
vendor/lib64/libmmcamera_pdpc.so
vendor/lib64/libmot_afd.so
vendor/lib64/libmotoisdataqueue.so
vendor/lib64/libmpbase.so
vendor/lib64/libofflinedump.so
vendor/lib64/libofflinelog.so
vendor/lib64/libopencv.so
vendor/lib64/libopestriping.so
vendor/lib64/libos.so
vendor/lib64/libpowercore.so
vendor/lib64/libqll10.so
vendor/lib64/libqllengine.so
vendor/lib64/libremosaic_wrapper.so
vendor/lib64/libswregistrationalgo.so
vendor/lib64/libsynx.so
vendor/lib64/libtfestriping.so
vendor/lib64/libthreadutils.so
vendor/lib64/libundistort_impl.so
vendor/lib64/libvideooptfeature.so;DISABLE_CHECKELF
vendor/lib64/libvidhance.so
vendor/lib64/libvidhance_active_ois.so
vendor/lib64/libvidhance_dmbr.so
vendor/lib64/libvidhance_face_stabilizer.so
vendor/lib64/libvidhance_fbc.so
vendor/lib64/libvidhance_horizon_correction.so
vendor/lib64/libvidhance_stabilizer.so
vendor/lib64/libvidhance_zoom_stabilization.so
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so
# Camera - Motorola
vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc
vendor/lib64/hw/motorola.hardware.camera.imgtuner@2.0-impl.so;DISABLE_CHECKELF
vendor/lib64/motorola.hardware.camera.imgtuner@1.0.so;DISABLE_CHECKELF
vendor/lib64/motorola.hardware.camera.imgtuner@2.0.so;DISABLE_CHECKELF
vendor/lib64/motorola.hardware.camera.desktop@1.0.so
vendor/lib64/motorola.hardware.camera.desktop@2.0.so
# Camera-arcsoft
vendor/lib64/libarcsoft_low_light_shot.so
vendor/lib64/liblowlight_ai_portrait.arcsoft.so
# Camera - Components
vendor/lib64/camera/components/com.arcsoft.node.supernightraw.so
vendor/lib64/camera/components/com.bst.node.hdrdetect.so
vendor/lib64/camera/components/com.bst.node.mfnr.so
vendor/lib64/camera/components/com.bst.node.yuvhdr.so
vendor/lib64/camera/components/com.mot.node.c2d.so
vendor/lib64/camera/components/com.arcsoft.node.mfnr.so
vendor/lib64/camera/components/com.mot.node.dc_capture.so
vendor/lib64/camera/components/com.mot.node.dc_preview.so
vendor/lib64/camera/components/com.qti.camx.chiiqutils.so
vendor/lib64/camera/components/com.qti.eisv2.so
vendor/lib64/camera/components/com.qti.eisv3.so
@ -146,7 +117,7 @@ vendor/lib64/camera/components/com.qti.node.swbestats.so
vendor/lib64/camera/components/com.qti.node.swcac.so
vendor/lib64/camera/components/com.qti.node.swlsc.so
vendor/lib64/camera/components/com.qti.node.swmctf.so
vendor/lib64/camera/components/com.qti.node.swmfnr.so
vendor/lib64/camera/components/com.qti.node.swmfnr.so;DISABLE_CHECKELF
vendor/lib64/camera/components/com.qti.node.swpdpc.so
vendor/lib64/camera/components/com.qti.node.swpreprocess.so
vendor/lib64/camera/components/com.qti.node.swregistration.so
@ -171,11 +142,11 @@ vendor/lib64/camera/components/com.qtistatic.stats.awb.so
vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so
vendor/lib64/camera/components/com.vidhance.node.ica.so
vendor/lib64/camera/components/com.vidhance.node.processing.so
vendor/lib64/camera/components/com.vidhance.stats.aec_dmbr.so
vendor/lib64/camera/components/libdepthmapwrapper_secure.so
# Camera - feature2
vendor/lib64/com.qti.feature2.anchorsync.so
vendor/lib64/com.qti.feature2.arcrawpro.so
vendor/lib64/com.qti.feature2.demux.so
vendor/lib64/com.qti.feature2.frameselect.so
vendor/lib64/com.qti.feature2.fusion.so
@ -194,80 +165,74 @@ vendor/lib64/com.qti.feature2.serializer.so
vendor/lib64/com.qti.feature2.swmf.so
# Camera - etc
vendor/etc/camera/anc_detect_model
vendor/etc/camera/anc_track_model
vendor/etc/camera/mot_engine_config.bin
vendor/etc/camera/vidhance.lic
vendor/etc/camera/aec_golden_wide.bin
vendor/etc/camera/dual_golden_wide.bin
vendor/etc/camera/SwadAIMod.bin
vendor/etc/camera/SwadCalib.bin
vendor/etc/camera/SwadParamList.txt
vendor/etc/camera/vidhance_calibration
vendor/etc/camera/vidhance_calibration_2rd
# Camera - eeprom
vendor/lib64/camera/com.mot.eeprom.mot_gt24p256c_s5kjns_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_ov16a1q_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_s5k3p9_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_sc202acs_otp.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p128e_s5kjn1_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p64e_ov16a1q_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_rhodep_gc02m1_otp.so
vendor/lib64/camera/com.mot.eeprom.mot_rhodep_s5k4h7_otp.so
# Camera - sensor
vendor/lib64/camera/com.qti.flash.aw36514.so
vendor/lib64/camera/com.qti.flash.ocp81375.so
vendor/lib64/camera/com.qti.sensor.mot_gc02m1.so
vendor/lib64/camera/com.qti.sensor.mot_ov16a1q.so
vendor/lib64/camera/com.qti.sensor.mot_s5k3p9.so
vendor/lib64/camera/com.qti.sensor.mot_s5kjns.so
vendor/lib64/camera/com.qti.sensor.mot_sc202acs.so
vendor/lib64/camera/com.qti.sensormodule.mot_fogor_s5kjns_qtech.bin
vendor/lib64/camera/com.qti.sensormodule.mot_fogor_sc202acs_sunny.bin
vendor/lib64/camera/com.qti.sensormodule.mot_fogos_ov16a1q_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_fogos_s5k3p9_qtech.bin
vendor/lib64/camera/com.qti.sensor.mot_s5k4h7.so
vendor/lib64/camera/com.qti.sensor.mot_s5kjn1.so
vendor/lib64/camera/com.qti.sensormodule.mot_rhodep_gc02m1_sunwin.bin
vendor/lib64/camera/com.qti.sensormodule.mot_rhodep_ov16a1q_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_rhodep_s5k4h7_qtech_ff.bin
vendor/lib64/camera/com.qti.sensormodule.mot_rhodep_s5kjn1_qtech.bin
vendor/lib64/camera/com.qti.sensormodule.mot_rhodep_s5kjn1_sunny.bin
# Camera - tuned
vendor/lib64/camera/com.qti.tuned.default.bin
vendor/lib64/camera/com.qti.tuned.mot_fogo_sc202acs.bin
vendor/lib64/camera/com.qti.tuned.mot_fogor_s5kjns.bin
vendor/lib64/camera/com.qti.tuned.mot_fogos_ov16a1q.bin
vendor/lib64/camera/com.qti.tuned.mot_fogos_s5k3p9.bin
vendor/lib64/camera/com.qti.tuned.mot_rhodep_gc02m1.bin
vendor/lib64/camera/com.qti.tuned.mot_rhodep_ov16a1q.bin
vendor/lib64/camera/com.qti.tuned.mot_rhodep_s5k4h7ff.bin
vendor/lib64/camera/com.qti.tuned.mot_rhodep_s5kjn1.bin
vendor/lib64/camera/com.qti.tuned.mot_rhodep_s5kjn1_2nd.bin
# Display calibration data
vendor/etc/qdcm_calib_data_mipi_mot_vid_tm_icnl9916c_hdp_652_120.xml
vendor/etc/qdcm_calib_data_mipi_mot_vid_txd_ili9883c_hdp_652_120.xml
# Display config
vendor/etc/SVIConfig.xml
# EUICC
product/app/EuiccPartnerApp/EuiccPartnerApp.apk
product/etc/permissions/privapp-permissions-com.google.android.euicc.xml
product/priv-app/EuiccGoogle/EuiccGoogle.apk
vendor/etc/qdcm_calib_data_mipi_mot_cmd_csot_1080p_dsc_655.xml
vendor/etc/qdcm_calib_data_mipi_mot_cmd_tm_1080p_dsc_655.xml
vendor/etc/qdcm_calib_data_nt36672e_60_Hz_fhd_plus_video_mode_panel_without_DSC.xml
vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_120Hz_Video_panel.xml
vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_144Hz_video_panel.xml
# Fingerprint
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-goodixservice
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-fpc
vendor/bin/hw/fpc_ident:vendor/bin/fpc_ident
vendor/bin/hw/goodix_ident:vendor/bin/goodix_ident
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-goodixservice.rc
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-fpc2.rc
vendor/lib64/com.fingerprints.extension@1.0.so
vendor/lib64/hw/fingerprint.goodix.default.so
vendor/lib64/libgf_ca.so
vendor/lib64/libgf_hal.so
vendor/lib64/libgoodixhwfingerprint.so
vendor/lib64/vendor.goodix.hardware.biometrics.fingerprint@3.0.so
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-focalservice
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-focalservice.rc
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets2.rc
vendor/etc/init/init.ets.rc
vendor/lib64/hw/fingerprint.focaltech.default.so
vendor/lib64/libRbsFlow.so
vendor/lib64/libets_teeclient_v2.so
vendor/lib64/vendor.egistec.hardware.fingerprint@4.0.so
vendor/lib64/vendor.focaltech.fingerprint@1.0.so
vendor/lib64/vendor.qti.hardware.fingerprint@1.0.so
# Firmware
vendor/etc/motorola/12m/chipone-icnl9916c_120hz_hd_plus_vid-primary-fogos.ini
vendor/firmware/aw963xx_reg_0.bin
vendor/firmware/chipone_firmware.bin
vendor/firmware/csot_focal_test_limits.ini
vendor/firmware/focaltech-csot-ft3681-22-0000-fogos.bin
vendor/firmware/fs1815.fsm
vendor/firmware/goodix-tm-gt9916S-23051702-646483c4-fogos.bin
vendor/firmware/ILITEK_FW
vendor/firmware/aw882xx_pid_2113_acf.bin
vendor/firmware/aw_skt.bin
vendor/firmware/csot_goodix_cfg_group.bin
vendor/firmware/csot_goodix_test_limits_255.csv
vendor/firmware/goodix-csot-gt9916S-2201040d-61EA60E3-rhodep.bin
vendor/firmware/goodix-tianma-gt9916S-2201040d-61EA66BC-rhodep.bin
vendor/firmware/tianma_goodix_cfg_group.bin
vendor/firmware/tianma_goodix_test_limits_255.csv
vendor/firmware/mot_dw9781c.prog
vendor/firmware/sec_s3nrn4v_firmware.bin
vendor/firmware/tm_goodix_cfg_group.bin
# HotwordEnrollment
product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk
product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk
product/priv-app/HotwordEnrollmentOKGoogleHEXAGON/HotwordEnrollmentOKGoogleHEXAGON.apk
product/priv-app/HotwordEnrollmentXGoogleHEXAGON/HotwordEnrollmentXGoogleHEXAGON.apk
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
system_ext/framework/com.android.hotwordenrollment.common.util.jar
@ -291,21 +256,18 @@ system_ext/bin/motsettings
# Moto Permissions
product/etc/permissions/com.motorola.camera3.xml:vendor/etc/permissions/com.motorola.camera3.xml
product/etc/permissions/com.motorola.camera3.content.ai.xml:vendor/etc/permissions/com.motorola.camera3.content.ai.xml
product/etc/permissions/com.motorola.camera3.fogos.xml:vendor/etc/permissions/com.motorola.camera3.fogos.xml
product/etc/permissions/com.motorola.camera3.rhodep.xml:vendor/etc/permissions/com.motorola.camera3.rhodec.xml
product/etc/permissions/com.motorola.camera3.lens.xml:vendor/etc/permissions/com.motorola.camera3.lens.xml
product/etc/permissions/com.motorola.moto-uirefresh.xml
# NFC
vendor/etc/libnfc-PN557.conf
vendor/etc/libnfc-SN220-UICC.conf
vendor/etc/libnfc-SN220.conf
vendor/etc/libnfc-mtp-SN100-UICC.conf
vendor/etc/libnfc-mtp-SN100.conf
vendor/etc/libnfc-mtp-SN100_38_4MHZ.conf
vendor/etc/libnfc-nci.conf
vendor/etc/libnfc-nxp-pnscr.conf
vendor/etc/libnfc-qrd-SN100.conf
vendor/etc/libnfc-qrd-SN100_38_4MHZ.conf
vendor/etc/libnfc-sec-nci.conf
vendor/etc/libnfc-sec-vendor.conf
vendor/etc/nfc_calibration.txt
@ -318,9 +280,13 @@ vendor/lib64/sensors.ssc.so
# Sensors Configs
vendor/bin/capsense_reset
vendor/etc/sensors/config/icm4x6xa.json
vendor/etc/sensors/config/ak991x_0.json
vendor/etc/sensors/config/holi_default_sensors.json
vendor/etc/sensors/config/holi_lsm6dso_0.json
vendor/etc/sensors/config/holi_power_0.json
vendor/etc/sensors/config/icm4x6xx.json
vendor/etc/sensors/config/mmc56x3x_0.json
vendor/etc/sensors/config/mot_camgest.json
vendor/etc/sensors/config/mot_tap.json
vendor/etc/sensors/config/sns_amd.json
vendor/etc/sensors/config/sns_amd_sw_disabled.json
vendor/etc/sensors/config/sns_amd_sw_enabled.json
@ -337,16 +303,9 @@ vendor/etc/sensors/config/sns_smd.json
vendor/etc/sensors/config/sns_tilt_sw_enabled.json
vendor/etc/sensors/config/sns_tilt_to_wake.json
vendor/etc/sensors/config/sns_wrist_pedo.json
vendor/etc/sensors/config/strait_bmi3x0_0.json
vendor/etc/sensors/config/strait_default_sensors.json
vendor/etc/sensors/config/strait_dynamic_sensors.json
vendor/etc/sensors/config/strait_ltr569_0.json
vendor/etc/sensors/config/strait_mmc56x3x_0_with_nfc.json
vendor/etc/sensors/config/strait_mmc56x3x_0_without_nfc.json
vendor/etc/sensors/config/strait_power_0.json
vendor/etc/sensors/config/strait_qmc6308_0_with_nfc.json
vendor/etc/sensors/config/strait_qmc6308_0_without_nfc.json
vendor/etc/sensors/config/strait_qmi8658_0.json
vendor/etc/sensors/config/stk3a5x_0_DVT1.json
vendor/etc/sensors/config/stk3a5x_0_DVT2.json
vendor/etc/sensors/config/stk3a5x_0.json
vendor/etc/sensors/proto/descriptor.proto
vendor/etc/sensors/proto/mot_barocal.proto
vendor/etc/sensors/proto/mot_camgest.proto
@ -364,11 +323,10 @@ vendor/etc/sensors/proto/mot_offbody.proto
vendor/etc/sensors/proto/mot_probe.proto
vendor/etc/sensors/proto/mot_proxcal.proto
vendor/etc/sensors/proto/mot_stowed.proto
vendor/etc/sensors/proto/mot_tap.proto
vendor/etc/sensors/proto/mot_vsync.proto
vendor/etc/sensors/proto/nanopb.proto
vendor/etc/sensors/proto/sns_accel.proto
vendor/etc/sensors/proto/sns_accel_cal.proto
vendor/etc/sensors/proto/sns_accel.proto
vendor/etc/sensors/proto/sns_activity_recognition.proto
vendor/etc/sensors/proto/sns_ambient_light.proto
vendor/etc/sensors/proto/sns_ambient_temperature.proto
@ -390,21 +348,20 @@ vendor/etc/sensors/proto/sns_ext_svc.proto
vendor/etc/sensors/proto/sns_facing.proto
vendor/etc/sensors/proto/sns_fmv.proto
vendor/etc/sensors/proto/sns_formatter.proto
vendor/etc/sensors/proto/sns_formatter_notify.proto
vendor/etc/sensors/proto/sns_fw.proto
vendor/etc/sensors/proto/sns_game_rv.proto
vendor/etc/sensors/proto/sns_geomag_rv.proto
vendor/etc/sensors/proto/sns_gravity.proto
vendor/etc/sensors/proto/sns_gyro.proto
vendor/etc/sensors/proto/sns_gyro_cal.proto
vendor/etc/sensors/proto/sns_gyro.proto
vendor/etc/sensors/proto/sns_gyro_rot_matrix.proto
vendor/etc/sensors/proto/sns_hall.proto
vendor/etc/sensors/proto/sns_heart_beat.proto
vendor/etc/sensors/proto/sns_heart_rate.proto
vendor/etc/sensors/proto/sns_hinge_angle.proto
vendor/etc/sensors/proto/sns_humidity.proto
vendor/etc/sensors/proto/sns_mag.proto
vendor/etc/sensors/proto/sns_mag_cal.proto
vendor/etc/sensors/proto/sns_mag.proto
vendor/etc/sensors/proto/sns_mot_factory_cal.proto
vendor/etc/sensors/proto/sns_oem1.proto
vendor/etc/sensors/proto/sns_offbody_detect.proto
@ -424,8 +381,8 @@ vendor/etc/sensors/proto/sns_rotv.proto
vendor/etc/sensors/proto/sns_sar.proto
vendor/etc/sensors/proto/sns_sensor_temperature.proto
vendor/etc/sensors/proto/sns_sig_motion.proto
vendor/etc/sensors/proto/sns_std.proto
vendor/etc/sensors/proto/sns_std_event_gated_sensor.proto
vendor/etc/sensors/proto/sns_std.proto
vendor/etc/sensors/proto/sns_std_sensor.proto
vendor/etc/sensors/proto/sns_std_type.proto
vendor/etc/sensors/proto/sns_step_detect.proto
@ -440,8 +397,5 @@ vendor/etc/sensors/proto/tcs3708.proto
vendor/etc/sensors/sns_reg_config
# Thermal configs
vendor/etc/thermal-engine-fogos-camera.conf
vendor/etc/thermal-engine-fogos-game-normal.conf
vendor/etc/thermal-engine-fogos-game-perf.conf
vendor/etc/thermal-engine-fogos.conf
vendor/etc/thermal-engine-rhodep.conf
vendor/etc/thermal-engine.conf

View file

@ -1,82 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">120.12</item>
<item name="screen.full">370.48</item>
<item name="wifi.on">1.78</item>
<item name="wifi.active">110.2</item>
<item name="wifi.scan">83.35</item>
<item name="camera.avg">607.96</item>
<item name="camera.flashlight">158.81</item>
<item name="gps.on">50.69</item>
<item name="radio.active">149.95</item>
<item name="radio.scanning">74.8</item>
<array name="radio.on">
<value>51</value>
<value>43</value>
<value>36</value>
<value>29</value>
<value>22</value>
<value>16</value>
<value>10</value>
<value>4.54</value>
</array>
<array name="cpu.clusters.cores">
<value>6</value>
<value>2</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>576000</value>
<value>691200</value>
<value>940800</value>
<value>1113600</value>
<value>1324800</value>
<value>1516800</value>
<value>1651200</value>
<value>1708800</value>
<value>1804800</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>691200</value>
<value>940800</value>
<value>1228800</value>
<value>1401600</value>
<value>1516800</value>
<value>1651200</value>
<value>1804800</value>
<value>1900800</value>
<value>2054400</value>
<value>2208000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>22.8</value>
<value>24.7</value>
<value>25.6</value>
<value>31.1</value>
<value>33.9</value>
<value>39.3</value>
<value>43.8</value>
<value>52.3</value>
<value>53.7</value>
<value>57.2</value>
</array>
<array name="cpu.core_power.cluster1">
<value>53.3</value>
<value>68.5</value>
<value>91.2</value>
<value>114.4</value>
<value>130.6</value>
<value>155.6</value>
<value>173.7</value>
<value>184.6</value>
<value>197.3</value>
<value>220.5</value>
</array>
<item name="cpu.cluster_power.cluster0">13.5</item>
<item name="cpu.cluster_power.cluster1">43.3</item>
<item name="cpu.suspend">6.34</item>
<item name="cpu.idle">8.606</item>
<item name="cpu.active">10.72</item>
<item name="battery.capacity">5000</item>
</device>

View file

@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "ProductFrameworksResFogos",
sdk_version: "current",
product_specific: true
}

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.overlay.product.fogos">
<overlay android:targetPackage="android" android:isStatic="true" android:priority="600"/>
</manifest>

View file

@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- An array of device capabilities defined by GSMA SGP.22 v2.0.
The first item is the capability name that the device supports. The second item is the
major version. The minor and revision versions are default to 0s.
The device capabilities and their definition in the spec are:
gsm : gsmSupportedRelease
utran : utranSupportedRelease
cdma1x : cdma2000onexSupportedRelease
hrpd : cdma2000hrpdSupportedRelease
ehrpd : cdma2000ehrpdSupportedRelease
eutran : eutranSupportedRelease
nfc : contactlessSupportedRelease
crl : rspCrlSupportedVersion
nrepc : nrEpcSupportedRelease
nr5gc : nr5gcSupportedRelease
eutran5gc : eutran5gcSupportedRelease
-->
<string-array name="config_telephonyEuiccDeviceCapabilities">
<item>gsm,9</item>
<item>utran,9</item>
<item>eutran,15</item>
</string-array>
<!-- Device-specific array of SIM slot indexes which are are embedded eUICCs.
e.g. If a device has two physical slots with indexes 0, 1, and slot 1 is an
eUICC, then the value of this array should be:
<integer-array name="non_removable_euicc_slots">
<item>1</item>
</integer-array>
If a device has three physical slots and slot 1 and 2 are eUICCs, then the value of
this array should be:
<integer-array name="non_removable_euicc_slots">
<item>1</item>
<item>2</item>
</integer-array>
This is used to differentiate between removable eUICCs and built in eUICCs, and should
be set by OEMs for devices which use eUICCs. -->
<integer-array name="non_removable_euicc_slots">
<item>1</item>
</integer-array>
</resources>

View file

@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "FrameworksResFogos",
name: "FrameworksResRhodep",
sdk_version: "current",
vendor: true
}

View file

@ -4,6 +4,6 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.overlay.fogos">
package="android.overlay.rhodep">
<overlay android:targetPackage="android" android:isStatic="true" android:priority="600"/>
</manifest>

View file

@ -25,29 +25,16 @@
Must be overridden in platform specific overlays -->
<array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>4</item>
<item>5</item>
<item>10</item>
<item>29</item>
<item>50</item>
<item>90</item>
<item>40</item>
<item>100</item>
<item>150</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>800</item>
<item>1000</item>
<item>1300</item>
<item>1500</item>
<item>1600</item>
<item>1800</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>8000</item>
<item>325</item>
<item>1250</item>
<item>3500</item>
<item>5500</item>
</array>
<!-- Array of desired screen brightness in nits corresponding to the lux values
@ -64,30 +51,17 @@
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
<item>3</item>
<item>2</item>
<item>7</item>
<item>10</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>210</item>
<item>210</item>
<item>210</item>
<item>220</item>
<item>225</item>
<item>225</item>
<item>350</item>
<item>400</item>
<item>400</item>
<item>400</item>
<item>400</item>
<item>12</item>
<item>24</item>
<item>95</item>
<item>111</item>
<item>149</item>
<item>192</item>
<item>252</item>
<item>500</item>
</array>
<!-- An array describing the screen's backlight values corresponding to the brightness
@ -96,20 +70,16 @@
This array should be equal in size to config_screenBrightnessBacklight. -->
<array name="config_screenBrightnessBacklight">
<item>0</item>
<item>2</item>
<item>1</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>13</item>
<item>32</item>
<item>45</item>
<item>54</item>
<item>70</item>
<item>83</item>
<item>96</item>
<item>115</item>
<item>134</item>
<item>140</item>
<item>143</item>
<item>223</item>
<item>12</item>
<item>48</item>
<item>57</item>
<item>76</item>
<item>98</item>
<item>129</item>
<item>255</item>
</array>
@ -133,21 +103,17 @@
This array should be equal in size to config_screenBrightnessBacklight -->
<array name="config_screenBrightnessNits">
<item>0</item>
<item>3</item>
<item>2</item>
<item>7</item>
<item>10</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>210</item>
<item>220</item>
<item>225</item>
<item>350</item>
<item>400</item>
<item>12</item>
<item>24</item>
<item>95</item>
<item>111</item>
<item>149</item>
<item>192</item>
<item>252</item>
<item>500</item>
</array>
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
@ -180,10 +146,10 @@
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">
M -28,0
L 28,0
L 28,77
L -28,77
M -34,0
L -34,100
L 34,100
L 34,0
Z
</string>
@ -244,11 +210,11 @@
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">2</integer>
<integer name="config_screenBrightnessDim">1</integer>
<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">2</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<array name="config_longPressVibePattern">
@ -266,14 +232,14 @@
<!-- Vibrator pattern for feedback when selecting an hour/minute tick of a Clock -->
<array name="config_clockTickVibePattern">
<item>0</item>
<item>40</item>
<item>125</item>
<item>30</item>
</array>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<array name="config_virtualKeyVibePattern">
<item>0</item>
<item>67</item>
<item>30</item>
</array>
<!-- Vibrator pattern for feedback about booting with safe mode enabled -->
@ -313,9 +279,9 @@
</array>
<array name="config_sfps_sensor_props_0" translatable="false">
<item>local:4630946747577212033</item> <!--item>displayId</item-->
<item>720</item> <!--item>sensorLocationX</item-->
<item>600</item> <!--item>sensorLocationY</item-->
<item>local:4630947043778501761</item> <!--item>displayId</item-->
<item>1080</item> <!--item>sensorLocationX</item-->
<item>815</item> <!--item>sensorLocationY</item-->
<item>200</item> <!--item>sensorRadius</item-->
</array>
@ -339,7 +305,7 @@
<integer name="config_defaultPeakRefreshRate">120</integer>
<!-- MMS user agent string -->
<string name="config_mms_user_agent" translatable="false">motog345G</string>
<string name="config_mms_user_agent" translatable="false">motog625G</string>
<!-- MMS user agent profile url -->
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>

View file

@ -5,12 +5,12 @@
-->
<resources>
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius_bottom">60.0px</dimen>
<dimen name="rounded_corner_radius_top">66.0px</dimen>
<dimen name="rounded_corner_radius_bottom">95.0px</dimen>
<dimen name="rounded_corner_radius_top">95.0px</dimen>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height">77.0px</dimen>
<dimen name="status_bar_height">100.0px</dimen>
<dimen name="status_bar_padding_top_portrait">10.0px</dimen>
<dimen name="status_bar_padding_top_portrait">16.0px</dimen>
</resources>

View file

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">47.12</item>
<item name="screen.full">310.48</item>
<item name="wifi.on">1.78</item>
<item name="wifi.active">88.58</item>
<item name="wifi.scan">44.18</item>
<item name="camera.avg">607.96</item>
<item name="camera.flashlight">99.85</item>
<item name="gps.on">50.69</item>
<item name="radio.active">284.89</item>
<item name="radio.scanning">35</item>
<array name="radio.on">
<value>35</value>
<value>30</value>
<value>25</value>
<value>20</value>
<value>15</value>
<value>10</value>
<value>5</value>
<value>1.090</value>
</array>
<array name="cpu.clusters.cores">
<value>6</value>
<value>2</value>
</array>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>576000</value>
<value>710400</value>
<value>940800</value>
<value>1190400</value>
<value>1324800</value>
<value>1478400</value>
<value>1574400</value>
<value>1708800</value>
<value>1804800</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>768000</value>
<value>979200</value>
<value>1017600</value>
<value>1248000</value>
<value>1401600</value>
<value>1536000</value>
<value>1651200</value>
<value>1804800</value>
<value>2035200</value>
</array>
<array name="cpu.core_power.cluster0">
<value>22.3</value>
<value>25.9</value>
<value>27.7</value>
<value>32.7</value>
<value>36.5</value>
<value>39.8</value>
<value>43.1</value>
<value>51.9</value>
<value>54.9</value>
<value>58.0</value>
</array>
<array name="cpu.core_power.cluster1">
<value>45.3</value>
<value>55.7</value>
<value>57.7</value>
<value>70.8</value>
<value>84.4</value>
<value>93.1</value>
<value>111.6</value>
<value>134.1</value>
<value>168.5</value>
</array>
<item name="cpu.cluster_power.cluster0">0.7</item>
<item name="cpu.cluster_power.cluster1">6.7</item>
<item name="cpu.suspend">3.993</item>
<item name="cpu.idle">5.006</item>
<item name="cpu.active">4.4</item>
<item name="battery.capacity">5000</item>
</device>

View file

@ -4,6 +4,6 @@
//
runtime_resource_overlay {
name: "LineageSystemUIFogos",
name: "LineageSystemUIRhodep",
vendor: true,
}

View file

@ -4,7 +4,7 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.fogos.lineage">
package="com.android.systemui.rhodep.lineage">
<overlay
android:isStatic="true"

View file

@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "SettingsProviderResFogos",
name: "SettingsProviderResRhodep",
sdk_version: "current",
vendor: true
}

View file

@ -5,6 +5,6 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
coreApp="true"
package="com.android.providers.settings.overlay.fogos">
package="com.android.providers.settings.overlay.rhodep">
<overlay android:targetPackage="com.android.providers.settings" android:isStatic="true" />
</manifest>

View file

@ -5,5 +5,5 @@
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple">moto g34 5G</string>
<string name="def_device_name_simple">moto g82 5G</string>
</resources>

View file

@ -1,5 +1,5 @@
runtime_resource_overlay {
name: "SystemUIResFogos",
name: "SystemUIResRhodep",
sdk_version: "current",
vendor: true
}

View file

@ -5,6 +5,6 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
coreApp="true"
package="com.android.systemui.overlay.fogos">
package="com.android.systemui.overlay.rhodep">
<overlay android:targetPackage="com.android.systemui" android:isStatic="true" />
</manifest>

View file

@ -5,12 +5,12 @@
-->
<resources>
<!-- the padding on the start of the statusbar -->
<dimen name="status_bar_padding_start">8dp</dimen>
<dimen name="status_bar_padding_start">24dp</dimen>
<!-- the padding on the top of the statusbar (usually 0) -->
<dimen name="status_bar_padding_top">10.0px</dimen>
<dimen name="status_bar_padding_top">19.0px</dimen>
<dimen name="rounded_corner_content_padding">11.0px</dimen>
<dimen name="rounded_corner_content_padding">20.0px</dimen>
<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
@ -18,28 +18,28 @@
<!-- Margin on the left side of the carrier text on Keyguard -->
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">10.0px</dimen>
<dimen name="system_icons_keyguard_padding_end">19.0px</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">700px</dimen>
<dimen name="physical_power_button_center_screen_location_y">810px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">700px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">810px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">720px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<!-- Location on the screen of the center of the physical volume up/down buttons. -->
<dimen name="physical_volume_up_button_center_screen_location_y">300px</dimen>
<dimen name="physical_volume_down_button_center_screen_location_y">482px</dimen>
<dimen name="physical_volume_up_button_center_screen_location_y">450px</dimen>
<dimen name="physical_volume_down_button_center_screen_location_y">722px</dimen>
<!-- Configure protection around the front-facing camera -->
<string name="config_frontBuiltInDisplayCutoutProtection">

View file

@ -4,7 +4,7 @@
//
runtime_resource_overlay {
name: "WifiResFogos",
name: "WifiResRhodep",
sdk_version: "current",
vendor: true,
}

View file

@ -4,7 +4,7 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wifi.resources.overlay.fogos">
package="com.android.wifi.resources.overlay.rhodep">
<overlay
android:isStatic="true"

View file

@ -19,6 +19,6 @@
<resources>
<!-- Default access point SSID used for tethering -->
<string name="wifi_tether_configure_ssid_default" translatable="false">moto g34 5G</string>
<string name="wifi_tether_configure_ssid_default" translatable="false">moto g82 5G</string>
</resources>

View file

@ -0,0 +1,15 @@
#!/vendor/bin/sh
#
# Identify fingerprint sensor model
#
# Copyright (c) 2019 Lenovo
# All rights reserved.
#
# Changed Log:
# ---------------------------------
# April 15, 2019 chengql2@lenovo.com Initial version
# April 28, 2019 chengql2 Add fps_id creating step
# December 2, 2019 chengql2 Store fps_id into persist fs, and identify sensor
# again when secure unit boots as factory mode.
# November 19, 2020 zengzm move all codes to init.oem.fingerprint2.sh

View file

@ -27,11 +27,10 @@ GKI_PATH=$(getprop $PROP_GKI_PATH)
# hal_list: the array contains the hal service name.
#
# note: all arrays should have the same size.
vendor_list=('goodix' 'fpc')
kernel_so_list=("/vendor/lib/modules/$GKI_PATH/goodix_fod_mmi.ko" "/vendor/lib/modules/$GKI_PATH/fpc1020_mmi.ko")
kernel_so_name_list=("goodix_fod_mmi.ko" "fpc1020_mmi.ko")
dev_node_list=("/dev/goodix_fp" "/sys/class/fingerprint/fpc1020/irq")
hal_list=('goodix_hal' 'fps_hal')
vendor_list=('egis' 'focal')
kernel_so_list=("/vendor/lib/modules/$GKI_PATH/rbs_fps_mmi.ko" "/vendor/lib/modules/$GKI_PATH/focal_fps_mmi.ko")
kernel_so_name_list=("rbs_fps_mmi.ko" "focal_fps_mmi.ko")
hal_list=('ets_hal' 'focal_hal')
last_vendor_index=`expr ${#vendor_list[@]} - 1`
vendor_list_size=${#vendor_list[@]}
@ -57,7 +56,7 @@ persist_fps_id=/mnt/vendor/persist/fps/vendor_id
persist_fps_id2=/mnt/vendor/persist/fps/last_vendor_id
FPS_VENDOR_NONE=none
MAX_TIMES=50
MAX_TIMES=20
# this property store FPS_STATUS_NONE or FPS_STATUS_OK
# after start fingerprint hal service, the hal service will set this property.
@ -95,19 +94,6 @@ function start_hal_service(){
sleep 1
setprop $prop_fps_ident ${vendor_list[$1]}
retry=1
while [ $retry -lt 5 ]
do
if [ -e "${dev_node_list[$1]}" ]; then
log "dev node : ${dev_node_list[$1]} is ready"
break
else
log "driver is not ready, $retry times wait 1s to retry"
sleep 1
fi
let retry++
done
log "start ${hal_list[$1]}"
start ${hal_list[$1]}

View file

@ -2,160 +2,81 @@
import /vendor/etc/init/hw/init.nfc.sec.rc
on post-fs
chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable
chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq
# "Tap to wake" gesture
chown root input /sys/class/sensors/dt-gesture/enable
chmod 0660 /sys/class/sensors/dt-gesture/enable
chown root input /sys/class/sensors/dt-gesture/poll_delay
chmod 0660 /sys/class/sensors/dt-gesture/poll_delay
on post-fs
chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable
chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq
#fps dual sensor
service chipone_ident /vendor/bin/hw/chipone_ident
class late_start
user system
group system
oneshot
disabled
service vendor.ident-fps-overlay-sh /vendor/bin/init.oem.fingerprint.overlay.sh
class core
user root
group drmrpc system
oneshot
disabled
on post-fs-data
exec_start vendor.ident-fps-overlay-sh
chown system system /dev/fpsensor
chmod 0660 /dev/fpsensor
chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en
# touch api
chown system system /sys/class/touchscreen/primary/interpolation
chmod 0660 /sys/class/touchscreen/primary/interpolation
chown system system /sys/class/touchscreen/primary/first_filter
chmod 0660 /sys/class/touchscreen/primary/first_filter
chown system system /sys/class/touchscreen/primary/edge
chmod 0660 /sys/class/touchscreen/primary/edge
# change permission for stylus
chown system system /sys/class/touchscreen/primary/palm_settings
# Change ownership and permission for bq25960-standalone factory testing
chown system system /sys/class/power_supply/bq25960-standalone/voltage_now
chown system system /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
chmod 0644 /sys/class/power_supply/bq25960-standalone/voltage_now
chmod 0664 /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
# Change ownership and permission for cp-standalone factory testing
chown system system /sys/class/power_supply/cp-standalone/voltage_now
chown system system /sys/bus/iio/devices/iio:device5/in_index_sc8549_cp_enable_input
chmod 0644 /sys/class/power_supply/cp-standalone/voltage_now
chmod 0664 /sys/bus/iio/devices/iio:device5/in_index_sc8549_cp_enable_input
# Add for Egis Fod fingerprint
mkdir /data/vendor/egis 0770 system system
mkdir /mnt/vendor/persist/egis 0770 system system
mkdir /data/vendor/tzstorage/egis 0770 system system
mkdir /data/vendor/egis/cqa 0770 system system
# Add for after-sale ois gyro cal
mkdir /mnt/vendor/persist/camera/gyro_compat 0770 vendor_tcmd camera
# Add for OIS hall test result
mkdir /mnt/vendor/persist/camera/ois_hall 0770 vendor_tcmd camera
# Add for fod fps calibration
chown system system /sys/class/backlight/panel0-backlight/brightness
chown system system /sys/class/drm/card0-DSI-1/panelName
chown system system /sys/class/drm/card0-DSI-1/panelId
chown system system /d/dri/0/debug/motUtil
chmod 0666 /d/dri/0/debug/motUtil;
chmod 0666 /sys/class/backlight/panel0-backlight/brightness
chmod 0666 /sys/class/drm/card0-DSI-1/panelName
chmod 0666 /sys/class/drm/card0-DSI-1/panelId
#bluetooth sar
write /data/vendor/radio/bluetooth_sar disable
chmod 0644 /data/vendor/radio/bluetooth_sar
chown radio /data/vendor/radio/bluetooth_sar
on early-init
insmod /vendor/lib/modules/leds_aw99703.ko
insmod /vendor/lib/modules/leds_lm3697.ko
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/${ro.vendor.mot.gki.path} zram
on boot
# vibrator hal need to access this sysfs node for AF noise issue
chown system system /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
chmod 0660 /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
# change permission for capsensor
chown system system /sys/class/capsense/reset
chown system system /sys/class/capsense/int_state
chown system system /sys/class/capsense/mode
chown radio system /sys/class/capsense/reg
chown radio system /sys/class/capsense/fw_download_status
# Change ownership for capsensor
chown root input /sys/class/sensors/Moto\ CapSense\ Ch0/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch0/poll_delay
chown root input /sys/class/sensors/Moto\ CapSense\ Ch1/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch1/poll_delay
chown root input /sys/class/sensors/Moto\ CapSense\ Ch2/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch2/poll_delay
chown root input /sys/class/sensors/Moto\ CapSense\ Ch3/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch3/poll_delay
chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/enable
chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/poll_delay
# Change ownership for touch gesture
chown root input /sys/class/sensors/dt-gesture/enable
chown root input /sys/class/sensors/dt-gesture/poll_delay
# touch
chown system system /sys/class/touchscreen/primary/interpolation
chmod 0660 /sys/class/touchscreen/primary/interpolation
chown system system /sys/class/touchscreen/primary/sample
chmod 0660 /sys/class/touchscreen/primary/sample
chown system system /sys/class/touchscreen/primary/edge
chmod 0660 /sys/class/touchscreen/primary/edge
chown system system /sys/class/touchscreen/primary/gesture
chmod 0660 /sys/class/touchscreen/primary/gesture
chmod 0660 /sys/class/capsense/mode
chmod 0666 /dev/gtp_tools
chmod 0662 /sys/class/leds/vibrator/state
chmod 0666 /sys/class/leds/vibrator/activate
chmod 0662 /sys/class/leds/vibrator/duration
write /proc/sys/vm/dirty_background_bytes 26214400
write /proc/sys/vm/dirty_bytes 104857600
chown vendor_pwric vendor_pwric /sys/class/power_supply/cp-standalone/force_chg_auto_enable
on fs
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rbs_fod_mmi.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/goodix_brl_mmi.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2597x_mmi_iio.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger_class.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/sgm4154x_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2589x_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_class.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_rt1711h.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_sgm7220.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rt_pd_manager.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_turbo_charger.ko
on boot && property:ro.vendor.mot.gki.path=5.4-gki
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/nfc_i2c.ko
on late-init
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/${ro.vendor.mot.gki.path} moto_mm moto_swap
on early-boot
# Add for egis fingerprint
chown system system /dev/esfp0
chmod 0664 /dev/esfp0
chown system camera /dev/cci_intf
chmod 0660 /dev/cci_intf
on charger
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2597x_mmi_iio.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger_class.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/sgm4154x_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2589x_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
on post-fs-data && property:ro.boot.mode=charger
setprop persist.vendor.hvdcp_opti.start 1
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_class.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_rt1711h.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_sgm7220.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rt_pd_manager.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_turbo_charger.ko
service capsense_reset /vendor/bin/capsense_reset
class core
user system
group system input
disabled
on property:vendor.bluetooth.sar_state=connect
write /data/vendor/radio/bluetooth_sar connect
on property:vendor.bluetooth.sar_state=disconnect
write /data/vendor/radio/bluetooth_sar disconnect
class core
user system
group system input
disabled
on property:sys.boot_completed=1
start capsense_reset
chown system system /sys/class/touchscreen/primary/stowed
chmod 0660 /sys/class/touchscreen/primary/stowed
on init
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/chipone_tddi_v2_mmi.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/ilitek_v3_mmi.ko
on property:dev.bootcomplete=1 && property:ro.vendor.hw.ram=4GB
write /sys/block/dm-0/queue/read_ahead_kb 128
write /sys/block/dm-1/queue/read_ahead_kb 128
write /sys/block/dm-2/queue/read_ahead_kb 128
write /sys/block/dm-3/queue/read_ahead_kb 128
write /sys/block/dm-4/queue/read_ahead_kb 128
write /sys/block/dm-5/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.dev.root}/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.dev.system_ext}/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.dev.product}/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.dev.vendor}/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.dev.data}/queue/read_ahead_kb 128
write /sys/block/${dev.mnt.rootdisk.data}/queue/read_ahead_kb 128

View file

@ -1,3 +1,3 @@
# Google
ro.opa.device_model_id=motorola-fogos
ro.opa.device_model_id=motorola-rhodep
ro.opa.eligible_device=true

View file

@ -4,9 +4,9 @@
// SPDX-License-Identifier: Apache-2.0
cc_binary {
name: "vendor.lineage.touch@1.0-service.fogos",
vintf_fragments: ["vendor.lineage.touch@1.0-service.fogos.xml"],
init_rc: ["vendor.lineage.touch@1.0-service.fogos.rc"],
name: "vendor.lineage.touch@1.0-service.rhodep",
vintf_fragments: ["vendor.lineage.touch@1.0-service.rhodep.xml"],
init_rc: ["vendor.lineage.touch@1.0-service.rhodep.rc"],
defaults: ["hidl_defaults"],
relative_install_path: "hw",
proprietary: true,

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "lineage.touch@1.0-service.fogos"
#define LOG_TAG "lineage.touch@1.0-service.rhodep"
#include <android-base/logging.h>
#include <hidl/HidlTransportSupport.h>

View file

@ -1,4 +1,4 @@
service vendor.touch-hal-1-0 /vendor/bin/hw/vendor.lineage.touch@1.0-service.fogos
service vendor.touch-hal-1-0 /vendor/bin/hw/vendor.lineage.touch@1.0-service.rhodep
interface vendor.lineage.touch@1.0::IHighTouchPollingRate default
class hal
user system

View file

@ -1,13 +1,8 @@
# Bluetooth
bluetooth.device.default_name=moto g34 5G
bluetooth.device.default_name=moto g82 5G
# Camera
persist.vendor.camera.physical.num=3
# Display
ro.vendor.display.svi=1
vendor.display.svi.config=1
vendor.display.svi.config_path=/vendor/etc/SVIConfig.xml
persist.vendor.camera.physical.num=4
# Motorola
ro.mot.build.customerid=global
@ -16,4 +11,4 @@ ro.mot.build.customerid=global
persist.vendor.nfc.config_secfile_name=libnfc-sec-nci.conf
# Surfaceflinger
ro.sf.lcd_density=280
ro.sf.lcd_density=400