Commit Graph

1290 Commits

Author SHA1 Message Date
LuK1337
b1112f918d sm6250-common: Prepare for LA.UM.9.1 display HAL
Change-Id: I3501d4bd6075db39aca03137c6670c0e009d2806
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
c67aef45f7 sm6250-common: build display stack from source 2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
79edc1bac5 [BLOBS] sm6250-common: remove prebuilt display stack 2020-12-05 00:36:17 +02:00
Kyle Lin
c615731c6d sm6250-common: adjust thread count and cpuset after setup wizard
Test: Forrest appinstall test
Bug: 149395059
Change-Id: Ia3f09b817daf36a3ac81f871675fbb1cbd2f6bb5
2020-12-05 00:36:17 +02:00
Karthik Gopalan
9d26cd31ec sm6250-common: Set lmkd.reinit property from vendor init
Set lmkd.reinit property to 1. This will trigger
reinit of lmkd service.

CRs-Fixed: 2692843

Change-Id: Ib946b01ca1dc013f0148ca702e4d550cde32b6c2
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
42402b7702 sm6250-common: rootdir: don't enable a2dp offload from rootdir
* this breaks a2dp toggle
2020-12-05 00:36:17 +02:00
justinweng
b8dbd31d09 sm6250-common: audio: offload 24 bits playback supports mp3/aac format
compress_offload_24 supports mp3/aac format

Bug: 132425237
Test: mp3 playback

Change-Id: I5742db45908f9d600cab0fef62badf447fc5c585
Signed-off-by: justinweng <justinweng@google.com>
2020-12-05 00:36:17 +02:00
justinweng
6e3ae51fdc sm6250-common: audio: update audio_io_policy for VoIP
Add VoIP Tx app type config for pcm and low-latency captures.

Bug: 133297310
Test: make a voip call

Change-Id: I5dd67167b7568fd08a7ae979b50417f2627dc7d9
Signed-off-by: justinweng <justinweng@google.com>
2020-12-05 00:36:17 +02:00
Daniel Micay
991d688450 sm6250-common: fix hw_random permissions 2020-12-05 00:36:17 +02:00
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