Commit Graph

777 Commits

Author SHA1 Message Date
Arian
c1baef0dd8
sm6150-common: sepolicy: Address power HAL denials
Change-Id: I7327bd54c0d12fde03472695a5598d2a3d22f716
2021-06-21 23:43:39 +02:00
Arian
3d1697d76f
sm6150-common: rootdir: Enable PowerHAL hint processing
Change-Id: I4de6ec81eaf002c094df53ff26ed24db02972dfe
2021-06-21 23:43:39 +02:00
Kyle Lin
0280d9cb17
sm6150-comon: rootdir: Modify the cpuset setting
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ica44125c8ed71a85cfd6bde77c9107bceed7b094
2021-06-21 23:43:39 +02:00
Arian
7d83a2b6a6
sm6150-common: rootdir: Kang scheduler settings from sunfish
Change-Id: I2fd16a6d94f4d306960429e88569b1abf1a4a58e
2021-06-21 23:43:39 +02:00
Arian
50f85ceb1b
sm6150-common: rootdir: Kang governor settings from sunfish
Change-Id: I91b54aee5020f7e43ce0d9a6637aea07a06c1259
2021-06-21 23:43:39 +02:00
Arian
656a445165
sm6150-common: rootdir: Remove CAF input boost
Change-Id: I4fd567962dac1e043139eb01ae756ad00a67c528
2021-06-21 23:43:39 +02:00
celtare21
bc4811101f
sm6150-common: rootdir: Disable core control
Change-Id: If8a0eda3353a164f83409cb4785de93cb2cce971
2021-06-21 23:43:39 +02:00
Andres Oportus
e66b019316
sm6150-common: rootdir: Add SchedTune configuration
Bug: 36367381
Test: Boot and check stune configuration effect on sysfs

Change-Id: I838c31d164684a5d88550c92284b65bb50f2ed56
Signed-off-by: Andres Oportus <andresoportus@google.com>
Signed-off-by: Arian <arian.kulmer@web.de>
2021-06-21 23:43:39 +02:00
Bruno Martins
7e0b1d8983
sm6150-common: Migrate to Xiaomi power HAL AIDL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-06-21 23:43:14 +02:00
Arian
87351664e4
Revert "sm6150-common: rootdir: Override power HAL service and add input group"
This reverts commit 585f60615e881235e35ad042d6fe73c854f26ffd.

Change-Id: Ib97effba6f25e0adb787d903d5c55229a64b4862
2021-06-18 18:37:35 +02:00
Sultanxda
ce8581cf92
sm6150-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.

Change-Id: I01c5e5985ba0f06b84e3e4fd59d8e5cc9659d89a
2021-06-18 18:37:35 +02:00
Wei Wang
fe82d2824b
sm6150-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-06-18 18:37:26 +02:00
LuK1337
907ff515f3
sm6150-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-06-18 18:34:31 +02:00
dianlujitao
548f696fba
sm6150-common: audio: Disable audio ULL mode
* fixes crackling noise while playing some sounds

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2021-06-18 18:34:31 +02:00
Nolen Johnson
7068a36b3f
sm6150-common: Simplify AVB flag logic
* AVB's `--flags 3` arguement builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2021-06-18 18:34:30 +02:00
Rasenkai
724c2c814c
sm6150-common: Welcome Redmi Note 10 Pro
Signed-off-by: Rasenkai <rasenkai99@gmail.com>
Change-Id: Iee3b13051419f446a2d17e08dfc933c13765b7d6
2021-06-18 18:34:30 +02:00
Chia-I Wu
2db5017df7
sm6150-common: overlay: Remove COLOR_MODE_SATURATED
It is replaced by COLOR_MODE_AUTOMATIC.

Bug: 110524699
Test: Settings > Display > Advanced > Colors
Change-Id: I116b50fde456a24c90fd83969cd2fc30f84947ee
2021-06-18 18:34:30 +02:00
Gil
b612c65f72
sm6150-common: overlay: [Display] Enable adaptive color mode
Enable Adaptive color mode setting.

Bug: 143513730
Test: Boot test and measure the adaptive color value

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2021-06-18 18:34:30 +02:00
Christine Franks
3ee56cb4c4
sm6150-common: overlay: Add config value for a11y color mode
Accessibility transforms require a specific color mode that is not
always available for the user to select.

Bug: 130376719
Test: atest com.google.android.config.pts
Change-Id: Ia3211d5aa6e117c5361dea44d944064b23260a81
2021-06-18 18:34:30 +02:00
Adithya R
6139e3481e
Revert "davinci: overlay: Hide sRGB toggle in developer options"
This reverts commit e793668fec.

Change-Id: Ia6a2bd810b0c98efca3fecffe174ba53067013bd
2021-06-18 18:34:30 +02:00
Arian
83fd7346ac
sm6150-common: overlay: Decommonize brightness overlays
Change-Id: I70b781a8d9a30555848dbf2783c69aeb4b9e1425
2021-06-18 18:34:30 +02:00
Chirayu Desai
a9988f304c
sm6150-common: rro_overlays: Move CarrierConfig to RRO
Change-Id: Ia57acd244608848f70fdcc30d5694c919db60671
2021-06-18 18:34:30 +02:00
Arian
ce60eb66d0
Revert "sm6150-common: Exclude CarrierConfig overlays from RRO"
This reverts commit 959ceb5f99.

Change-Id: I0b82719f123218d0f63f621dfe588421217975ef
2021-06-18 18:34:30 +02:00
Arian
da8bb7dbb8
sm6150-common: Import missing libops.so
This is required with blobs and firmware from global stable Android 11 builds.

Fixes this error:

05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: Error at trusted_app_decrypt_cenc : 2563
05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: TA Result : 45 OEMCryptoResult : 38
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: Error stack trace[5] for TA version 1:71
05-31 00:05:23.601   687   687 E QCOM-OEMCrypto: 	 drm_get_ops_obj : 1174
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 drm_enforce_hdcp_level : 1204
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 validate_key_control_for_decrypt : 1216
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 process_subsample : 1403
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 i_widevine_session_decrypt_cenc : 1739
05-31 00:05:23.602   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at decrypt_data : 1874
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc48 : 2322
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc105 : 3119
05-31 00:05:23.602   687   687 E WVCdm   : [crypto_session.cpp(1541):Decrypt] OEMCrypto_DecryptCENC failed: status = 38
05-31 00:05:23.602   687   687 E WVCdm   : Decrypt error in session sid8 during a sample with protected data: 179

Change-Id: Icb7467e1e4b4e9260c34ac7a0bda6f48e5c6f34a
2021-06-18 18:34:30 +02:00
Arian
8ab4fcd576
sm6150-common: Include c2 manifest from media HAL
Change-Id: I9ea0322af97284ef4b995df185d0c827285c7194
2021-06-18 18:34:30 +02:00
George Gao
111ebf4c14
sm6150-common: media: Use omx raw decoder on 24bit pcm playback
Use omx pcm decoder to decode 24 bit pcm files

Change-Id: I28938afcb1d18bc85a0e2c77786bf15aff91a196
2021-06-18 18:34:30 +02:00
Arian
eb012499c5
sm6150-common: media: Apply xiaomi's media codecs tuning
Change-Id: I85435c5a63a85330ce6a7b365d9fdf90446e7bee
2021-06-18 18:34:30 +02:00
Arian
c0604d8e7d
sm6150-common: media: Import configs from LA.UM.9.1.r1-09600-SMxxx0.0
Change-Id: I8dedddcf6a27b93c67623ab26585e60287df26bd
2021-06-18 18:34:30 +02:00
Arian
37495bd2ac
sm6150-common: Use sdmmagpie_v1 media configs
* These are being used on stock

Change-Id: Iff4be00bb6d7559bea41986ccc72049015ac1bdf
2021-06-18 18:34:30 +02:00
Arian
690cccbaba
sm6150-common: Decommonize lights HAL and overlays
* toco and sweet don't have a notification light and since backlight
  control has been moved to hwc this HAL is not needed for these targets.

* Keep the HAL itself in common tree so that devices which need are able
  to build the lights HAL which is common for all targets with a
  notification light.

Change-Id: Ia4c3c96e49b5ce58f4f55b92a65321fb258f8975
2021-06-18 18:34:30 +02:00
Arian
d9a7822a99
sm6150-common: Update blobs from sweet V12.5.1.0.RKFMIXM
Change-Id: I1a2829db5a0e1b5640994ac36e1174b67a065628
2021-06-18 18:34:30 +02:00
Arian
31a323b5c6
sm6150-common: wifi: Update from sweet 12.5.1.0
Change-Id: Ida68a9fc01791a2c3caa1b3c07d83001dad2dbcc
2021-06-18 18:34:30 +02:00
Arian
2f7c22b799
sm6150-common: Enable dynamic SAR
* Enabled as per sweet 12.5.1.0

Change-Id: I6c1dd7b92f1055f9c54a69eb0ce3a7675bac0bd0
2021-06-18 18:34:30 +02:00
LuK1337
b29f19ccdb
sm6150-common: Drop unnecessary fqnames from manifests
* These are only needed in case we want to
  advertise interfaces with different version
  than the HAL definition itself (see DRM).

Change-Id: I3a5c367730ef79ed6260b2d7142bb6ca9eaa4a92
2021-06-18 18:34:05 +02:00
Adithya R
28ff150926
sm6150-common: Get rid of megvii shim
This reverts commit ab51fafbdd.

Change-Id: I9c82f84ad4bd9edc0ee4a8c1742b4a3aaf4bd0a3
2021-06-18 18:34:00 +02:00
Adithya R
605de37605
sm6150-common: Decommonize cnss-daemon
* surya needs stock cnss-daemon to load j20 custom
   bdwlan firmware for 5ghz wifi.

Change-Id: I34a7165f20740858c92355e92e5db52291fc25aa
2021-06-18 18:34:00 +02:00
Arian
c8c613c3d7
sm6150-common: Exclude additional haptics devices from input subsystem
Change-Id: I4465c5afd2dcfa085367e4e9fad9f0e0fba67d1a
2021-06-18 18:34:00 +02:00
Fenglin Wu
e6e3bc7b76
sm6150-common: Add config to exclude haptics devices from input subsystem
Haptics devices which registers as input FF devices are not supposed to
be detected by input subsystem. Add excluded-input-devices.xml file for
input subsystem to exclude them.

Change-Id: I52dc6e502b29e2813299d073195a0991bb2cf692
2021-06-18 18:33:55 +02:00
Arian
b049682209
Revert "davinci: Increase media volume from 15 to 25 steps"
This reverts commit a5b5e3ac21.

Change-Id: Id7e5645f59dba82352c38d3691dcfd924960ccf1
2021-06-18 18:33:51 +02:00
Adithya R
e4ea795457
sm6150-common: Decommonize audio fluencetype prop
* surya needs fluence disabled to fix mic in certain apps

Change-Id: I4fd647330759ca5f97c85176f614ae75dda14aca
2021-06-18 18:33:47 +02:00
Rasenkai
fb7663b4aa
sm6150-common: Add missing librice for soundtrigger
* This was removed during 90d2b593847cae4bc46ff33e8be8856a8a2a0735
  but was added back with Redmi Note 10 Pro blobs.

Change-Id: Id67d3d80454744c937e7fc0ca261e73979f0a160
2021-06-18 18:33:41 +02:00
Arian
bc384c8a64
sm6150-common: Add libadpcmdec for sound trigger
Change-Id: I99cff257c7a6068336870d5a6defb8a77f40da9f
2021-06-18 18:32:56 +02:00
Arian
783e9dfe36
sm6150-common: Update blobs from sweet V12.0.14.0
Change-Id: Ic06de82e723829339a4a38e0cf71e6f0740477eb
2021-06-18 18:32:32 +02:00
Arian
182b1dc663
sm6150-common: Remove wfdhdcphal service
Change-Id: I5237de894613a3565df16046083db4228a3713b4
2021-06-18 18:32:32 +02:00
Arian
5471dad5f8
sm6150-common: Remove Super Sensor/Photo ADSP modules
Change-Id: I44d39fa16f1e0416d3efca28ad8f743afea9cb53
2021-06-18 18:32:31 +02:00
Arian
a04fb57165
sm6150-common: Re-add shoebox and audio sphere effects
This partially reverts c77b652733 and fea051b9c7.

Change-Id: Id8519fc86e914ed2f5e9af14279fceaa6f97c35b
2021-06-18 18:32:31 +02:00
Arian
72b92051ad
sm6150-common: Decommonize audio libraries
Change-Id: Iccdc4ff0efd15d35b18f299f7dcc713b0b862476
2021-06-18 18:32:31 +02:00
Arian
237862f024
sm6150-common: Move btaudio_offload_if.so to audio section
* This is just a proprietary dependency of liba2dpoffload which
  is an audio extension.

Change-Id: Iacbbc2197f22ba1c61e4e749f100b08bb921edd9
2021-06-18 18:32:31 +02:00
Arian
7cd101a1d1
sm6150-common: Decommonize audio HAL
Change-Id: Icb5c9aae4f0a788bd39dcbc27a1a146c12cd3de2
2021-06-18 18:32:31 +02:00
Arian
484f6e5bf2
sm6150-common: Decommonize tfa98xx amplifier
Change-Id: I2deb6d5e7c12ca077e64eb87f64567163c84a250
2021-06-18 18:32:31 +02:00