ROADMAP / NOTES =============== Status 16.09.2026. The goal is one lean postmarketOS system on all devices (KEY2 LE first): calls with audio in+both directions, SIM, mobile data, powered by the sdm660-mainline kernel. Plan9/suckless/toybox flavour, no UI, no bloat. AUDIO (so far) -------------- * Internal card (analog codec pm8916-wcd-analog, no digital codec) instantiates WITHOUT the routing platform: 4 PCMs incl. MultiMedia front-ends. Playback still needs the FE->BE routing, so no sound yet. * With platform <&q6routing> added (DPCM backend), the card fails -ENODEV ("failed to instantiate card -19") in EVERY DT variant tried: 2 FE / 8 FE, analog-only, with/without sd-lines, with/without audio-routing. Machine driver matches a working Redmi Note 7 ("lavender") layout. * q6routing.ko carries a new DAI (see 0001-q6routing-dai.patch / fix-routing.py) - verified loaded (vermagic 7.0.14-sdm660). * kprobe on soc_probe_component returns 0,0,-19 (cpu=0, codec=0, platform=-19 silently; no "already bound" message, module is LIVE). * Suspected: an ASoC-probe subtlety in this kernel fork with DPCM backends + a platform component on this machine. Needs ftrace/kprobe with args or a maintainer look (upstream GitHub sdm660-mainline/linux). NEXT FOR AUDIO --------------- 1. Ticket/issue with reproducer (DTB overlay + module + dmesg) at sdm660-mainline/lookup lavender PR #111 ("Audio bringup"). 2. If the platform route is a dead end: test the machine WITHOUT platform and drive routing via amixer kcontrol ('INT0_MI2S_RX Audio Mixer MultiMediaN') if a UCM conf is present. 3. Call audio (future) = q6voice backport from the sdm670 fork (MR !5187): q6voice.c/h, q6voice-dai.c, q6cvp/cvs/mvm + internal-mi2s DAI. Then: MM call -> TDM0 -> codec analog. Bidirectional. MOBILE DATA ----------- Not possible with the fork kernel as-is: SDM660 uses IPA v2.6L, mainline IPA only supports v3.1-5.5; no ipa DT node. PROVEN SAME-SOC SOLUTION: repo 'miraro/postmarketos-x00td-cellular' (SDM636 = same SoC, 50 commits, 20.5 Mbps LTE out of the box on pmOS edge/mainline 6.19). Uses vendor ipa2/rmnet_ipa/sps-BAM port (vendor-baseline-4.19/, apply-all.sh) + CONFIG_IPA/RMNET_IPA/SPS + a vendor-init (QRTR+QMI: DMS/NAS/WDS/BIND_MUX/WDS_START). Plan: port that pipeline onto v7.0.14-sdm660. SIM --- SIM/PIN already works (voice+registration on o2 LTE). Only the data interface is missing. UNIVERSAL MINIMAL STACK (long term) ----------------------------------- * ModemManager stays (voice+SMS proven). * Mobile data via vendor-init (miraro) or MM with rmnet handling. * UI-less, toybox base, free energy; reuse this repo's pieces (audio overlay, module patches, DTB tooling) for any other sdm6xx device (ThinkPad, others) - the DT/overlay approach is device-agnostic.