Commit Graph
5 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
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
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