almondnguyen / android_device_samsung_grandppltedx

Device tree for Samsung Galaxy J2 Prime/Grand Prime Plus | MT6737T platform.
16 stars 10 forks source link

Headphone Jack Issue #18

Open TheElectricWarlock opened 5 months ago

TheElectricWarlock commented 5 months ago

Hello, I know this is a known issue already but I wanted to know if there had been progress with the headphone functionality of this device. Someone on xda had previously posted an AICP rom (grandpplteser) for the same android version with the headphone jack working but some other parts of the rom are unstable. Is there anything that I can do to help resolve the issue?

almondnguyen commented 5 months ago

the issue is with MTK (+Samsung) audio lib not have definition for N jack. Kanging from other device would break RIL cause of no Samsung RIL integration

Fixed in (internal) higher android builds, however not clear how to backport cleanly.

TheElectricWarlock commented 4 months ago

Thank you for your reply. I have some follow up questions:

almondnguyen commented 4 months ago
  1. Android 8+
  2. Thanks to upstream's removal of socket-based RILd*, the process then was just to build oss rild and libril (with some patches for missing legacy features like Get/SetClientData). After that, we could use pure MTK hw/audio.primary and symlink to old RIL stack.

refer to (and its fork): https://github.com/HoangLong-Lumi/android_hardware_samsung/

working(?) branches idk I haven't re-tested xd: lineage-15.1 and lineage-16.0. The newer ones requires Treble and f'ton of kernel changes.

*I said I couldn't port downstream because Android 7.1.2 still uses socket for RIL stack, and I'm getting cannot get socket for rild2 when using oss libril, with otherwise no clear logs.