Commit Graph
9 Commits
Author SHA1 Message Date
duckyduckg 6dd86febf6 sm8150-common: Patch kona 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.

ONCE again patched using my shitty py script instead of extract-files.py

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-09-29 04:20:57 +05:00
duckyduckG 92058926d4 sm8150-common: Update codec2 stack from from munch-user V816.0.9.0.ULMMIXM
Change-Id: I29b3bdf548aaf45df84ed1ab4ffad3ea560de807
2026-09-29 01:15:20 +05:00
duckyduckG b40d681d39 sm8150-common: update adreno blobs from FP4.QREL.15.19.1
* also kang QSPM blobs needed by adreno blobs.

Change-Id: I5151f087fa8c76e523f3b91c3d27b244084a5eb5
2026-09-29 01:12:30 +05:00
Sebastiano Barezzi 8192c87d05 sm8150-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
2025-05-21 03:00:00 +02:00
Sebastiano Barezzi d39e61471c sm8150-common: Regenerate with checkelf changes
Change-Id: Ifa8ecee82923c700ca8f063a193f271f32203ef6
2024-12-16 01:10:10 +01:00
Sebastiano Barezzi 9bdb3ba458 sm8150-common: Rework audio libs
Reorder blobs and decommonize libs only used by the audio HAL

Change-Id: I9741f60eaf00d3c634dc405937966b4cd619b06b
2024-05-02 00:12:05 +02:00
Sebastiano Barezzi 116563d1cf sm8150-common: Update blobs from OS1.0.1.0.TKXMIXM
Change-Id: I1ae580024caef3b5c21a2296e04a2fc2b64586cd
2024-04-25 14:42:16 +02:00
Sebastiano Barezzi 78696c0a03 sm8150-common: Update blobs from V14.0.3.0.TJUMIXM
Change-Id: Idf917176949e69eadcfbf30ab4fda5d911e2951b
2023-08-22 15:22:32 +02:00
Sebastiano Barezzi 613d27bb62 sm8150-common: Initial import
* From vayu V14.0.1.0.TJUMIXM

Change-Id: I17aa712045470cebae289a06b43848b18c389d90
2023-04-11 18:26:05 +02:00