98 Commits

Author SHA1 Message Date
Volodymyr Zhdanov
1df35a84e5
sm6250-common: Copy audiopolicy configs from frameworks/av
Change-Id: If6f654269381e689edb8e242dcb89abef78990eb
2021-09-09 18:46:15 +02:00
Sebastiano Barezzi
2e09c7a281
sm6250-common: audio: Remove misoundfx
Change-Id: I0a93dbfced55d851d3a7e5b57c1ff9a251777094
2021-09-09 18:46:15 +02:00
Akash
218c05d2c0
sm6250-common: audio: Fix mic issues in apps like WhatsApp
* Also clean up FM Tuner from original commit as it breaks wired headphones

Change-Id: I311b484e07e41bf69ab43b78e4a9abe883730435
2021-09-09 18:46:15 +02:00
justinweng
98bc6d7dd7
sm6250-common: audio: Sync audio feature from coral
1. enforce 48KHz sampling rate at COPP for audio recording.
2. resize offload buffer to reduce power consumption.
3. enforce 24 bit width for offload playback and apply app_type 69940

Bug: 147027029
Test: build passed

Change-Id: Ie692746f4588b5706cbab7eddf5b6b7b8766a181
Signed-off-by: justinweng <justinweng@google.com>
2021-09-09 18:46:15 +02:00
Jasmine Cha
21171a2f2d
sm6250-common: audio: Add hotword input for hotword mic concurrency
Bug: 126595113
Bug: 129733664
Bug: 133123985
Bug: 130316160

Test:
 (ST: sound trigger, VO: VoIP, PH: phone call,
  NR: media recording, PL: playback music)
 ST->VO (MO/MT),  ST->PH (MO/MT)
 ST->NR->PH (MO/MT), ST->NR->VO (MO/MT)
 ST->PL->PH (MO/MT), ST->PL->VO (MO/MT)
 ST->NR->PL->PH (MO/MT),  ST->NR->PL->VO (MO/MT)

Change-Id: I11513994c7a34364de38e00fc8ff999efe3dbb6c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2021-09-09 18:46:14 +02:00
Weiyin Jiang
32a9e4666b
sm6250-common: audio: Add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2021-09-09 18:46:14 +02:00
Jasmine Cha
53b4166dd7
sm6250-common: audio: Correct routing order for voip output
Routing primary output before voip_rx output will cause unexpected
RX/TX path suddenly and unmuted voice stream during when system
plays touch sound and switches path between handset and handsfree.

Bug: 152292858
Test: manual test in VoIP
Test: Regression test for VoIP(b/153276370) - pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia60802ec887f0dfeaa0f93d151ba2f2c50e0d41d
2021-09-09 18:46:14 +02:00
justinweng
ecc89ae0ad
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>
2021-09-09 18:46:14 +02:00
justinweng
2c4a51ef79
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>
2021-09-09 18:46:13 +02:00
LuK1337
ca7fafff4c
sm6250-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
e74d103786
sm6250-common: audio: Adjust volume curves
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: I9612cc657df01b62f49fc0d29758a288e72b05a8
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
838ee943b3
sm6250-common: Import cleaned-up stock audio configs changes
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: I9946e215c4aba9e090c013b75e0a33af39423edc
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
1e92dc621b
sm6250-common: Import audio configs from LA.UM.9.1.r1-09600-SMxxx0.0
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: Icf78da31480320a6a101d44d841ca128c0aa1a47
2021-09-09 18:46:12 +02:00
Bruno Martins
3f85485d2d
sm6250-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2021-09-09 18:46:12 +02:00
Sebastiano Barezzi
7723d44913
sm6250-common: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2021-09-09 18:46:12 +02:00
Bruno Martins
351b5c52aa
sm6250-common: Define Soong namespace
Change-Id: Ibea0e8fe5dbc26d8953a9735f0b38cf087805b76
2021-09-09 18:46:11 +02:00
Rick Yiu
b0f0c415a1
sm6250-common: rootdir: Apply runtime blkio settings
Bug: 126796415
Test: settings are as expected
Change-Id: I5d90c0baad52cd027d948701c4962226b9b619a5
2021-09-09 18:46:11 +02:00
Kyle Lin
743e44b443
sm6250-common: rootdir: Fine tune the read_ahead size
sync ag/6911752,ag/9342439
fine tune the read_ahead size for boot time

Bug: 137150088
Bug: 139640385
Bug: 143448664

Test: boot to home and boot time measurement
Change-Id: If7929c51222e325a019532ce0d16045a52778165
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-09-09 18:46:11 +02:00
Wei Wang
d35ff1caca
sm6250-common: rootdir: Boot time tuning
RD1A.200703.001
dmesg_action_sys.boot_completed_first_timestamp_avg : 14745.3
With CL
dmesg_action_sys.boot_completed_first_timestamp_avg : 13993.7

Bug: 143857500
Bug: 161478668
Test: build and boottime test
Tested-by: Lisa Liu <liulisa@google.com>
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ib8f31d39501b4747f0c268d2dd87e814bcc7843b
2021-09-09 18:46:11 +02:00
Kyle Lin
1d7a13366a
sm6250-common: rootdir: Setup runtime cpusets
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ie4d4cd252cbe5cdaf733a8db09117808eb0ec27c
2021-09-09 18:46:10 +02:00
Jaegeuk Kim
117ae7fbf6
sm6250-common: Get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2021-09-09 18:46:10 +02:00
Brock5555
2abc0a364d
sm6250-common: rootdir: Enable qcrild & data services on boot
Fixes lag on getting network service after boot.

Change-Id: I0f7cd9df2a103070b3569a610cc391c54f6e3048
2021-09-09 18:46:10 +02:00
Volodymyr Zhdanov
de4430798e
sm6250-common: rootdir: Override hwcomposer service
* CAF ¯\_(ツ)_/¯
* See https://source.codeaurora.org/quic/la/platform/hardware/interfaces/commit/?id=73a427f95e231a46c2274d51abfec21bd2d316f1

Change-Id: Iae755d16e5d5f70d372112bcbbac8e71d8df1124
2021-09-09 18:46:10 +02:00
Volodymyr Zhdanov
b6f59d3316
sm6250-common: rootdir: Don't enable a2dp offload from rootdir
* this breaks a2dp toggle

Change-Id: I20335149e99a48c7ff8219f94d7a6280e49d7f58
2021-09-09 18:46:09 +02:00
Volodymyr Zhdanov
836bc2c0a3
sm6250-common: rootdir: Remove service for unused wigignpt
Change-Id: I08c9e6e30aee9b606982e10b0a78515475cd3597
2021-09-09 18:46:09 +02:00
Randall Huang
835a05445a
sm6250-common: Enable ZRAM-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing

Signed-off-by: Randall Huang <huangrandall@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I6b8f537faf2ffff1a93170aad763f2be4dcaba42
2021-09-09 18:46:09 +02:00
Albert I
23d6c382f2
sm6250-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2021-09-09 18:46:09 +02:00
Albert I
b09005f206
sm6250-common: Configure zRAM using fstab
* "32-bit overflow" CAF mentioned in the function wrapper inside post-boot
  script sounds very bs, since if it's 64-bit it won't be affected anyways

* We do the setup using fstab instead to allow setting up more flags such
  as setting up backing device and compression streams; as such kanged from
  Pixels

* zRAM size = 50% physical memory size to satisfy what CAF really wants

* Use LZ4 compression even for regular devices

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ia6efb3d28e56fb026d9b28fc6633b2eac77dfa47
2021-09-09 18:46:08 +02:00
Alexander Winkowski
0d8f538cbf
sm6250-common: Add encryption props
* miatoll devices were launched with API level 29.

Link: https://source.android.com/security/encryption/metadata
Change-Id: I21a4e3760ca7b992f32df48f0ca5595d67f4a15b
2021-09-09 18:46:08 +02:00
Alexander Winkowski
8f749ee764
sm6250-common: Import keymaster 4.1
Change-Id: Icf63153b7d3f3e68adfed1c7f9cc3af21eda6d61
2021-09-09 18:46:08 +02:00
Alexander Winkowski
f1b745f78f
sm6250-common: fstab: Enable new encryption flags
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I63c3e85ec90af17b3c9b40acd30d1458da7eac0a
2021-09-09 18:46:08 +02:00
Alexander Winkowski
e9ddd276cb
sm6250-common: fstab: Add UFS sysfs path
Change-Id: I3b0a34c75ca391f84830640d3c2adab717040a42
2021-09-09 18:46:07 +02:00
Demon000
0adcfcde85
sm6250-common: rootdir: Add /boot to fstab
Build process errors out without this.

Traceback (most recent call last):
  File "build/make/tools/releasetools/ota_from_target_files", line 2455, in <module>
    main(sys.argv[1:])
  File "build/make/tools/releasetools/ota_from_target_files", line 2429, in main
    output_file=args[1])
  File "build/make/tools/releasetools/ota_from_target_files", line 1103, in WriteFullOTAPackage
    common.CheckSize(boot_img.data, "boot.img", target_info)
  File "/home/aicp-dev/rom/lineage-17.1/build/make/tools/releasetools/common.py", line 1190, in CheckSize
    p = info_dict["fstab"][mount_point]
KeyError: '/boot'

Change-Id: I30a396ea62e6e48420c0dd41533c156e90032929
2021-09-09 18:46:07 +02:00
Adam Shih
5cf344ba4d
sm6250-common: rootdir: Remove sdcard legacy support
[    1.667218] audit: type=1400 audit(1804301.953:5): avc:  denied  { write } for  pid=507 comm="init" name="/" dev="tmpfs" ino=17273 scontext=u:r:vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
[    1.667362] init: Command 'symlink /sdcard /mnt/sdcard' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:87) took 1ms and failed: symlink() failed: Permission denied
[    1.669181] init: Command 'symlink /sdcard /storage/sdcard0' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:88) took 1ms and failed: symlink() failed: Read-only file system

Bug: 131295392
Test: modify rc file, push to device and find error log gone
Change-Id: I24b6f5ac58159a1172a286eb680ded326c7319f9
(cherry picked from commit b1a63f1a7a99fb6c5a526c73426cab0bbf29a352)
Signed-off-by: Jason(HeWei) Sung <jasonsung@google.com>
2021-09-09 18:46:07 +02:00
orgesified
95a05c717d
sm6250-common: rootdir: Remove useless mkdir commands
init    : Command 'mkdir /firmware 0771 system system' action=early-init (/vendor/etc/init/hw/init.target.rc:31) took 0ms and failed: Not a directory on /firmware
init    : Command 'mkdir /bt_firmware 0771 system system' action=early-init (/vendor/etc/init/hw/init.target.rc:32) took 0ms and failed: Not a directory on /bt_firmware
init    : Command 'mkdir /dsp 0771 media media' action=early-init (/vendor/etc/init/hw/init.target.rc:33) took 0ms and failed: Not a directory on /dsp

Signed-off-by: orgesified <me@orgesified.ml>
Change-Id: I129f6fd9210076fffa1912e3dd6dcec32bd5acf6
2021-09-09 18:46:06 +02:00
Ethan Chen
09ab0b4905
sm6250-common: rootdir: Remove bogus tombstone directory directives
* /data/tombstones and /data/vendor/tombstones are both created by
  the system's init.rc.
* Creating /tombstones at the root isn't allowed since the root is
  a ramdisk and mounted read-only.

Change-Id: I04586994280ae48f36542f56e1cace422943376b
2021-09-09 18:46:06 +02:00
Alexander Winkowski
94c1f3209c
sm6250-common: rootdir: Configure cpusets on init
This should be done earlier:
libprocessgroup: Failed to open /dev/cpuset/camera-daemon/tasks: No such file or directory: No such file or directory
libprocessgroup: Failed to apply CameraServiceCapacity task profile: No such file or directory

Change-Id: I9edbdad2e764667a4624b181e0426f14ed9be616
2021-09-09 18:46:06 +02:00
Alexander Winkowski
df538ecabc
sm6250-common: rootdir: Update USB controller configuration
* For USB init scripts from vendor/qcom/opensource/usb/etc

Change-Id: Ia77c3271cc5f81230c6028b6340fdecf21412532
2021-09-09 18:46:06 +02:00
UtsavBalar1231
cd444b3f63
sm6250-common: rootdir: Cleanup Xiaomi's derp
E ueventd : /vendor/ueventd.rc: 418: Invalid section keyword found

Change-Id: I418720d35c74bd2d96ef0f68a590900a06bf7a32
2021-09-09 18:46:05 +02:00
UtsavBalar1231
e9af1ad77a
sm6250-common: rootdir: Properly label /sys/kernel/qvr_external_sensor/fd
E ueventd : /vendor/ueventd.rc: 175: /sys/ lines must have 5 entries

Change-Id: Ib614f778f734da76b3fbe07615f9323058c8631e
2021-09-09 18:46:05 +02:00
Alexander Winkowski
77999ac063
sm6250-common: Clean up rootdir
* Remove unused/duplicated parts
* Make changes to do without other scripts

Co-authored-by: Demon000 <demonsingur@gmail.com>
Change-Id: I8e758337488dc19ecb47ec1b583fba33ef05882d
2021-09-09 18:46:05 +02:00
Alexander Winkowski
4a2375f2bc
sm6250-common: rootdir: Import rootdir files
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ibcf71853e6d45b4ca6948f5267f2af26bf8b812a
2021-09-09 18:46:05 +02:00
Demon000
0b5ac18f5f
sm6250-common: Slim up filesystem configuration
Remove deprecated symlink directories, and remove
services that are not present in our system or vendor.

Change-Id: Ia07d472657f1303bf3ee1b8da36ac43ecc218d17
2021-09-09 18:46:05 +02:00
David Ng
e5bcbf6389
sm6250-common: Add common config.fs AID/fs configuration file
Common config.fs/$TARGET_FS_CONFIG_GEN AID/fs configuration
file for all chipset inheriting from base.mk.

Since legacy device-specific android_filesystem_config.h and
config.fs do not co-exist, temporarily include config.fs only
if legacy file is absent.  Once all legacy, device-specific
files have been deleted, config.fs can be made unconditional.

Change-Id: Ie100d0cd9db808b82d99be7139f0709390c7f3a2
2021-09-09 18:46:04 +02:00
Lokesh Gidra
f7ff168a1d
sm6250-common: Use 4GB dalvik-heap config
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2021-09-09 18:46:04 +02:00
Bowgo Tsai
b02c31e6de
sm6250-common: Adding GSI keys
Bug: 112293933
Test: build and checks the keys are installed into ramdisk
Change-Id: I216f3900e9511e0929418af050ff964898d0aea1
2021-09-09 18:46:04 +02:00
Jiyong Park
27d0288422
sm6250-common: Add updatable_apex.mk
The product abstracts configs that need to be set to support updating of
APEXes.

Bug: 130418467
Test: m
Test: adb shell getprop ro.apex.updatable in Pixel 2 and 3
Test: adb shell /system/apex/com.android.apex.cts.shim.apex exists.
Change-Id: Id5aa944ceba6a6846308f1c18a08af8b3bb38589
2021-09-09 18:46:04 +02:00
Daniel Rosenberg
51d80eea83
sm6250-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2021-09-09 18:46:04 +02:00
Danny Baumann
9efa3201da
sm6250-common: overlay-lineage: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2021-09-09 18:46:03 +02:00
Sebastiano Barezzi
f8dbf9cedf
sm6250-common: overlay-lineage: Snap: Enable camera API v2
Change-Id: I3b3bb8a9485883f577b6fb47affa3345e55a6f30
2021-09-09 18:46:03 +02:00