Commit Graph

974 Commits

Author SHA1 Message Date
Bruno Martins
53b6eec2be sm6150-common: Drop component overrides
This is no longer needed as of Android 13.

Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2023-01-27 01:32:59 +00:00
Alexander Koskovich
8f17177db9 sm6150-common: Move Bluetooth power overlays to sysprops
* These were moved to sysprops in Android 13.

   976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2023-01-27 01:32:59 +00:00
Bruno Martins
6af6f875ca sm6150-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2023-01-27 01:32:59 +00:00
Alexander Koskovich
2773427200 sm6150-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-01-27 01:32:42 +00:00
Sebastiano Barezzi
442e1a5049 sm6150-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2023-01-17 07:02:03 +00:00
Georg Veichtlbauer
386a6ca5ff sm6150-common: Remove AUDIO_FEATURE_ENABLED_PROXY_DEVICE
No-op, configurable during runtime

Change-Id: Ic54209df613570b15fee29c5b4c4053d38028b9b
2023-01-17 07:02:03 +00:00
Bruno Martins
a78d6fb707 sm6150-common: Drop custom APM flag along with no-op audio flags
Custom audio policy manager is hard disabled by CAF
for 2 years now. Remove as well the audio feature flags
that were used to configure it.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2023-01-17 07:02:03 +00:00
Noonlord
b670e7124d sm6150-common: rootdir: Setup file permissions for fpc
* These are used by courbet/surya/sweet

Change-Id: I605f305ab30fdbc3dd0a3afc6375cd039e5e8117
2023-01-17 07:01:07 +00:00
basamaryan
88e2493867 fixup! sm6150-common: Welcome Redmi Note 10 Pro
Change-Id: I84486f287783041157533d8e35e0d585536bd573
2023-01-17 06:10:54 +00:00
Noonlord
ce1fd1dd7e sm6150-common: Welcome Mi 11 Lite 4G - courbet!
Change-Id: I3f5e0bee2e1e56dec04f97ae043a0de99897884b
2023-01-17 06:10:54 +00:00
Bruno Martins
713a5a4806 sm6150-common: parts: Fix compilation for QPR1 merge
Change-Id: Ifa602ed1ae0734dbda40663770f2e54075bfa208
2022-12-08 22:23:32 +01:00
Arian
e194684060 sm6150-common: Move to legacy-um qcom sepolicy
Change-Id: I9fa72d7c2313c663490c506780ff4c66ad8037a5
2022-11-15 11:20:37 +01:00
LuK1337
9ef008f3d7 sm6150-common: overlay: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
2022-11-15 11:20:37 +01:00
LuK1337
29e221cac6 sm6150-common: Migrate vendor.camera.aux.packagelist to sdk overlay
Change-Id: Iee884cc98b5fada492b27e8085de98ae08406cf4
2022-11-15 11:20:37 +01:00
Arian
5104523fa7 sm6150-common: udfps: Set fod status based on vendor acquired and cancel
Change-Id: I3477fb7a921555564121e10fc0d710e122dd9d73
2022-11-15 11:20:37 +01:00
Bruno Martins
bb8d9f4905 sm6150-common: sepolicy: Label UDFPS state node
Change-Id: I7a4ca9a3e98e0af90be5aedc88fa1eaa344abb76
2022-11-15 11:20:32 +01:00
Michael Bestas
4e8f1f1f87 sm6150-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2022-11-14 22:23:43 +01:00
Nolen Johnson
ac80e30dea Revert "sm6150-common: Use LLVM binutils and LLVM integrated assembler"
This reverts commit 816cf6a1cd.

Reason: This is now default globally.
Change-Id: I4cd4c8af67b8463950045d3887752985b3decc61
2022-11-14 22:23:43 +01:00
Arian
543d7ac0ef Revert "sm6150-common: Decommonize cnss-daemon"
Since updating QMI blobs from sweet Android 12 the cnss-daemon
from Android 11 (on devices with no stock Android 12) fails to
get the correct MAC address. Commonize cnss-daemon to fix the
mismatch. Xiaomis cnss-daemon loads device specific custom
bdwlan firmware and fortunately the one from sweet seems to
support all in-house xiaomi sm6150 devices. However it does
not contain the firmware names for longcheer devices (surya).
But since these devices also need an updated cnss-daemon, they
are suggested to apply a patch like this: [1] to mount their
firmware with the default name (bdwlan.bin) in order to not
loose the tuning with sweet cnss-daemon.

This commit also makes cnss-daemon a module, which it wasn't
before the removal.

[1]: 3595347298

This reverts commit 605de37605.

Change-Id: I17d7aa0cf141fc153a12ff3334178ea3e7091873
2022-11-14 22:23:40 +01:00
Arian
3f2881cb07 sm6150-common: Move to common libpiex_shim
Change-Id: I5266fe4b7cfd108c19b493bc2941097777b29f0a
2022-11-14 22:23:25 +01:00
Arian
2a63fa8cff sm6150-common: Improve camera shim
Change-Id: Id11965102d7d5dce50f989c99810cda6a43aa1ec
2022-11-14 22:23:05 +01:00
daniml3
c4f19714f0 sm6150-common: Add GetPreviewImageData shim for camera
Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
2022-08-19 17:28:21 +02:00
Arian
816cf6a1cd sm6150-common: Use LLVM binutils and LLVM integrated assembler
Change-Id: I408c0e1b272af25e8e606e586a9e1d6e7082afba
2022-08-19 17:28:16 +02:00
Jiakai Zhang
c027a3e451 sm6150-common: Preopt SystemUI for AOSP builds.
Bug: 232860596
Test: See no dex2oat invocation on the first boot.
Change-Id: Icc38efb4b702b518caa22a3abfc7c04d6ba1ac2a
2022-08-19 17:28:00 +02:00
Jiakai Zhang
a90cd875ef sm6150-common: Add a system property for System UI compiler filter.
Bug: 227310505
Test: m
Change-Id: I30863fe677a95844f0cf46da98c103c0132c24d3
2022-08-19 17:26:25 +02:00
Alice Kuo
37edd93211 sm6150-common: Disable LE audio related profiles for sunfish
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2022-08-19 17:21:36 +02:00
Sal Savage
09b9b46f05 sm6150-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2022-08-18 14:32:31 +02:00
Sal Savage
c7bf0ce67e sm6150-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2022-08-18 14:32:31 +02:00
Sal Savage
7e7d7f7d30 sm6150-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2022-08-18 14:32:31 +02:00
Sal Savage
77256f499d sm6150-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2022-08-18 14:32:31 +02:00
Arian
a2af0b073c sm6150-common: Drop audio.a2dp.default
Change-Id: I7b72116797a2690f6b3c4f13b4edacf57fe937e5
2022-08-18 14:32:31 +02:00
Arian
684970d72a sm6150-common: gps: Fix usage of or operator on booleans
Change-Id: I1e3f9caef674d8a2cfc99092033d96bc4cdd8963
2022-08-18 14:31:55 +02:00
Arian
b4118d4fa2 Revert "sm6150-common: parts: Add support for zero brightness doze mode"
This reverts commit 8720bb5de8.

Change-Id: Icd29a7388a26f76fb5197805e715a464fceed70e
2022-07-13 21:08:38 +02:00
Arian
28b9dec732 sm6150-common: sepolicy: Label new telephony properties
Change-Id: Iad765076ceba263e4933374178eec670ffc81959
2022-07-13 17:54:15 +02:00
Arian
1bc49c2aff sm6150-common: Decommonize vendor security patch level
This common tree is updated further than the EOL state of
some devices now. For EOL devices we can not update the
device specific proprietary vendor blobs. Since the vendor
security patch level should be set according to the least
updated components in vendor this differs betweeen devices,
hence decommonize it so that devices with up-to-date stock
can update it.

Change-Id: I320b2f93f7b78d01393259662450f328bbef5484
2022-07-13 17:54:15 +02:00
Arian
e0b57d8fa6 sm6150-common: Update blobs from sweet V13.0.8.0.SKFMIXM
Change-Id: Icd49e5186f0385d412d0bdc59e0956a09298f4bd
2022-07-13 17:54:03 +02:00
Arian
c59c8ee2f1 sm6150-common: wifi: Update from sweet V13.0.8.0.SKFMIXM
Change-Id: I0fb87ac8d9b8cfae99f1b1c1fce8ac13810af8fc
2022-06-28 00:41:08 +02:00
Arian
54a9eac768 sm6150-common: gps: Update to LA.UM.9.1.r1-11200-SMxxx0.0
Change-Id: I6ef1b531da58204047a0e269131bf3876eb788b4
2022-06-28 00:41:07 +02:00
Arian
8165447971 sm6150-common: gps: Update configs from sweet V13.0.8.0.SKFMIXM
Change-Id: I44bcd03b00d9b829ab8a86ef46ee1bcd580f7511
2022-06-28 00:41:07 +02:00
Mike Cailean
4242a98d17 sm6150-common: gps: Comment out ANTENNA_INFO_VECTOR_SIZE by default
The values provided in gnss_antenna_info.conf are
for illustration purpose only and should not be
used in production

Change-Id: I29afd24893e95b918126c4dc7b94e064b39920b7
CRs-fixed: 2967039
2022-06-28 00:41:07 +02:00
Hoss Zhou
553228f127 sm6150-common: gps: Add nmea tag block grouping feature
Tag Block grouping is used to report more than 12 SVs in GSA.
It is controlled by item NMEA_TAG_BLOCK_GROUPING_ENABLED in
gps.conf and only applicable to GSA.

Change-Id: Id9b89af96419c179554ce9f5c8d702f19153ed32
CRs-Fixed: 2813599
2022-06-28 00:41:07 +02:00
Vinoth Jayaram
338269c5d4 sm6150-common: display: Enable support for protected content GPU composition
Enable protected contents GPU composition for all targets.

Change-Id: I7db5c3bee340dea313c8ee16ae13b8114fd2390e
2022-06-28 00:41:07 +02:00
Rajavenu Kyatham
745358489d sm6150-common: Disable partial FB excl rect
Change-Id: Iface126e34d30e89cafc3a5955270769244398ec
CRs-Fixed: 2598494
2022-06-28 00:41:07 +02:00
Shawn Shin
3ade89d769 sm6150-common: qcc-tr: define new AID for qcc-trd
Change-Id: I47c9b034600c9b31a17de2808030af38f69e10e0
2022-06-28 00:41:07 +02:00
Anver sadhique
30b6244575 sm6150-common: audio: Set valid and supported channel mask for earpiece
For earpiece to be properly enumerated as a output device,
set valid and supported out_ channel mask.

Change-Id: Ic83b009956ff43567b3acbb186d0069b16e91e83
2022-06-28 00:41:07 +02:00
Anver sadhique
ee19f52144 sm6150-common: audio: Fix copyright
Reverting LF copyright year back to original.

Change-Id: Ia8b69b705f17727d9ae6ba29c6154b5fef36a292
2022-06-28 00:41:07 +02:00
Anver sadhique
c58c4b845b sm6150-common: audio: Remove dynamic attributes from APS config
Remove dynamic attributes from APS config since it
is not supported.

Change-Id: I48e232b831cfb0aa8ba9ab875aa92119140008ef
2022-06-28 00:41:07 +02:00
Lakshman Chaluvaraju
7426fb1713 sm6150-common: audio: Add Stereo config channel support to usb surround sound
Adding stereo config channel support to usb surround sound proflle
to address CTS-V failure issue seen due to mismatch in channel mask
support for record usecase

Change-Id: Ib50511d2fa6df24b3aa4764553cd48726129b2c2
2022-06-28 00:41:07 +02:00
Weiyin Jiang
e365753bab sm6150-common: audio: Add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2022-06-28 00:41:07 +02:00
Arian
b09191563e sm6150-common: media: Drop media_codecs_c2.xml
Change-Id: Ic4f7e078538d6c362d07669d77ed0083528e25f1
2022-06-28 00:41:07 +02:00