Commit Graph

331 Commits

Author SHA1 Message Date
Kyle Lin
59f9d88074 sm6250-common: enable cortex-A76
Bug:142345573
Test: build , boot to home, do the benchmarks
Change-Id: I73c5042712da29d5cb63586bc4d145a770df074d
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
cd2c0611fe sm6250-common: enable fluence mode
* this fixes incall mic for oss audio hal
2020-12-05 00:36:17 +02:00
Shalini Manjunatha
39f2077781 sm6250-common: configs: Remove TelePhony Rx from primary input
Remove Telephony Rx to make in call record use case through
different front end pcm device when sva enabled to solve concurrency
capture issue

Change-Id: I8a036423da689a4de9abe767a0b6a595b4e068f1
2020-12-05 00:36:17 +02:00
LuK1337
6f56a15ead sm6250-common: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2020-12-05 00:36:17 +02:00
Samyak Jain
241bbfee1a sm6250-common: audio: Remove 2 instance support for "primary input"
As FM app no longer uses app loopback,
2 instances of "primary input" is not needed

Change-Id: I7d5e941e916bdf221798ca89360e4751d4af322b
2020-12-05 00:36:17 +02:00
Mingshu Pang
84b08566ad sm6250-common: audio: Add fast input profile for the record concurrency
If two recording apps both select the primary input with
fast flag, second app will fail to start because the hal
doesn't support two inputs with the same use case if input
can't be reused since of the limit of primary input's max
open count.

Add the dedicated profile for “low-latency-record” to make
the first input can be reused if possible.

CRs-Fixed: 2550228
Change-Id: I233bd3eaf614b195df0a41402747f496d3a56b44
2020-12-05 00:36:17 +02:00
Danny Lin
08fb70c84d sm6250-common: Use EXPENSIVE_RENDERING power hint for blurs
We need to boost the GPU for smooth high-radius blurs as blurring is an
expensive rendering job.

Change-Id: Ia3968313601d2b04ce50c01ee61dc9944ee26187
2020-12-05 00:36:17 +02:00
Danny Lin
b0dea6e2e7 sm6250-common: Enable compositor background blurring
This allows us to create a "glass blur" look throughout the system for
improved visuals.

Change-Id: I77bb13a5711b05b43acf25e12abd9a2f5cd2502d
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
79b05ee9e0 [BLOBS] sm6250-common: override liba2dpoffload as well
* stock audio hal doesn't like the one we compiled
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
03808516a1 sm6250-common: add system_ext partition flags 2020-12-05 00:36:17 +02:00
Mohamed Moussa
ba201b9ba9 sm6250-common: Update fstab with system_ext partition.
Change-Id: I3c80b5010a68c57b7b12374600e19bce6396ef9d
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
d332175021 sm6250-common: remove unused audio configs 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
c14c62bd01 [BLOBS] sm6250-common: override audio hal for now
* until I find the way to fix incall mic
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
fdc0abe86e sm6250-common: re-add audiohalext blobs
* so we can re-enable flag
2020-12-05 00:36:17 +02:00
Manisha Agarwal
82624895bf sm6250-common: rename property violating sepolicy
rename property to be inline with sepolicy rules

Change-Id: I83cd5d3cd6f5f21bf2701151624bd0f255a1a823
2020-12-05 00:36:17 +02:00
Fawad Shaukat
b66f59fc82 sm6250-common: Enable MPEG-H decoder property
-Enable on Kona
-Enable on Lito
-Enable on Lahaina
-Enable on Bengal
-Enable on Atoll

Change-Id: Icc921e52ecef64c4fc99f7f127059b18436aa876
2020-12-05 00:36:17 +02:00
Zhou Song
cb2d28241f sm6250-common: audio: add support of BT SCO mic for record_24 profile
Usecase audio-record and audio-record-compress2 can both be
mapped to record_24 profile, if both the usecases are active,
when BT SCO mic is connected, due to no more available usecases
in audio hal, check inputs for device can fail for other input
profiles which support BT SCO mic.
This makes BT SCO mic connection to be rejected and phone call
can't route to BT.
Add the support for record_24 profile, so existing input handle
can be returned when checking inputs for BT SCO mic.

Change-Id: I63046ec87e35774474e08762fb6aa6275318b2c8
2020-12-05 00:36:17 +02:00
Aditya Bavanari
11fb3c5a45 sm6250-common: audio: Add backend config for handset TMU operator device
Backend config is missing for voice handset when TMU operator
is used due to which hw params is not set properly.
Add backend config for handset tmu operator sound device
in kona, lito and atoll variants.

[wight554: update interface to match SND_DEVICE_OUT_VOICE_HANDSET]

Change-Id: I199fa0bd33d682a129a4e77f25d32f615b175310
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2020-12-05 00:36:17 +02:00
Preetam Singh Ranawat
92b6d081b0 sm6250-common: audio: Add DEFAULT adm_config profile
This DEFAULT adm_config profile will be used whenever a session is
in non-LPI with FFECNS disabled.
AFE will connect to ADM but will have none_topology.

Change-Id: I636667c376aa4309b67897e5dd162c4d318863f8
2020-12-05 00:36:17 +02:00
Sujin Panicker
33aa1748e1 sm6250-common: audio: Add mixer controls for call screen support
Add mixer controls for proxy ports.
Enable call screen mode support in audio_policy_config.

Change-Id: I88eb274e8b88d089da930a786f9ea8085955ae3b
2020-12-05 00:36:17 +02:00
Mingshu Pang
d0af0fb586 sm6250-common: audio: Add built-in/Back mic to primary input sources
Built-in mic and Built-In Back Mic aren't in supported devices
list of primary input, so record_24 is selected if without
connecting any headset, if there is more than 2 capture
concurrency, it will fail to open input for primary input when
connecting headset in AHAL.

Add built-in mic to primary input sources to reuse input to avoid
to open extra input stream in AHAL.

CRs-fixed: 2643298
Change-Id: I1e062520f7fb03ae97c88341dd58f77177dbe030
2020-12-05 00:36:17 +02:00
Samyak Jain
be8bff9f60 sm6250-common: audio: Add sound trigger implementer version
Add sound trigger implementer version. Set the version value to 0x0101.
This is to add SVA4.0 support from STHAL so that the client app can
make use of this version info to get to know of platform SVA4.0 support

Change-Id: I85945ba49f31e2a7b9295e77a629737ddcb8d7d5
2020-12-05 00:36:17 +02:00
Kunlei Zhang
c40a268ee8 sm6250-common: audio: set correct backend name for dual mic device
Set correct backend name for input device during stereo recording.

Change-Id: Ic77db5c446264fd322fe890a13b536f0f192df53
2020-12-05 00:36:17 +02:00
Zhou Song
c00edc31c7 sm6250-common: 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: I77f78a495623a55ad9c475d2554e7af326c68d7b
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
bc47a90e2f sm6250-common: add device-specific audio configs to device tree 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
ec357a7a97 [BLOBS] sm6250-common: remove device-specific audio configs from vendor 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
5202ad272b sm6250-common: copy audiopolicy configs from frameworks/av 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
86b19f1258 [BLOBS] sm6250-common: remove aosp audiopolicy configs from prebuilts 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
3529406a7d sm6250-common: sepolicy: update for qcom upstream 2020-12-05 00:36:17 +02:00
Mikhail Naganov
05701732a5 sm6250-common: Switch to Audio HAL V6
Switch to Audio HAL V6

Test: VtsHalAudioV6_0TargetTest VtsHalAudioEffectV6_0TargetTest
Bug: 155591007
Change-Id: If40ae28c224160728634736ee95590a779f905c4
(cherry picked from commit f11963392c9afd79704822a5812ef4412f3810db)
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
c034f3b609 sm6250-common: build audio stack from source 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
7383b2b4a0 [BLOBS] sm6250-common: remove prebuilt audio blobs 2020-12-05 00:36:17 +02:00
Murthy Nidadavolu
c8e91af415 sm6250-common: Remove DRM Widevine and Clearkey HALs
DRM Widevine and Clearkey HAL entries moved securemsm specific
makefiles complying FR53051.

Change-Id: Ib47565f157ce44d5b6e08789cf73ba206ba0176e
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
6420e7a3d2 sm6250-common: uprev clearkey hal to 1.3 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
70a02c0b60 sm6250-common: compile drm@1.0 from source 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
6ae3cb8c2b [BLOBS] sm6250-common: remove prebuilt DRM blobs 2020-12-05 00:36:17 +02:00
Dhananjay Kumar
e2a59ad584 sm6250-common: init.qcom.rc: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
e2025cf699 sm6250-common: disable configstore
* it's finally deprecated in R
* ship disable_configstore because we have API level 29
2020-12-05 00:36:17 +02:00
Manaf Meethalavalappu Pallikunhi
9521b1de0c sm6250-common: Remove deprecated android.hardware.thermal@1.0 HAL
Remove deprecated android.hardware.thermal@1.0 HAL from
device manifest.

Bug: 154012150
Change-Id: I884e6b96cac4ebc3abcfaf309388d526a30dc5bd
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
459953e9a8 [BLOBS] sm6250-common: remove prebuilt thermal blobs 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
9fb4f3ae0d sm6250-common: set target-level in manifest to 4
* this is Android 10 launched device
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
bbaf4103f4 sm6250-common: build qti health@2.1 hal 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
0fa8cf5811 [BLOBS] sm6250-common: remove prebuilt health hal 2020-12-05 00:36:17 +02:00
Bharat Pawar
5d647e7b6c sm6250-common: Disable vibrator HAL interface
Disable the existing HIDL based vibrator HAL, while
we move to vendor vibrator HAL.

Change-Id: I7529dc91c2ff994b83c7b9e7ddf4df913b9205f9
2020-12-05 00:36:17 +02:00
Roshan Pius
8255190f11 sm6250-common: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
d795f22b08 sm6250-common: Remove wifi related internal overlays
This reverts commit 51e488c63c0e15aac8deb4ac3892ee0ca5b2bffc.
2020-12-05 00:36:17 +02:00
Bharat Pawar
6a37ae1489 sm6250-common: vibrator: Enable LED based vibrator
Enable LED based vibrator for talos, moorea and
atoll targets.

Change-Id: I079eefaefff77fe19304acc8749773febf91a7fc
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
580d07ac77 [BLOBS] sm6250-common: remove prebuilt vibrator blobs 2020-12-05 00:36:17 +02:00
Lucchetto
1ea5b096b4 sm6250-common: Adapt libinit to Android 11
[wight554: add property_override to common header]

Signed-off-by: Mohammad Hasan Keramat J <ikeramat80@gmail.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: Ia6b6f753891b639dad4e380bdba6b594faf2a550
2020-12-05 00:36:17 +02:00
Mohammad Asaad Akram
2e3dfe8988 sm6250-common: ueventd: Allow system permission for RPS sysfs node
Allow system permission for RPS sysfs nodes, so that cnss-daemon,
user space daemon can enable RPS(Receive packet steering) feature.

Change-Id: Iccebc347d959fc8ca35f28cb64e7bcf6b05f341a
CRs-Fixed: 2768237
2020-12-05 00:36:17 +02:00