Commit graph

175 commits

Author SHA1 Message Date
Md Mansoor Ahmed
786671b446
clover: config: Update keep_alive to support silence playback on
non-hdmi devices

Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: Icdf22c9d8d1264d463b23c8f54020e792840b73c
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-12-03 12:33:16 +01:00
Ramjee Singh
110a84110e
clover: audio: Add microphone characteristics and snd device mapping
Populate microphone characteristics for supported microphones on
platform. Map input sound devices to specific microphone ids.

Change-Id: I9aab6ef04bb941533261740723ffcf78645d3e1e
2018-12-03 12:32:19 +01:00
Samyak Jain
377f56bc4f
clover: Support 2 instances of "primary input"
No Audio heard in FM Speaker when FM record and FM speaker are on simultaneously

With default values for maxActiveCount and maxOpenCount,
FM app is unable to record and play FM audio on speaker simultaneously
since it uses application loop back(AudioRecord->AudioTrack)
to route FM audio to non-default devices(Speaker)

Add attributes maxActiveCount="2" and maxOpenCount="2" to mixPort "primary input"

CRs-fixed: 2249758
Change-Id: I82a1cb0d5596486d531d5324b91f932f52b07f9e
2018-12-03 12:31:02 +01:00
Mao Jinlong
ff8a4d7393
clover: Change /data/time to /data/vendor/time
Time folder is for time_daemon which is in vendor partition. Vendor
module can't access data in /data for treble limit. So change
/data/time to /data/vendor/time.

Change-Id: If3420ec92fa79f8d7c98a1e20c12f148b0fd7894
2018-12-03 12:29:26 +01:00
Max Weffers
e6002e72b7
clover: use call inherit instead of include 2018-12-03 12:26:45 +01:00
Max Weffers
a4a52dd998
clover: prop: Add missing ACDB Props 2018-11-30 20:33:30 +01:00
GuaiYiHu
b7df175ea3
clover: libinit: Set device specific changes via libinit
Change-Id: I9a2dea3291b76d185d9ecda524a4234b6ed25412
2018-11-29 19:43:42 +01:00
GuaiYiHu
3c6bab5243
clover: libinit: Set product model dynamically
Change-Id: I6ac3931cab7301551098d077a7bb60d3760d8d98
2018-11-29 19:43:42 +01:00
Max Weffers
33d078f66f
clover: rewrite system and vendor prop for clover into one makefile 2018-11-29 19:43:12 +01:00
Max Weffers
aac817a4d3
clover: overlay: use Brightness values from phh treble builds for mi pad
4
2018-11-26 20:44:39 +01:00
dianlujitao
ce4e46cfab
clover: Create data directory for thermal-engine
Change-Id: I4c9f6f67c38379329b393e39a7d5a6e88b0c8195
2018-11-26 11:48:29 +01:00
dianlujitao
44e7bfeaca
clover: Disable audio ULL mode
* This generates corrupted sound, and is disabled on stock as well.

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2018-11-26 11:48:29 +01:00
dianlujitao
7c657543be
clover: Use voice speaker ACDB id for speaker
* Speaker isn't properly calibrated with ACDB from O-based MIUI (while
   it was on N), pop is heard when disabling speaker.
 * MIUI has speaker protection enabled, hence this route isn't even
   used by Xiaomi. However, with speaker protection enabled on Lineage,
   the volume curve became very strange, maybe Xiaomi uses Dirac audio
   effect to address this issue on MIUI, but it's not supported on AOSP.
 * Fortunately voice speaker seems to be properly calibrated, so apply
   that route to fix the issue.
 * Voice speaker gain in ACDB seems to be lower than speaker, so
   slightly increase gain in mixer paths to make it sound like a "normal"
   speaker.

Change-Id: Ic674973933595db0ae797a7fa767539a321664ff
2018-11-26 11:48:29 +01:00
Wang Han
6399b3ff6b
clover: Configure number of physical SIM slots
* Needed by telephony-common

Change-Id: I18c058d295ed2eaf23e8ca5d1f3933b65806ed48
2018-11-26 11:48:01 +01:00
GuaiYiHu
dd9d51d40a
clover: Configurate for dt2w
Change-Id: I2396c1a37cb016b583e087585acb0bc070d1e5a0
2018-11-26 10:48:23 +01:00
GuaiYiHu
a492558bc9
clover: Switch to xiaomi oss kernel source
Change-Id: I29c34cd1c313093fa60137da76572e242cbc9023
2018-11-26 10:30:50 +01:00
Max Weffers
2a8d3472fc
clover: set new fingerprint from Miui 10 release 2018-11-26 10:27:14 +01:00
Max Weffers
2f9c181409
clover: set vendor security patch from Miui 10 release 2018-11-26 10:24:44 +01:00
Max Weffers
2722932a93
clover: start miui charger animations for offline charging 2018-11-12 13:13:55 +01:00
Max Weffers
2f14302932
clover: kernel: Use kernel source path of common kernel 2018-11-12 12:41:35 +01:00
Max Weffers
fc060a550a
clover: prop: Update qcom bluetooth prop for pie blobs 2018-11-12 11:39:16 +01:00
Max Weffers
c0d9ecae96
clover: wifi: Move qca_cld3_wlan module to system 2018-11-08 19:01:05 +01:00
Bruno Martins
b4f9af65e9
sdm660: Update power profile for P
Change-Id: I161aa25ba166d41b6736dc52bb7dd78e3a2ad0e7
2018-11-05 12:15:33 +01:00
Mikhail Naganov
2f5fb9dd04
sdm660: Uprev soundtrigger to 2.1
Bug: 68823037
Change-Id: If634345594ea6d574f49d58e29b48165c3b9458b
Test: "ok google" and music iq from locked screen
2018-10-19 16:43:31 +02:00
Max Weffers
0ae6a348cb
clover: disable davlik and hwui includes 2018-10-19 16:43:03 +02:00
Max Weffers
760736653d
clover: use device specific vendor for better compatbility 2018-10-19 12:28:25 +02:00
Lakshman Chaluvaraju
761d7ac356
clover: audio: Add dynamics processing support
(cherry-picked from c57b29cc104a7f4f1250cf67ce739795f6c2ecaf)

Change-Id: If22b1f2151cec52fa17cad7eecb981c3a591dc2e
2018-10-19 11:53:53 +02:00
Tim Murray
f35f4d8a08
clover: rootdir: add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2018-10-19 11:52:30 +02:00
Steven Moreland
73a8c26a67
clover: light: mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2018-10-19 11:52:05 +02:00
guaiyihu
d605cdfde8
clover: Clean up non-exsistent hal in manifest.xml
Change-Id: Ie45f56421df60311cf0fa5b881e3ef9f14a170fa
2018-10-19 11:47:08 +02:00
Max Weffers
46b21710c0
clover: add vendor prefix for dpm feature prop 2018-10-19 11:46:39 +02:00
Edwin Wong
d38f63a5ae
clover: Add manifest entry for clearkey HIDL service.
Convert clearkey plugin to HIDL to support drm HAL v1.1.
Add SELinux policy for android.hardware.drm@1.1-service.clearkey.

Test: CTS test
  ANDROID_BUILD_TOP= ./android-ccts-tradefed run cts-dev
    --module CtsMediaTestCases
    -t android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc

bug: 69635855
Change-Id: I61e9c272c2a2788fd07d5c12921d28c785661b77
2018-10-19 11:41:55 +02:00
Steven Moreland
734d0d707e
clover: DRM: Specify exact interfaces used.
Leaving 1.0 in the old format and 1.1 in the new format
since this is agaisnt FCM 2 which requires 1.0 (this makes
sure that OTAs work).

Bug: 73556059
Test: vts_treble_vintf_test (DRM served in 'HalsAreServed')
Test: ota 3/15/2018 build -> ToT + this
Change-Id: I82e6f9fe0b29b15c2e79e92eb9b2abdbab615a71
2018-10-19 11:39:02 +02:00
Kevin Rocard
30eb0a3612
clover: Migrate to audio V4
Test: regression test on the board
Bug: 38184704
Change-Id: Ife559125850277865451f92ea862e7ec47fc9da7
Merged-In: Ife559125850277865451f92ea862e7ec47fc9da7
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-10-19 11:37:59 +02:00
Yifan Hong
f9178dba76
clover: uprev to health@2.0 hal.
Test: adb logcat -e health
Test: lshal --debug

Change-Id: I3b14f087d95578d034898600592cb6fb357a9958
2018-10-19 11:35:45 +02:00
guaiyihu
7476099d79
clover: prop: Update CNE blobs from Nokia 7 Plus
* Onyx_00WW-user 9 PKQ1.180712.001 00WW_3_150 release-keys

Change-Id: I9da238c7f4bd40acb70358df1d0718c9db41729e
2018-10-19 11:22:28 +02:00
Bharat Pawar
6ea7bfe32a
clover: remove improveTouch HAL Entry from manifest
* Also drop improveTouch blobs

Change-Id: I28d9a9a586239f776528e9b63de85efef8ffa021
2018-10-19 11:15:46 +02:00
Max Weffers
7a7fe6add7
clover: update vendor props based on whyred 8.9.6 2018-10-19 11:05:28 +02:00
Roshan Pius
1658c27ff9
clover: Add hostapd HIDL interface
Bug: 36646171
Test: Manual softap toggle
Change-Id: Ia7ef8bf3da8adc3491c4dac4096e4297cbd5bf5b
2018-10-19 10:27:41 +02:00
Yifan Hong
5c37551434
clover: Remove PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE
Replace it with FCM Version = 1, specified explicitly
in device manifest.

Test: builds
Bug: 69636193

Change-Id: I0f5689344bb7b10b2b5db2549e95c940c4812f9d
Merged-In: I0f5689344bb7b10b2b5db2549e95c940c4812f9d
2018-10-19 10:20:42 +02:00
Jeff Vander Stoep
b0888ee43d
clover: wifi_supplicant: Deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
(cherry picked from commit 1f2b2f3a780bb7a6ed489bf86e18e77382f37514)
2018-10-19 10:18:26 +02:00
Roshan Pius
51bb83a4c5
clover: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-10-19 10:17:44 +02:00
Roshan Pius
1085886de4
clover: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-10-19 10:16:44 +02:00
Roshan Pius
82026f32ba
clover: Uprev to supplicant 1.1
Bug: 65673412
Test: Device boots up and connects to wifi networks.
Change-Id: I2e51291b30fd242edbeae2c69ef9545383895bb3
2018-10-19 10:15:39 +02:00
Jeff Vander Stoep
d623e91b4e
clover: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: Test wifi on Taimen and Sailfish
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-10-19 10:15:18 +02:00
Etan Cohen
3fde877185
clover: Uprev Wi-Fi HAL to 1.2
New HAL APIs are planned. This requires a HAL uprev.

Bug: 65647646
Test: builds and Wi-Fi runs
Change-Id: Ib7efd3d5263e73d1ad40e1a5a687bdb6c133c812
2018-10-19 10:13:12 +02:00
Max Weffers
9564f5e45d
clover: hardcode fingerprint to fpc hardware 2018-10-19 09:52:45 +02:00
Max Weffers
0ba689a6f2
clover: audio: Update audio configs from MIUI 8.9.20 2018-10-18 17:00:04 +02:00
Max Weffers
e6fe701fda
clover: Add qcom sensor config 2018-10-18 16:21:07 +02:00
Max Weffers
d1c4756c18
clover: Add CarbonROM Copyright for all makefiles 2018-10-18 15:56:59 +02:00