Compare commits

...

9 Commits

Author SHA1 Message Date
yidongh
cd4eecbab1 sweet: audio: Correct wrong settings in mixer path
Fix the BT SampleRate from '16000' to 'KHZ_16'
in "mmap-playback bt-sco-wb".

Fix the path name from "mmap-buffer-playback hdmi"
to "mmap-playback hdmi".

CRs-Fixed: 2278484
Change-Id: I44ae1d02cb214555967e3f1f42b0cd022e5c4bfe
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Shalini Manjunatha
0d3ccba410 sweet: audio: Allocate dedicated pcm node for in call recording
Allocate dedicated pcm node for in call recording, this can
avoid conflicting with generic audio recording for concurrent
recording scenarios

Change-Id: If81aa994409161c526fbbcb95dbcb0397fa9e36b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
afterallafk
95dbf7452c sweet: Increase speaker volume
Change-Id: I97d6ddf3e25fd201cf946e7772ef8e6da11620e1
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Pranav Vashi
873cab60ca sweet: audio: Rectify dmic stereo device name
Change-Id: I10fb1c7119a5d31aa7d4d10440e5bc283e20bbd7
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Pranav Vashi
d344b5377d sweet: Define AAPT config
Change-Id: I53efa96939b0fa0cbba065ed79d964cac9c1ad07
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
kamleshhv
2cab94606a sweet: Add min and peak refresh rate option
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
raghavt20
bd3b07d0b1 sweet: Set target display density to 410
Change-Id: I11cd2699e105148a8fd381ca8bc91840a53db66b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
basamaryan
c3b7f04f18 sweet: overlay-lineage: Disable Pocket Lock
Change-Id: I28ecec5521e4301ed952d95bc8a8075395cc9393
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
5be898bfd2 sweet: Initialize Evolution-X 9.x
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:20 +08:00
9 changed files with 85 additions and 25 deletions

View File

@ -18,6 +18,27 @@ TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
# Audio # Audio
TARGET_PROVIDES_AUDIO_EXTNS := true TARGET_PROVIDES_AUDIO_EXTNS := true
# Broken Rules
BUILD_BROKEN_CLANG_PROPERTY := true
BUILD_BROKEN_CLANG_ASFLAGS := true
BUILD_BROKEN_CLANG_CFLAGS := true
BUILD_BROKEN_DEPFILE := true
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_DUP_SYSPROP := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
BUILD_BROKEN_ENFORCE_SYSPROP_OWNER := true
BUILD_BROKEN_INPUT_DIR_MODULES := true
BUILD_BROKEN_MISSING_REQUIRED_MODULES := true
BUILD_BROKEN_OUTSIDE_INCLUDE_DIRS := true
BUILD_BROKEN_PREBUILT_ELF_FILES := true
#BUILD_BROKEN_TREBLE_SYSPROP_NEVERALLOW := true
BUILD_BROKEN_USES_NETWORK := true
BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true
BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true
BUILD_BROKEN_GENRULE_SANDBOXING := true
BUILD_BROKEN_DONT_CHECK_SYSTEMSDK := true
# HIDL # HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
@ -38,10 +59,11 @@ TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
# Screen density # Screen density
TARGET_SCREEN_DENSITY := 440 TARGET_SCREEN_DENSITY := 410
# Vendor security patch level # Security patch level
VENDOR_SECURITY_PATCH := 2023-11-01 BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Inherit from proprietary files # Inherit from proprietary files
include vendor/xiaomi/sweet/BoardConfigVendor.mk include vendor/xiaomi/sweet/BoardConfigVendor.mk

View File

@ -65,6 +65,10 @@
<usecase name="USECASE_AUDIO_RECORD_VOIP" type="in" id="16" /> <usecase name="USECASE_AUDIO_RECORD_VOIP" type="in" id="16" />
<usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="12" /> <usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="12" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="27" /> <usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="27" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK2" type="out" id="27" />
<usecase name="USECASE_INCALL_REC_UPLINK" type="in" id="27" />
<usecase name="USECASE_INCALL_REC_DOWNLINK" type="in" id="27" />
<usecase name="USECASE_INCALL_REC_UPLINK_AND_DOWNLINK" type="in" id="27" />
</pcm_ids> </pcm_ids>
<config_params> <config_params>
<!-- In the below value string, the value indicates default mono --> <!-- In the below value string, the value indicates default mono -->
@ -223,8 +227,8 @@
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE" interface="TX_CDC_DMA_TX_3"/> <device name="SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_AANC_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/> <device name="SND_DEVICE_IN_AANC_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/> <device name="SND_DEVICE_IN_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/> <device name="SND_DEVICE_IN_HANDSET_DMIC_STEREO" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_SPEAKER_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/> <device name="SND_DEVICE_IN_SPEAKER_DMIC_STEREO" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" interface="WSA_CDC_DMA_TX_0"/> <device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" interface="WSA_CDC_DMA_TX_0"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" interface="WSA_CDC_DMA_TX_0"/> <device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" interface="WSA_CDC_DMA_TX_0"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" interface="WSA_CDC_DMA_TX_0"/> <device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" interface="WSA_CDC_DMA_TX_0"/>

View File

@ -234,8 +234,8 @@
<!-- RT Proxy Cal end --> <!-- RT Proxy Cal end -->
<!-- Incall Recording --> <!-- Incall Recording -->
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="0" /> <ctl name="MultiMedia9 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia1 Mixer VOC_REC_DL" value="0" /> <ctl name="MultiMedia9 Mixer VOC_REC_DL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_UL" value="0" /> <ctl name="MultiMedia8 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_DL" value="0" /> <ctl name="MultiMedia8 Mixer VOC_REC_DL" value="0" />
<!-- Incall Recording End --> <!-- Incall Recording End -->
@ -366,9 +366,9 @@
<!-- Volume controls --> <!-- Volume controls -->
<ctl name="WSA_RX0 Digital Volume" value="84" /> <ctl name="WSA_RX0 Digital Volume" value="84" />
<ctl name="WSA_RX1 Digital Volume" value="84" /> <ctl name="WSA_RX1 Digital Volume" value="84" />
<ctl name="RX_RX0 Digital Volume" value="84" /> <ctl name="RX_RX0 Digital Volume" value="87" />
<ctl name="RX_RX1 Digital Volume" value="84" /> <ctl name="RX_RX1 Digital Volume" value="87" />
<ctl name="RX_RX2 Digital Volume" value="84" /> <ctl name="RX_RX2 Digital Volume" value="87" />
<ctl name="HPHL Volume" value="20" /> <ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" /> <ctl name="HPHR Volume" value="20" />
<ctl name="EAR SPKR PA Gain" value="G_DEFAULT" /> <ctl name="EAR SPKR PA Gain" value="G_DEFAULT" />
@ -2058,7 +2058,7 @@
</path> </path>
<path name="incall-rec-uplink"> <path name="incall-rec-uplink">
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="1" /> <ctl name="MultiMedia9 Mixer VOC_REC_UL" value="1" />
</path> </path>
<path name="incall-rec-uplink bt-sco"> <path name="incall-rec-uplink bt-sco">
@ -2102,7 +2102,7 @@
</path> </path>
<path name="incall-rec-downlink"> <path name="incall-rec-downlink">
<ctl name="MultiMedia1 Mixer VOC_REC_DL" value="1" /> <ctl name="MultiMedia9 Mixer VOC_REC_DL" value="1" />
</path> </path>
<path name="incall-rec-downlink bt-sco"> <path name="incall-rec-downlink bt-sco">
@ -2640,7 +2640,7 @@
</path> </path>
<path name="mmap-playback bt-sco-wb"> <path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" /> <ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-playback bt-sco" /> <path name="mmap-playback bt-sco" />
</path> </path>
@ -2660,7 +2660,7 @@
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" /> <ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path> </path>
<path name="mmap-buffer-playback hdmi"> <path name="mmap-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" /> <ctl name="HDMI Mixer MultiMedia16" value="1" />
</path> </path>

View File

@ -10,6 +10,10 @@ $(call inherit-product, device/xiaomi/sm6150-common/sm6150.mk)
# Call the MiuiCamera setup # Call the MiuiCamera setup
$(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk) $(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk)
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# API level, the device has been commercially launched on # API level, the device has been commercially launched on
PRODUCT_SHIPPING_API_LEVEL := 30 PRODUCT_SHIPPING_API_LEVEL := 30

View File

@ -1,6 +0,0 @@
[
{
"repository": "android_device_xiaomi_sm6150-common",
"target_path": "device/xiaomi/sm6150-common"
}
]

View File

@ -8,20 +8,34 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from sweet device # Inherit from sweet device.
$(call inherit-product, device/xiaomi/sweet/device.mk) $(call inherit-product, device/xiaomi/sweet/device.mk)
# Inherit some common Lineage stuff. # Inherit some common LineageOS stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk) $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Device identifier.
PRODUCT_NAME := lineage_sweet PRODUCT_NAME := lineage_sweet
PRODUCT_DEVICE := sweet PRODUCT_DEVICE := sweet
PRODUCT_BRAND := Xiaomi PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Redmi Note 10 Pro PRODUCT_MODEL := Redmi Note 10 Pro
PRODUCT_MANUFACTURER := Xiaomi PRODUCT_MANUFACTURER := Xiaomi
# GMS
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
WITH_GMS := true
# Targets
TARGET_SUPPORTS_64_BIT_APPS := true
TARGET_HAS_UDFPS := false
BUILD_BCR := true
# Fingerprint
BUILD_FINGERPRINT := Redmi/sweet_global/sweet:13/TKQ1.221013.002/V14.0.9.0.TKFMIXM:user/release-keys BUILD_FINGERPRINT := Redmi/sweet_global/sweet:13/TKQ1.221013.002/V14.0.9.0.TKFMIXM:user/release-keys
BUILD_DESCRIPTION := sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.fingerprint=$(BUILD_FINGERPRINT)
PRODUCT_BUILD_PROP_OVERRIDES += \ PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys" PRIVATE_BUILD_DESC="$(BUILD_DESCRIPTION)"

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Pocket Lock -->
<bool name="config_pocketModeSupported">false</bool>
</resources>

View File

@ -18,7 +18,10 @@
--> -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether to show Smooth Display feature in Settings Options --> <!-- Whether to show peak refresh rate in display settings -->
<bool name="config_show_smooth_display">true</bool> <bool name="config_show_peak_refresh_rate_switch">true</bool>
<!-- Whether to show min refresh rate in display settings -->
<bool name="config_show_min_refresh_rate_switch">true</bool>
</resources> </resources>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2024 The Evolution X Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Android version screen, build maintainer -->
<string name="build_maintainer_summary" translatable="false">Johan Liebert</string>
<string name="build_maintainer_donate_url" translatable="false">https://t.me/honokascape</string>
</resources>