34 Commits
Author SHA1 Message Date
duckyduckg fc47733b7e sdm845-common: Patch codec2 for legacy 128x32 alignment
Note: values were taken from stock msmnile codec2 using ghidra.

on kona platforms or newer or older, if IsCameraCustomFormat fails c2 enforces 512x512 alignment.
after this patch with IsCameraCustomFormat disabled on legacy CamX,
incoming buffers retain standard Venus 128x32 alignment.

1. qc2::QC2Buffer::Graphic::GetAlignedHeight
   - File_Offset: 0x138D2
   - Assembly:
     0x138D2: 00 F2 FF 11 -> 00 F2 1F 01  ; addw r1, r0, #0x1f
     0x138D6: 40 F2 FF 12 -> 40 F2 1F 02  ; movw r2, #0x1f
   - ALIGN(h, 512) -> ALIGN(h, 32)

2. qc2::QC2Buffer::Graphic::GetAlignedWidth
   - File_Offset: 0x1397C
   - Assembly:
     0x1397C: 00 F2 FF 11 -> 00 F2 7F 01  ; addw r1, r0, #0x7f
     0x13980: 40 F2 FF 12 -> 40 F2 7F 02  ; movw r2, #0x7f
   - ALIGN(w, 512) -> ALIGN(w, 128)

Change-Id: I154b556cbefdbbd47a6c315d38fb468aed39f1b7
Signed-off-by: duckyduckg <duckyduckg65@gmail.com>
2026-10-23 18:47:57 +00:00
Edwin Moquete 285d3dc4e6 sdm845-common: Update C2 blobs from FP4.QREL.15.20.0.20260821145807
Change-Id: I5ae3c31baa0fb9eb17d0dae75ce5bd37859cbeb4
2026-10-23 18:47:51 +00:00
LuK1337 dda6ed4095 sdm845-common: Update WFD vendor blobs from FP4.QREL.15.20.0.20260821145807
Change-Id: I6f8c4da7384e85ab4a65b7d084bda18381a16b05
2026-10-23 18:43:34 +00:00
Raya Mahardika e003903536 sdm845-common: Drop Audiosphere 2026-10-23 18:34:58 +00:00
Raya Mahardika ba7f6711b6 sdm845-common: Fix PLT stub target alignment in libC2D2 bridge
Change-Id: I4c9650aeeb4244468e110164d22e967ef5576e02
2026-10-05 11:14:30 +00:00
Raya Mahardika b81d342bb1 sdm845-common: Fix 32-bit gsl_memory_alloc_pure ABI bridge in libC2D2
- Instead of intercepting gsl_memory_alloc_pure in libgsl.so (which corrupted
  the stack frame and crashed 5-argument callers like libGLESv2_adreno in
  android.hardware.camera.provider-service_32), bridge the legacy 3-argument
  calling convention directly inside libC2D2.so.
- Restore standard Pong calling convention in 32-bit libgsl.so while keeping
  the defensive null check on error return.

Change-Id: I494c15e9f7cca5bcb8a0d786e0034b8fed5dfd9e
2026-10-05 01:15:54 +00:00
Raya Mahardika baca65a148 sdm845-common: Fix gsl_memory_alloc_pure ABI mismatch in 32-bit libgsl
- When graphics blobs were updated from pong, gsl_memory_alloc_pure changed
  its calling convention to 64-bit size, causing 32-bit legacy blobs like libC2D2
  to pass mismatched arguments (flags corrupted to memdesc pointer, memdesc null).
- This caused kgsl_sharedmem_alloc to fail and crash vendor.qti.media.c2@1.0-service
  on null pointer dereference during video encoding (e.g. scrcpy, video recording).
- Add trampoline to correctly bridge 32-bit gsl_memory_alloc_pure calls to
  gsl_memory_alloc_pure_64 and add null check on error path in libgsl.

Change-Id: Ic6b835fbf2ffd876789e9b332bc26634e303c0f4
2026-10-05 00:33:47 +00:00
Raya Mahardika 222fd447bf sdm845-common: Update blobs graphics from pong
Change-Id: I5299ef9b2512fc99abbb2e956be71eef249bcad6
2026-09-28 10:49:58 +00:00
Raya Mahardika 46489f7676 sdm845-common: Let build libspkprot from source
Change-Id: Ic44bd63322c04840c4602bb7c82f3e2c834e333d
2026-09-20 10:55:05 +00:00
Raya Mahardika 72924e9daa sdm845-common: Regenerate vendor
Change-Id: Ib33615496e721f22c5e6b62750120374a963b88f
2026-09-20 10:54:43 +00:00
basamaryan 93f84225de sdm845-common: Patch audio to load libaudioroute-v34.so
Change-Id: Idad20512982b8753820fffa6d956df137e462638
2026-04-04 10:17:34 +05:00
MrArtemSid c0803ef3b0 sdm845-common: Update Adreno firmware from OnePlus 6 Android 11
tag: OnePlus/OnePlus6/OnePlus6:11/RKQ1.201217.002/2109171635:user/release-keys
Change-Id: I1720bde6ee5a32aa0bae1322e9460c7932b94121
2026-04-04 10:17:34 +05:00
dianlujitao ea2a47f4b1 sdm845-common: Remove OMX
* OMX HW video codecs are no longer used after enabling Codec2
 * OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I65852151c8fb6387add5fc4402ba3f13c97b5f64
2026-04-04 10:17:34 +05:00
Edwin Moquete 287d185179 sdm845-common: Kang QTI C2 stack from guacamole
Change-Id: Ief898517746710f85a5edae70c96fcbcb7d04e86
2026-04-04 10:17:34 +05:00
basamaryan b5e62064d2 sdm845-common: Update WFD vendor blobs from sweet_k6a OS1.0.19.0.THGMIX
Change-Id: I6f8c4da7384e85ab4a65b7d084bda18381a16b05
2026-04-04 10:17:33 +05:00
duckyduckG c71226a742 sdm845-common: Use Widevine DRM from munch
Change-Id: I51b2e37aae3f1a5497c182707c5ec29f0aafb864
2026-04-04 10:17:33 +05:00
duckyduckG bcf1992f9b sdm845-common: Update Neural networks from munch
Change-Id: I979efec786340d193fc3e703e4a882069ae7a712
2026-04-04 10:17:33 +05:00
duckyduckG 4b7927a0aa sdm845-common: Commonize BT stack and dependencies
There's no harm doing this and eases kernel 4.19 bringup.

Change-Id: Ie88f469be3f83c887dc2f993cb964bfa51091512
2026-04-04 10:17:33 +05:00
PainKiller3 dcfb560be8 sdm845-common: Update CNE, DPM, IMS, QMI and RIL blobs from munch
Change-Id: I12f1f5d2c626c046390031bbcf53fb99abb2a7fc
2026-04-04 10:17:32 +05:00
PainKiller3andEdwin Moquete 17957886fb sdm845-common: Kang display blobs from munch
Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Change-Id: I98a9ffd3aefcbf49cf0a02fee4005d137e3e6163
2026-04-04 10:17:31 +05:00
duckyduckG b971b2ccd4 sdm845-common: Commonize BT stack and dependencies
There's no harm doing this and eases kernel 4.19 bringup.

Change-Id: Ie88f469be3f83c887dc2f993cb964bfa51091512
2026-02-07 10:54:39 +00:00
Bruno Martins 55f000c70e sdm845-common: Regen vendor after enabling ELF checks
Change-Id: I5502bb5bcf03f5311ecda9bc6c82f8070216923f
2025-04-13 17:54:20 +01:00
Bruno Martins 7953e137dd sdm845-common: Remove a bunch of unused blobs
Change-Id: I0f85d818595e9d15626e05fa1178670954625738
2025-04-04 21:43:31 +01:00
Bruno Martins ba9288ff67 sdm845-common: Regen using python extract-utils
Change-Id: Ic56941ae5f313ca1fe1e15c1191300c66a42c6fb
2025-01-27 23:35:55 +00:00
Michael Bestas b914381b3d sdm845-common: Remove OMX audio codecs
* OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I1bddff8a4f62d95e2b356ca04616d63341fd33d1
2025-01-27 23:01:27 +00:00
Michael Bestas 04b6682285 sdm845-common: Shim widevine with libcrypto_shim
The following change
https://github.com/google/boringssl/commit/e202e51cb0912f36dafbd2e67cf04d6ec82f3180
removed symbols that our libs require.

Change-Id: Ifd4bc8bc4f0179046dd2562430dab9ff2ff12c65
2024-11-24 17:35:13 +00:00
Bruno Martins 8725f9b7ff sdm845-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: Id005b453c2ce0b1697b175e7139699b1544d96b8
2024-09-28 10:27:26 +01:00
Bruno Martins edcdb590b0 sdm845-common: chmod 755 proprietary/*/bin/hw/*
Change-Id: If2aa0b7e85f1219ee615fb77423eac57a2da5bd5
2024-09-28 10:25:54 +01:00
LuK1337 e837a91650 sdm845-common: Patch pm-service to load libutils-v33
Change-Id: If3ca5ed03594558fba25443977d0e70a4632ae47
2023-11-24 10:26:00 +00:00
Georg Veichtlbauer 3b8ace3fee sdm845-common: Fix PowerOffAlarm
* The APK is prepared to not run as system user
* Blobs grabbed from: lge/caymanslm/caymanslm:12/SKQ1.211103.001/2222823249237:user/release-keys

Change-Id: I3496232d468c671f7ef67b7bb6050978388d6ccf
2022-10-19 01:22:17 +01:00
Edwin Moquete 834b94862e sdm845-common: Use wfdconfig.xml from lemonadep
* Enables audio playback during suspend and UIBC.

Change-Id: I7e4dbeec717cd71d88252cc796f988b1378239ff
2022-09-20 22:22:06 +01:00
Bruno Martins 1bcf9f1714 sdm845-common: Update DPM from T blobs
From: oplus/ossi/ossi:13/TP1A.220624.003/1663150961427:user/release-keys

Change-Id: Iaf578a312d2c492bf41a5af0189a62bb1e96432d
2022-09-20 12:48:29 +01:00
Bruno Martins c2599196dd sdm845-common: Remove audio.bluetooth_qti.default
Not needed while using AOSP BT stack.

Change-Id: If8be79eeaebb90940fa462443792952ebc750e7d
2022-09-20 12:48:19 +01:00
Bruno Martins aa744be2d8 Import sdm845-common from lineage-19.1 (8ee81e980)
Change-Id: Id464f5828d22874bab1726612fc860c8575719ae
2022-09-20 12:48:00 +01:00