From 3089353f83cd4f551ada51eb585225f03edb724a Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Mon, 2 Nov 2026 16:58:13 -0647 Subject: [PATCH 1/3] omamobile-modem-sit 0.3.22: add opt-in tegu speakerphone audio Select the TAS2572 route only for google,tegu-aoc-snd-card. Save the controls, verify sink mute, configure the stock microphone/TDM routes, and start EP4 capture and EP5 playback as mono S16_LE at 8 kHz with 80-frame periods and two periods. Applying ALSA hardware parameters prepares each PCM once; do not prepare the modem stream twice. After PCM startup resets the amplifier profile, set both TAS digital gains to index 180 (-20 dB) and verify read-back before unmuting. A gain refusal unwinds the route and leaves call signalling available. Close PCMs before restoring controls, keep mute on cleanup failure, and retain the cheetah CS35L41 route and the default card=none configuration. Add fake-ALSA fault tests and the voice-window audit. The existing SRAM reservation is retained; no CPU mapping or phone operation is added. --- device/tegu/CALL-AUDIO-WINDOW.md | 46 +++++ .../etc/omamobile/modem-sit.conf | 6 +- packages/omamobile-modem-sit/lib/service.py | 4 +- .../omamobile-modem-sit/lib/voice_audio.py | 137 +++++++++++- .../omamobile-modem-sit/test/test_service.py | 17 ++ .../test/test_voice_audio.py | 195 ++++++++++++++++++ 6 files changed, 397 insertions(+), 8 deletions(-) create mode 100644 device/tegu/CALL-AUDIO-WINDOW.md diff --git a/device/tegu/CALL-AUDIO-WINDOW.md b/device/tegu/CALL-AUDIO-WINDOW.md new file mode 100644 index 000000000..b6a4324e7 --- /dev/null +++ b/device/tegu/CALL-AUDIO-WINDOW.md @@ -0,0 +1,46 @@ + +# Pixel 9a: AoC voice-window audit + +2026-11-02, offline. This supports TELEPHONY-PLAN section 1 (PR #360); +no call, memory access or phone operation was performed. + +**The firmware voice path has a shared SRAM window; the Linux call-audio +route does not need a new CPU mapping of it.** The checked CPIF and AoC +paths provide no evidence that adding the omitted CPIF region is required +to start a PCIe call. Whether the running firmware's path works remains +unqualified until the attended call test. + +Where it comes from: + +- MODEM-PLAN F3 records tegu's own stock DT capture: `cp_aoc_rmem` is + 12 KiB at AP physical address `0x197fd000`. The stock `cp_shmem` node's + fourth `memory-region` references it; `VSS_AOC` selects `SHMEM_VSS` + (index 1), rmem index 3, offset 0, size `0x3000`, uncached. This is AoC + SRAM, not a buffer for userspace to allocate. Google's + [GPL reservation](https://android.googlesource.com/kernel/devices/google/zuma/+/eb90f2862e78b4c409ff992e116c44e81f836e9e/dts/zuma-rmem.dtsi) + and [shared-memory description](https://android.googlesource.com/kernel/devices/google/zuma/+/b0dfdfc378dd37d7c1662bbd942240d55db83d68/dts/zuma-cp-s5300-sit.dtsi) + describe the same resource; tegu's capture is the board-specific evidence. +- Our tegu `zumapro-reserved-memory.dtsi` already reserves this range as + `cp-aoc@197fd000`, with `no-map`. Omitting the CPIF region from the + bring-up overlay does not remove that reservation. +- In the GPL CPIF port, `init_shmem_maps()` maps VSS only in the + `LINKDEV_SHMEM` case; tegu uses `LINKDEV_PCIE`. Its PCIe path does not + require `vss_base` to start. Google's + [GPL implementation](https://android.googlesource.com/kernel/google-modules/radio/samsung/s5300/+/refs/tags/android-16.0.0_r0.10/link_device.c) + preserves that distinction. Diagnostic accessors/dump support are not + the voice-stream transport. +- `aoc_alsa_voice.c` prepares the voice PCM through `prepare_phonecall()` + in `aoc_alsa_hw.c`. For playback PCM 4 it sends + `CMD_AUDIO_OUTPUT_TELEPHONY_MODEM_START_ID` (256); close sends STOP + (257). Both are header-only AoC commands, with no supplied memory + address (also confirmed in the saved GPL Zuma interface header). + The speech stays between the modem and AoC; sitd owns the PCM handles + and mixers, not the SRAM. + +Keep the reservation and leave the window CPU-unmapped. This change adds +no DT region, PCIe translation, S2MPU permission or userspace memory +access. If a later call establishes a missing firmware-side window, trace +the stock tegu firmware/translation setup separately before any kernel +change; do not substitute another board's address or map the SRAM to +inspect it. The first call still needs the plan's gain checks, log stream, +watchdog, stop conditions and attended recovery. diff --git a/packages/omamobile-modem-sit/etc/omamobile/modem-sit.conf b/packages/omamobile-modem-sit/etc/omamobile/modem-sit.conf index 669526205..e5a1d2232 100644 --- a/packages/omamobile-modem-sit/etc/omamobile/modem-sit.conf +++ b/packages/omamobile-modem-sit/etc/omamobile/modem-sit.conf @@ -138,8 +138,12 @@ group = wheel # reports that mode; with earpiece = no, refused unless the service runs at # stage media or c8 with the top amplifier at analog 6 or less and both # within the media stage's ceilings (digital 737, analog 10). +# On the Pixel 9a, call audio selects an experimental TAS2572 speakerphone +# route instead, held muted until both gains read back -20 dB after PCM +# startup. #card = none earpiece = yes # Microphone gain above stock's 130 cB during calls: 6 (default, judged -# louder and clean in calls on this phone) or 0 (stock). +# louder and clean in calls on the 7 Pro) or 0 (stock). The 9a always uses +# stock's 130 cB, with no boost. mic_boost_db = 6 diff --git a/packages/omamobile-modem-sit/lib/service.py b/packages/omamobile-modem-sit/lib/service.py index 8a92cc9c9..a7967edd1 100644 --- a/packages/omamobile-modem-sit/lib/service.py +++ b/packages/omamobile-modem-sit/lib/service.py @@ -51,7 +51,7 @@ from sit import Sit, ModemError from sms_codec import submit, received_pdu, number import carrier_manifest -from voice_audio import VoiceAudio, aoc_card +from voice_audio import AudioRefused, VoiceAudio, aoc_card STATES = {0: 'active', 1: 'held', 2: 'dialing', 3: 'ringing-out', 4: 'ringing-in', 5: 'waiting', 6: 'terminated', 7: 'held', 8: 'active'} @@ -580,7 +580,7 @@ def status(self, *, public=False): received = [r[0] for r in self.db.execute('SELECT id FROM received WHERE consumed=0 ORDER BY rowid')] return dict(modem=modem, calls=calls, sms=dict(received=['sit:' + i for i in received]), audio=dict(available=True, running=self.audio is not None, mute=self.muted, - speaker=False, speaker_available=False, error=self.audio_error)) + speaker=getattr(self.audio, 'tegu', False) is True, speaker_available=False, error=self.audio_error)) def subscribe(self, connection): """Keep an authorised connection for status events; refuse beyond diff --git a/packages/omamobile-modem-sit/lib/voice_audio.py b/packages/omamobile-modem-sit/lib/voice_audio.py index 748571e32..4b6ff2070 100644 --- a/packages/omamobile-modem-sit/lib/voice_audio.py +++ b/packages/omamobile-modem-sit/lib/voice_audio.py @@ -4,9 +4,9 @@ Uses the AoC card's voice endpoints: PCM 4 playback (EP5) and PCM 11 capture (EP4), whose numbers are the AoC entry points (AGENTS.md: the card numbers its PCMs as stock does). AoC and CP exchange audio directly; no host -recording or SRAM mapping. Amplifier protection, calibration and gain stay -with omamobile-audio: the downlink plays through TDM 0, so it needs the -amplifiers set up (stock's TDM 0 format, protection service running). +recording or SRAM mapping. On cheetah, amplifier protection, calibration +and gain stay with omamobile-audio: TDM 0 needs its amplifiers set up and +the protection service running. TDM 0 feeds both amplifiers, and the top one is the earpiece. With the protection service's earpiece mode (AOC-PLAN.md C9k) each call runs in that @@ -15,7 +15,9 @@ earpiece ceiling (top analog <= 6, AUDIO-PLAN.md section 4) and the media stage's (digital <= 737, analog <= 10, AGENTS.md). The built-in default routes no call audio; a device package whose route is verified sets -[audio] card = auto in its defaults (paths.DEVICE_DEFAULTS). +[audio] card = auto in its defaults (paths.DEVICE_DEFAULTS). Tegu instead +uses its TAS2572 speakerphone path, muted until both amplifiers read back a +conservative gain after PCM start. """ import ctypes as C import os @@ -44,6 +46,40 @@ # the watchdog stopped, muting the speakers (2026-11-03). EARPIECE_UNIT = '/usr/lib/systemd/system/omamobile-earpiece@.service' +TEGU_CARD = 'google,tegu-aoc-snd-card' +# tas2x20_dvc_table in include/sound/tas2x20-tlv.h: index 220 is unity, +# index 180 is -20 dB. Use the index, not the control's misleading dB TLV. +TEGU_GAIN = '180' +TEGU_GAINS = ('Top Speaker Digital Volume', 'Bottom Speaker Digital Volume') +TEGU_ROUTE = ( + ('Incall Sink Mute', '1'), + ('TDM_0_RX Chan', 'Four'), ('TDM_0_RX Format', 'S32_LE'), + ('TDM_0_RX Sample Rate', 'SR_48K'), + ('TDM_0_TX Chan', 'Four'), ('TDM_0_TX Format', 'S32_LE'), + ('TDM_0_TX Sample Rate', 'SR_48K'), + ('BUILDIN MIC ID CAPTURE LIST', '0,1,-1,-1'), ('MIC DC Blocker', '1'), + ('Voice Call Audio Enable', '1'), ('Voice Call Mic Source', '1'), + ('Voice Call Mic Mute', '0'), ('Incall Mic Mute', '0'), + ('AoC Modem Downlink ASRC Mode', '1'), + ('MIC HW Gain At High Power Mode (cB)', '130'), + ('MIC Record Soft Gain (dB)', '0'), + ('TDM_0_RX Mixer EP5', '1'), ('EP4 TX Mixer INTERNAL_MIC_TX', '1')) + + +class AudioRefused(RuntimeError): + """A tegu route was safely unwound; signalling may continue silently.""" + + +def is_tegu_card(card): + try: + for line in Path('/proc/asound/cards').read_text().splitlines(): + match = re.match(r'\s*(\d+)\s+\[[^]]+\]:\s*.*? - (\S+)\s*$', line) + if match and int(match[1]) == card: + return match[2] == TEGU_CARD + except OSError: + pass + return False + def aoc_card(setting='auto'): """The AoC card's index: the configured one, the card whose ALSA id or @@ -77,6 +113,11 @@ def __init__(self, *, mic_boost_db=6, card=None, earpiece=True): self.earpiece_cmd = shutil.which(EARPIECE_COMMAND) if earpiece else None if card is not None: self.card = card + self.tegu = is_tegu_card(self.card) + if self.tegu: + # The protection service's earpiece mode is the 7 Pro's CS35L41 + # route; the 9a's TAS2572 route sets its own gains. + self.earpiece_cmd = None self.saved = [] self.pcms = [] self.alsa = C.CDLL('libasound.so.2') @@ -85,6 +126,18 @@ def __init__(self, *, mic_boost_db=6, card=None, earpiece=True): C.c_uint, C.c_uint, C.c_int, C.c_uint] for name in ('snd_pcm_prepare', 'snd_pcm_start', 'snd_pcm_drop', 'snd_pcm_close', 'snd_pcm_state'): getattr(self.alsa, name).argtypes = [C.c_void_p] + if self.tegu: + self.alsa.snd_pcm_hw_params_malloc.argtypes = [C.POINTER(C.c_void_p)] + self.alsa.snd_pcm_hw_params_free.argtypes = [C.c_void_p] + for name in ('snd_pcm_hw_params_any', 'snd_pcm_hw_params'): + getattr(self.alsa, name).argtypes = [C.c_void_p, C.c_void_p] + for name in ('access', 'format', 'channels', 'rate_resample'): + getattr(self.alsa, 'snd_pcm_hw_params_set_' + name).argtypes = [ + C.c_void_p, C.c_void_p, C.c_uint] + for name in ('rate', 'periods', 'period_size'): + getattr(self.alsa, 'snd_pcm_hw_params_set_' + name).argtypes = [ + C.c_void_p, C.c_void_p, C.c_ulong if name == 'period_size' else C.c_uint, + C.c_int] def mixer(self, action, name, value=None): args = ['amixer', '-c', str(self.card), action, 'name='+name] @@ -137,6 +190,8 @@ def check_levels(self): '(the earpiece ceiling needs the top amplifier at analog 6 or less)') def __enter__(self): + if getattr(self, 'tegu', False): + return self.tegu_enter() if self.earpiece_cmd: self.earpiece(True) try: @@ -182,14 +237,86 @@ def __enter__(self): self.__exit__(None, None, None) raise + def mixer_value(self, name): + match = re.search(r'^\s*: values=([0-9,\-]+|on|off)$', self.mixer('cget', name), re.M) + if match is None: + raise RuntimeError('voice mixer state unavailable: ' + name) + return match[1] + + def tegu_params(self, pcm): + params = C.c_void_p() + self.check(self.alsa.snd_pcm_hw_params_malloc(C.byref(params)), 'params allocation') + try: + self.check(self.alsa.snd_pcm_hw_params_any(pcm, params), 'params reset') + for name, value, direction in ( + ('access', 3, None), ('format', 2, None), ('channels', 1, None), + ('rate_resample', 0, None), ('rate', 8000, 0), + ('period_size', 80, 0), ('periods', 2, 0)): + args = (pcm, params, value) + (() if direction is None else (direction,)) + self.check(getattr(self.alsa, 'snd_pcm_hw_params_set_' + name)(*args), name) + # hw_params prepares automatically. Never prepare a second time: + # preparing EP5 sends TELEPHONY_MODEM_START to the AoC. + self.check(self.alsa.snd_pcm_hw_params(pcm, params), 'params') + if self.alsa.snd_pcm_state(pcm) != 2: + raise RuntimeError('voice PCM was not prepared by hardware parameters') + finally: + self.alsa.snd_pcm_hw_params_free(params) + + def tegu_enter(self): + if self.pcms: + return self + # Read everything before changing anything. Mute is first so its + # original value is restored last, after closing the voice PCMs. + names = [name for name, _ in TEGU_ROUTE] + list(TEGU_GAINS) + saved = [(name, self.mixer_value(name)) for name in names] + self.saved = saved + try: + for name, value in TEGU_ROUTE: + self.mixer('cset', name, value) + if name == 'Incall Sink Mute' and self.mixer_value(name) not in ('1', 'on'): + raise AudioRefused('tegu call audio refused: sink mute read-back mismatch') + # Capture is ready before playback prepare starts the modem. + for device, direction in ((11, 1), (4, 0)): + pcm = C.c_void_p() + self.check(self.alsa.snd_pcm_open(C.byref(pcm), f'hw:{self.card},{device}'.encode(), + direction, 0), 'open') + self.pcms.append(pcm) + self.tegu_params(pcm) + self.check(self.alsa.snd_pcm_start(pcm), 'start') + # The codec profile resets gain at playback start. These must + # happen afterwards, while the modem downlink remains muted. + for name in TEGU_GAINS: + self.mixer('cset', name, TEGU_GAIN) + for name in TEGU_GAINS: + try: + gain = self.mixer_value(name) + except (OSError, RuntimeError, subprocess.TimeoutExpired) as error: + raise AudioRefused('tegu call audio refused: TAS gain read-back unavailable') from error + if gain != TEGU_GAIN: + raise AudioRefused('tegu call audio refused: TAS gain read-back mismatch') + self.mixer('cset', 'Incall Sink Mute', '0') + print('AoC tegu speakerphone prepared at conservative TAS gain', flush=True) + return self + except BaseException: + self.__exit__(None, None, None) + raise + def __exit__(self, *args): failures = [] + if getattr(self, 'tegu', False) and self.saved: + try: + self.mixer('cset', 'Incall Sink Mute', '1') + except (OSError, RuntimeError, subprocess.TimeoutExpired): + failures.append('Incall Sink Mute') for pcm in reversed(self.pcms): - self.alsa.snd_pcm_drop(pcm) + if self.alsa.snd_pcm_drop(pcm) < 0 and getattr(self, 'tegu', False): + failures.append('PCM drop') if self.alsa.snd_pcm_close(pcm) < 0: failures.append('PCM close') self.pcms.clear() for name, value in reversed(self.saved): + if getattr(self, 'tegu', False) and name == 'Incall Sink Mute' and failures: + continue # uncertain cleanup must leave the call sink muted try: self.mixer('cset', name, value) except (OSError, RuntimeError, subprocess.TimeoutExpired): diff --git a/packages/omamobile-modem-sit/test/test_service.py b/packages/omamobile-modem-sit/test/test_service.py index 5a8e2f5a1..5cd82e4d5 100644 --- a/packages/omamobile-modem-sit/test/test_service.py +++ b/packages/omamobile-modem-sit/test/test_service.py @@ -65,6 +65,23 @@ def test_restart_does_not_retry_pending_sms(self): other=app_service.database(self.root/'db') self.assertEqual(other.execute('SELECT state FROM outgoing').fetchone()[0],'unknown'); other.close() + def test_refused_tegu_gain_does_not_fail_call_signalling(self): + self.service.settings['audio']['card'] = 'auto' + self.client.request.side_effect = [bytes(4), b''] + with patch.object(app_service, 'aoc_card', return_value=3), \ + patch.object(app_service, 'VoiceAudio') as route: + route.return_value.__enter__.side_effect = app_service.AudioRefused('gain mismatch') + call = self.service.dispatch(dict(action='dial', number='+12025550123')) + self.assertEqual(self.service.calls[call['call']]['state'], 'dialing') + self.assertEqual([c.args[0] for c in self.client.request.call_args_list], [0x0000, 0x0d00]) + self.assertIsNone(self.service.audio) + + def test_tegu_route_is_reported_as_speakerphone(self): + self.service.audio = MagicMock(tegu=True) + self.assertTrue(self.service.status()['audio']['speaker']) + self.service.audio.tegu = False + self.assertFalse(self.service.status()['audio']['speaker']) + def test_failed_radio_off_still_requires_reboot_without_claiming_release(self): self.client.request.side_effect = TimeoutError() with patch.object(app_service, 'radio', side_effect=OSError()), \ diff --git a/packages/omamobile-modem-sit/test/test_voice_audio.py b/packages/omamobile-modem-sit/test/test_voice_audio.py index 86b2479ec..6a78e39a1 100644 --- a/packages/omamobile-modem-sit/test/test_voice_audio.py +++ b/packages/omamobile-modem-sit/test/test_voice_audio.py @@ -226,6 +226,201 @@ def test_no_aoc_card_routes_nothing(self): fake.return_value.read_text.return_value = ' 0 [Headset ]: USB-Audio - Headset\n' self.assertIsNone(voice_audio.aoc_card('auto')) + def test_tegu_detection_uses_the_selected_card_and_exact_name(self): + cards = (' 0 [Headset ]: USB-Audio - Headset\n' + ' 3 [aocsndcard ]: aoc-snd-card - google,tegu-aoc-snd-card\n') + with patch.object(voice_audio.Path, 'read_text', return_value=cards): + self.assertEqual(voice_audio.aoc_card('auto'), 3) + self.assertTrue(voice_audio.is_tegu_card(3)) + self.assertFalse(voice_audio.is_tegu_card(0)) + with patch.object(voice_audio.Path, 'read_text', return_value=cards.replace('tegu', 'cheetah')): + self.assertFalse(voice_audio.is_tegu_card(3)) + with patch.object(voice_audio.Path, 'read_text', side_effect=OSError): + self.assertFalse(voice_audio.is_tegu_card(3)) + + +class TeguAudioTests(unittest.TestCase): + def fixture(self, *, mismatch=None, unreadable=None, fail_params=False, + fail_start=False, fail_close=False, fail_mixer=None, fail_mute=False): + controls = {name: '0' for name, _ in voice_audio.TEGU_ROUTE} + controls.update({'BUILDIN MIC ID CAPTURE LIST': '0,1,-1,-1', + 'Top Speaker Digital Volume': '220', + 'Bottom Speaker Digital Volume': '210'}) + original = dict(controls) + events = [] + + class Alsa: + def __init__(self): + self.opened = 0 + self.closed = [] + self.states = {} + self.params = {} + + def snd_pcm_open(self, pointer, device, direction, mode): + self.opened += 1 + pointer._obj.value = self.opened + events.append(('open', device, direction)) + self.states[self.opened] = 0 + self.params[self.opened] = {} + return 0 + + def snd_pcm_hw_params_malloc(self, pointer): + pointer._obj.value = 100 + return 0 + + def snd_pcm_hw_params_free(self, pointer): + events.append(('free_params', pointer.value)) + + def snd_pcm_hw_params_any(self, pcm, params): + return 0 + + def __getattr__(self, name): + if not name.startswith('snd_pcm_hw_params_set_'): + raise AttributeError(name) + def setter(pcm, params, value, *direction): + self.params[pcm.value][name.removeprefix('snd_pcm_hw_params_set_')] = (value, direction) + return 0 + return setter + + def snd_pcm_hw_params(self, pcm, params): + if fail_params and pcm.value == 2: + return -5 + # ALSA prepares as part of hw_params; no explicit second + # prepare is allowed. Playback's profile resets TAS gains. + events.append(('prepare', pcm.value)) + self.states[pcm.value] = 2 + if pcm.value == 2: + for name in voice_audio.TEGU_GAINS: + controls[name] = '220' + return 0 + + def snd_pcm_prepare(self, pcm): + raise AssertionError('duplicate modem prepare') + + def snd_pcm_state(self, pcm): + return self.states[pcm.value] + + def snd_pcm_start(self, pcm): + events.append(('start', pcm.value)) + if fail_start and pcm.value == 2: + return -5 + self.states[pcm.value] = 3 + return 0 + + def snd_pcm_drop(self, pcm): + events.append(('drop', pcm.value)) + return 0 + + def snd_pcm_close(self, pcm): + events.append(('close', pcm.value)) + self.closed.append(pcm.value) + return -5 if fail_close else 0 + + audio = VoiceAudio.__new__(VoiceAudio) + audio.tegu = True + audio.card = 3 + audio.mic_boost_db = 6 # ignored on tegu: stock 130 cB only + audio.saved, audio.pcms = [], [] + audio.alsa = Alsa() + failed = False + + def mixer(action, name, value=None): + nonlocal failed + events.append((action, name, value)) + if action == 'cget': + if controls[name] == voice_audio.TEGU_GAIN: + if name == unreadable: + return ' : values=unavailable\n' + if name == mismatch: + return ' : values=220\n' + return ' : values=' + controls[name] + '\n' + if name == fail_mixer and not failed: + failed = True + raise RuntimeError('mixer failed') + if fail_mute and name == 'Incall Sink Mute' and value == '1': + return '' + controls[name] = value + return '' + + audio.mixer = mixer + return audio, events, controls, original + + def test_route_uses_exact_voice_params_and_checks_gain_before_unmuting(self): + audio, events, controls, original = self.fixture() + with audio: + self.assertIs(audio.__enter__(), audio) # no second PCM start + for name, value in voice_audio.TEGU_ROUTE: + if name != 'Incall Sink Mute': + self.assertEqual(controls[name], value) + self.assertEqual(controls['MIC HW Gain At High Power Mode (cB)'], '130') + self.assertEqual([e for e in events if e[0] == 'open'], + [('open', b'hw:3,11', 1), ('open', b'hw:3,4', 0)]) + self.assertEqual([e for e in events if e[0] == 'prepare'], [('prepare', 1), ('prepare', 2)]) + self.assertEqual([e for e in events if e[0] == 'start'], [('start', 1), ('start', 2)]) + expected = {'access': (3, ()), 'format': (2, ()), 'channels': (1, ()), + 'rate_resample': (0, ()), 'rate': (8000, (0,)), + 'period_size': (80, (0,)), 'periods': (2, (0,))} + self.assertEqual(audio.alsa.params, {1: expected, 2: expected}) + last_start = events.index(('start', 2)) + unmute = events.index(('cset', 'Incall Sink Mute', '0')) + for name in voice_audio.TEGU_GAINS: + gain = events.index(('cset', name, '180')) + read = events.index(('cget', name, None), gain) + self.assertLess(last_start, gain) + self.assertLess(gain, read) + self.assertLess(read, unmute) + self.assertEqual(audio.alsa.closed, [2, 1]) + self.assertEqual(controls, original) + self.assertEqual(events[-1], ('cset', 'Incall Sink Mute', '0')) + self.assertFalse(audio.saved or audio.pcms) + + def test_partial_pcm_or_mixer_failure_restores_saved_state(self): + for failure in ({'fail_params': True}, {'fail_start': True}, + {'fail_mixer': 'TDM_0_RX Mixer EP5'}, + {'fail_mixer': 'Bottom Speaker Digital Volume'}): + with self.subTest(failure=failure): + audio, events, controls, original = self.fixture(**failure) + with self.assertRaises(RuntimeError): + audio.__enter__() + self.assertEqual(controls, original) + self.assertEqual(len(audio.alsa.closed), audio.alsa.opened) + self.assertFalse(audio.saved or audio.pcms) + + def test_unconfirmed_sink_mute_refuses_before_opening_pcms(self): + audio, _, controls, original = self.fixture(fail_mute=True) + with self.assertRaisesRegex(voice_audio.AudioRefused, 'sink mute'): + audio.__enter__() + self.assertEqual(audio.alsa.opened, 0) + self.assertEqual(controls, original) + + def test_gain_mismatch_or_unreadable_gain_refuses_audio_and_closes_before_restore(self): + for option in ('mismatch', 'unreadable'): + for name in voice_audio.TEGU_GAINS: + with self.subTest(option=option, control=name): + audio, events, controls, original = self.fixture(**{option: name}) + with self.assertRaises(voice_audio.AudioRefused): + audio.__enter__() + # Restoring the original mute is safe only after both + # voice PCMs have closed; no failed route is audible. + unmute = events.index(('cset', 'Incall Sink Mute', '0')) + self.assertLess(events.index(('close', 1)), unmute) + self.assertEqual(controls, original) + self.assertEqual(audio.alsa.closed, [2, 1]) + + def test_body_failure_restores_state(self): + audio, _, controls, original = self.fixture() + with self.assertRaisesRegex(RuntimeError, 'call failed'): + with audio: + raise RuntimeError('call failed') + self.assertEqual(controls, original) + self.assertEqual(audio.alsa.closed, [2, 1]) + + def test_failed_close_keeps_sink_muted(self): + audio, _, controls, _ = self.fixture(fail_close=True) + audio.__enter__() + with self.assertRaisesRegex(RuntimeError, 'PCM close'): + audio.__exit__(None, None, None) + self.assertEqual(controls['Incall Sink Mute'], '1') class EarpieceUnitTests(unittest.TestCase): def test_the_mode_goes_through_the_units_when_installed(self): From d5b1f69e6f93f8869075744a59110df54fc9c717 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Mon, 2 Nov 2026 18:08:16 -0647 Subject: [PATCH 2/3] device/tegu MODEM-PLAN, DEVICES: the 9a's first calls Outgoing and incoming speakerphone calls with audio both ways, first on the daily kernel and then on in-tree drivers from the open kernel PRs, where data and a text ran too. The Modem cell says so, and what's left: echo cancellation, an earpiece, the modem's start at boot and the kernel PRs' merge. --- device/tegu/MODEM-PLAN.md | 29 ++++++++++++++++++++++++++++- docs/DEVICES.md | 2 +- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/device/tegu/MODEM-PLAN.md b/device/tegu/MODEM-PLAN.md index 57be5e12c..1d38749e4 100644 --- a/device/tegu/MODEM-PLAN.md +++ b/device/tegu/MODEM-PLAN.md @@ -2017,11 +2017,38 @@ is a US MVNO on a large LTE network. (`omamobile-sit sms send`) reached the owner's phone. A text sent to the palmtop's own number was accepted ("sent") and never came back, which is common on this network. -- **SIM-10:** no call; the 9a has no audio route. +- **SIM-10:** no call on 11-02; the 9a had no audio route. See "Calls" + below. - **SIM-11 passed:** radio off, the RIL stopped, an attended reboot (the unit's stop powered the CP off during shutdown), then M0.1: the six partitions unchanged, `cpif` not loaded, UFS error handler 0. +#### Calls (2026-11-03) + +With `omamobile-modem-sit` 0.3.11 (speakerphone audio for the 9a's AoC +card, omarchy-mobile #367, on #364 and #356) and `[audio] card = auto`: + +- **On the daily kernel:** an outgoing call to the owner's phone, answered; + the far end's voice came out of the palmtop's speaker, and the palmtop's + microphone carried it back (heard at the far end as an echo: there is no + echo cancellation yet). A second outgoing call and an incoming call + (`omamobile-sit answer` while it rang) behaved the same. sitd logged + "AoC tegu speakerphone prepared at conservative TAS gain" at each start + and "AoC call routes restored" after each hang-up; UFS error handler 0. +- **On in-tree drivers end to end** (`7.3.0-rc6-omamobile-push1-g253ddb231a89`: + `omamobile` plus the open kernel PRs: the modem link #187 with its PCIe + stack, GNSS #185, and #162's AoC, GSA and Trusty from the device tree): + the AoC up with 93 services and the `google,tegu-aoc-snd-card` card, + CPIF and the in-tree host booted the CP to ONLINE, and then an outgoing + and an incoming call with audio both ways, mobile data over `rmnet0` + (pings, HTTPS 200) and a text that arrived. The TAS gains read back at + -20 dB during the calls, the mixer routes matched their saved state + after, the AoC kept 93 services with nothing in its log, the same boot + throughout, no oops or WARN, no UFS errors. + +Left for calls: echo cancellation on speakerphone, an earpiece mode, the +Phone app (through `omamobile-mmd`), and starting the modem at boot. + The run kept the full refused record (292 bytes: status 36, CID 1, the IPC extension version at 132, an unidentified extension byte at 133, the suggested retry time at 235-242 as an s64) and the raw indications of the passing run in diff --git a/docs/DEVICES.md b/docs/DEVICES.md index ab8e931f6..a0683d4af 100644 --- a/docs/DEVICES.md +++ b/docs/DEVICES.md @@ -25,7 +25,7 @@ The status of each device, as verified on real hardware. Rows in the matrix have | Pixel 6 | oriole | gs101 (Tensor G1) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); native test image on one phone; slot B marked successful and `vbmeta_b` verification turned off, both without project approval; see notes) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); guarded `userdata` root on test image) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); connected output on test image) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); Panfrost render node present) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); touchscreen detected; input not checked by smoke) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); gpio-keys detected; input not checked by smoke) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); USB network and SSH on test image) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); link up; traffic not checked by smoke) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); controller powered; pairing not checked) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); charge and temperature reported) | WIP ([unpublished kernel/packages](../device/oriole/NOTES.md#2026-10-31-build-provenance-and-recovery-limits); charging reported; control not checked) | no | no | no | no | no | no | no | no | no | no | no | | Pixel 4 | flame | SM8150 (Snapdragon 855) | testing (temporary RAM boot; [notes](../device/flame/BRINGUP-M1.md)) | testing (RAM probe; all UFS read-only) | testing (1080x2280 console; software desktop in separate Arch payload) | testing (separate Arch payload; FD640 contexts, llvmpipe desktop) | testing (separate Arch payload; events and PIN unlock verified) | no | testing (NCM + ACM + SSH; sustained transfers can disconnect) | testing (guarded RAM scan; association untested) | no | no | no | no | no | no | - | no | no | no | no | no | no | - | | Pixel 4 XL ([notes](../device/coral/NOTES.md)) | coral | SM8150 (Snapdragon 855) | WIP (direct ABL v2 boot on the test handset's slot A; slot-B install and ยง3.1 entry pending; [notes](../device/coral/BRINGUP-M1.md)) | testing (read-only `blockdev` guard + RAM `overlayfs`) | testing (1440x3040@60Hz S6E3HC2 DSC 1.1 KMS, DPMS, brightness) | testing (Adreno 640 / FD640 Mesa Freedreno, Hyprland) | testing (FTS SPI multitouch + read-only flash guard) | testing (power via `qcom-pon` + volume via `gpio-keys`) | testing (CDC ECM + ACM + SSH; stays up with host USB switched off) | testing (`WCN3990` `ath10k_snoc` + `rmtfs -r`, WPA2/DHCP/HTTPS; radio sessions ran before the modem baseline) | WIP (`WCN3990` `hci_qca` `hci0` up + BLE scan; audio/pairing open) | WIP (PM8150B ADC `VBAT_SNS` voltage + FG temp; aftermarket pack on test unit: no reply from `1-0036`) | testing (PM8150B SMB5 charger with `4.20 V` / `500 mA` kernel clamp) | testing (`CS40L25A` I2C click waveform) | testing (PM8150L flash LEDs + quick-settings tile) | no | - | testing (QDSP6 + dual `CS35L36` amps capped at `-26 dB` + `IA8508` SPI mic DSP) | testing (`SLPI` + `fastrpc` + RAM-backed `hexagonrpcd` + QMI SSC: 7 sensors + Soli radar) | WIP (`MPSS` boots with `rmtfs -r` + patched `tqftpserv`, SIM detected; no IPA/voice yet; radio sessions ran before the modem baseline) | no | testing (`CAMSS` + `IMX363`, `IMX481`, `IMX520`, dual `OV7251` NIR; `libcamera` softISP) | no | - | -| Pixel 9a ([notes](../device/tegu/NOTES.md)) | tegu | zumapro (Tensor G4) | works ([#28](https://github.com/derekross/omarchy-mobile/issues/28): native boot from slot B, the Arch root on `userdata`, `omamobile-device-tegu`; slot B was marked successful by hand on 2026-10-28 with the `devinfo` write approved on 2026-10-22, now on hold ([#125](https://github.com/derekross/omarchy-mobile/pull/125)), unmarked by the 10-31 fastboot recovery and marked again on 2026-10-31 during the hold ([record](../device/tegu/NOTES.md#2026-10-31-a-fastboot-flash-of-slot-b-cleared-its-successful-mark-and-b-was-marked-again)), and the package does not mark it; unpublished kernel: the SoC and board device tree is [kernel #81](https://github.com/derekross/linux-omarchy-mobile/pull/81), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (UFS behind the read-only guard; unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (120 Hz through gs-decon; the panel driver [kernel #89](https://github.com/derekross/linux-omarchy-mobile/pull/89), 120 Hz [kernel #88](https://github.com/derekross/linux-omarchy-mobile/pull/88), merged, the display DT, merged with [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96); brightness, DPMS off and on and the 60/120 Hz switch on the boot of [kernel #125](https://github.com/derekross/linux-omarchy-mobile/pull/125), merged, which also checks the panel's ID; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on), [brightness record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) | works (Panthor, the desktop renders, runtime suspend when idle; this boot runs at a fixed 160 MHz, so frequency scaling and the GPU thermal zone count as in review, [kernel #85](https://github.com/derekross/linux-omarchy-mobile/pull/85) in review, [kernel #87](https://github.com/derekross/linux-omarchy-mobile/pull/87) in review; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (Synaptics S3908 over SPI, [kernel #81](https://github.com/derekross/linux-omarchy-mobile/pull/81), merged; survives sleep, [kernel #82](https://github.com/derekross/linux-omarchy-mobile/pull/82), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (gpio-keys: power and volume; the power key wakes from sleep; unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (CDC NCM and SSH; reconnects after a replug, `omamobile-tegu-usb-rescue`, also after a replug the gadget didn't see ([#280](https://github.com/derekross/omarchy-mobile/pull/280); [the replug record](../device/tegu/NOTES.md#2026-10-28-what-the-device-tables-claims-rest-on)); [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (BCM4383 on PCIe channel 1 through the shared gs201 host and zuma PHY, [kernel #178](https://github.com/derekross/linux-omarchy-mobile/pull/178) on [kernel #156](https://github.com/derekross/linux-omarchy-mobile/pull/156), in review, and brcmfmac, [kernel #56](https://github.com/derekross/linux-omarchy-mobile/pull/56) in review; started at boot by `omamobile-device-tegu` 0.2.4 ([#238](https://github.com/derekross/omarchy-mobile/pull/238)) with the extractor's firmware; WPA2 with iwd, kept loaded across sleep by the package's sleep hook; [record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) | works (hci_uart on the bootloader's address, BlueZ, A2DP; [kernel #94](https://github.com/derekross/linux-omarchy-mobile/pull/94); unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (MAX77779 gauge with temperature, current and time estimates through UPower; [kernel #66](https://github.com/derekross/linux-omarchy-mobile/pull/66); unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (the MAX77779 charger binds from the device tree, [kernel #161](https://github.com/derekross/linux-omarchy-mobile/pull/161), merged, built by [#227](https://github.com/derekross/omarchy-mobile/pull/227); the charge limit in `omamobile-device-tegu` 0.2.3 holds charging off at the limit through `charge_behaviour` and lets it run again 5 below; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (CS40L26A through feedbackd, with brownout prevention, [kernel #95](https://github.com/derekross/linux-omarchy-mobile/pull/95); its DT [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (LM3644, 25 steps to 75 mA, quick-settings tile; its DT [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | testing (Omarchy's Location switch serves fixes from GPS, Galileo, BeiDou and GLONASS once the modem is up, started by hand: a 30-minute session through the switch on 2026-11-01 (omamobile-gnss 0.2.5's start, the modem link left to cycle) ran clean, 1763 of 1765 GGA sentences fixed, first fix 37 s after a client connected; needs [kernel #150](https://github.com/derekross/linux-omarchy-mobile/pull/150), merged, the PERIC0 clock fix [kernel #172](https://github.com/derekross/linux-omarchy-mobile/pull/172) in review (without it the modem link hung the palmtop within minutes) and [#114](https://github.com/derekross/omarchy-mobile/pull/114); [plan](../device/tegu/MODEM-PLAN.md), record with [#202](https://github.com/derekross/omarchy-mobile/pull/202)) | works (audio and sensor DSP through the GSA and Trusty, 93 services, started at boot by `omamobile-device-tegu` 0.2.3 from the device tree, [kernel #162](https://github.com/derekross/linux-omarchy-mobile/pull/162) in review; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (the TAS2572 amplifiers and the microphone through the AoC card and PipeWire, at boot with the AoC: a tone from the speaker, the microphone at -32 dBFS; speakers at a -10 dB ceiling; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (accelerometer, light, proximity, compass and gyroscope through the AoC and the sensor proxy, at boot with the AoC; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | WIP (on the owner's kernel, 2026-11-02: registered on LTE, mobile data over `rmnet0` and texts both ways with `omamobile-modem-sit` 0.3.8 ([#356](https://github.com/derekross/omarchy-mobile/pull/356)); the package doesn't start the modem, CPIF isn't in the published kernel, and calls have no audio route; [plan](../device/tegu/MODEM-PLAN.md), [record](../device/tegu/MODEM-PLAN.md#sim-test-results-2026-11-02-730-rc6-omamobile-tegu-s2mpg15-m1-g991042e2eff3-dirty)) | works (NXP ST54L through nxp-nci, its clock pad from the PMU ([kernel #104](https://github.com/derekross/linux-omarchy-mobile/pull/104) and [kernel #105](https://github.com/derekross/linux-omarchy-mobile/pull/105), merged, with [kernel #131](https://github.com/derekross/linux-omarchy-mobile/pull/131), merged), loaded at boot by `omamobile-device-tegu` 0.2.3 with neard and the link opener: polls with no I2C errors and read a payment card; polling stops before sleep; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (main, ultrawide and front from the device tree, [kernel #164](https://github.com/derekross/linux-omarchy-mobile/pull/164) in review, with [kernel #63](https://github.com/derekross/linux-omarchy-mobile/pull/63) and [kernel #103](https://github.com/derekross/linux-omarchy-mobile/pull/103) in review: their drivers load at boot with nothing by hand, libcamera lists all three, and each streams, main at 19 fps and the others at 30 fps at 1280x960; basic picture quality through libcamera's software ISP; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | testing (s2idle when asked for, or through the shell's auto-sleep with the `omamobile-sleep` toggle on, which ships off; the power key lights the lock screen on the first press ([#268](https://github.com/derekross/omarchy-mobile/pull/268), [#275](https://github.com/derekross/omarchy-mobile/pull/275)), and the RTC wakes it; on 2026-11-01 thirty attended 120 s sleeps ([plan](../device/tegu/SLEEP-PLAN.md) S1) and a day of real use with auto-sleep on ([record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) all woke, but six test sleeps since 10-28 did not (one in 21 on the clock-fix kernel on 11-01, and one in 127 in an overnight series of 120 s sleeps on 11-01 to 11-02), so sleep tests stay attended ([plan](../device/tegu/SLEEP-PLAN.md) S1); the drain is about 300 mA asleep, the same as awake with the screen off, because nothing below the CPUs sleeps yet; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (opt-in) (enrolls, matches, refuses other fingers and unlocks the lock screen through Trusty and `omamobile-fingerprint`, 2026-10-29; the sensor binds from the device tree, [kernel #165](https://github.com/derekross/linux-omarchy-mobile/pull/165) in review, with [kernel #126](https://github.com/derekross/linux-omarchy-mobile/pull/126), merged; opt-in as on the 7 Pro, because the service's first run writes Trusty's secure storage; [plan](../device/tegu/FINGERPRINT-PLAN.md), [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | +| Pixel 9a ([notes](../device/tegu/NOTES.md)) | tegu | zumapro (Tensor G4) | works ([#28](https://github.com/derekross/omarchy-mobile/issues/28): native boot from slot B, the Arch root on `userdata`, `omamobile-device-tegu`; slot B was marked successful by hand on 2026-10-28 with the `devinfo` write approved on 2026-10-22, now on hold ([#125](https://github.com/derekross/omarchy-mobile/pull/125)), unmarked by the 10-31 fastboot recovery and marked again on 2026-10-31 during the hold ([record](../device/tegu/NOTES.md#2026-10-31-a-fastboot-flash-of-slot-b-cleared-its-successful-mark-and-b-was-marked-again)), and the package does not mark it; unpublished kernel: the SoC and board device tree is [kernel #81](https://github.com/derekross/linux-omarchy-mobile/pull/81), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (UFS behind the read-only guard; unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (120 Hz through gs-decon; the panel driver [kernel #89](https://github.com/derekross/linux-omarchy-mobile/pull/89), 120 Hz [kernel #88](https://github.com/derekross/linux-omarchy-mobile/pull/88), merged, the display DT, merged with [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96); brightness, DPMS off and on and the 60/120 Hz switch on the boot of [kernel #125](https://github.com/derekross/linux-omarchy-mobile/pull/125), merged, which also checks the panel's ID; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on), [brightness record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) | works (Panthor, the desktop renders, runtime suspend when idle; this boot runs at a fixed 160 MHz, so frequency scaling and the GPU thermal zone count as in review, [kernel #85](https://github.com/derekross/linux-omarchy-mobile/pull/85) in review, [kernel #87](https://github.com/derekross/linux-omarchy-mobile/pull/87) in review; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (Synaptics S3908 over SPI, [kernel #81](https://github.com/derekross/linux-omarchy-mobile/pull/81), merged; survives sleep, [kernel #82](https://github.com/derekross/linux-omarchy-mobile/pull/82), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (gpio-keys: power and volume; the power key wakes from sleep; unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (CDC NCM and SSH; reconnects after a replug, `omamobile-tegu-usb-rescue`, also after a replug the gadget didn't see ([#280](https://github.com/derekross/omarchy-mobile/pull/280); [the replug record](../device/tegu/NOTES.md#2026-10-28-what-the-device-tables-claims-rest-on)); [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (BCM4383 on PCIe channel 1 through the shared gs201 host and zuma PHY, [kernel #178](https://github.com/derekross/linux-omarchy-mobile/pull/178) on [kernel #156](https://github.com/derekross/linux-omarchy-mobile/pull/156), in review, and brcmfmac, [kernel #56](https://github.com/derekross/linux-omarchy-mobile/pull/56) in review; started at boot by `omamobile-device-tegu` 0.2.4 ([#238](https://github.com/derekross/omarchy-mobile/pull/238)) with the extractor's firmware; WPA2 with iwd, kept loaded across sleep by the package's sleep hook; [record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) | works (hci_uart on the bootloader's address, BlueZ, A2DP; [kernel #94](https://github.com/derekross/linux-omarchy-mobile/pull/94); unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (MAX77779 gauge with temperature, current and time estimates through UPower; [kernel #66](https://github.com/derekross/linux-omarchy-mobile/pull/66); unpublished kernel; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (the MAX77779 charger binds from the device tree, [kernel #161](https://github.com/derekross/linux-omarchy-mobile/pull/161), merged, built by [#227](https://github.com/derekross/omarchy-mobile/pull/227); the charge limit in `omamobile-device-tegu` 0.2.3 holds charging off at the limit through `charge_behaviour` and lets it run again 5 below; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (CS40L26A through feedbackd, with brownout prevention, [kernel #95](https://github.com/derekross/linux-omarchy-mobile/pull/95); its DT [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (LM3644, 25 steps to 75 mA, quick-settings tile; its DT [kernel #96](https://github.com/derekross/linux-omarchy-mobile/pull/96), merged; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | testing (Omarchy's Location switch serves fixes from GPS, Galileo, BeiDou and GLONASS once the modem is up, started by hand: a 30-minute session through the switch on 2026-11-01 (omamobile-gnss 0.2.5's start, the modem link left to cycle) ran clean, 1763 of 1765 GGA sentences fixed, first fix 37 s after a client connected; needs [kernel #150](https://github.com/derekross/linux-omarchy-mobile/pull/150), merged, the PERIC0 clock fix [kernel #172](https://github.com/derekross/linux-omarchy-mobile/pull/172) in review (without it the modem link hung the palmtop within minutes) and [#114](https://github.com/derekross/omarchy-mobile/pull/114); [plan](../device/tegu/MODEM-PLAN.md), record with [#202](https://github.com/derekross/omarchy-mobile/pull/202)) | works (audio and sensor DSP through the GSA and Trusty, 93 services, started at boot by `omamobile-device-tegu` 0.2.3 from the device tree, [kernel #162](https://github.com/derekross/linux-omarchy-mobile/pull/162) in review; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (the TAS2572 amplifiers and the microphone through the AoC card and PipeWire, at boot with the AoC: a tone from the speaker, the microphone at -32 dBFS; speakers at a -10 dB ceiling; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (accelerometer, light, proximity, compass and gyroscope through the AoC and the sensor proxy, at boot with the AoC; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | WIP (registered on LTE, mobile data over `rmnet0`, texts both ways and speakerphone calls in and out with `omamobile-modem-sit` ([#356](https://github.com/derekross/omarchy-mobile/pull/356), [#367](https://github.com/derekross/omarchy-mobile/pull/367)), on the owner's kernel and on in-tree drivers from the open kernel PRs ([kernel #187](https://github.com/derekross/linux-omarchy-mobile/pull/187), [kernel #162](https://github.com/derekross/linux-omarchy-mobile/pull/162)); the package doesn't start the modem, the kernel PRs aren't merged, and calls have no echo cancellation or earpiece yet; [plan](../device/tegu/MODEM-PLAN.md), [record](../device/tegu/MODEM-PLAN.md#sim-test-results-2026-11-02-730-rc6-omamobile-tegu-s2mpg15-m1-g991042e2eff3-dirty)) | works (NXP ST54L through nxp-nci, its clock pad from the PMU ([kernel #104](https://github.com/derekross/linux-omarchy-mobile/pull/104) and [kernel #105](https://github.com/derekross/linux-omarchy-mobile/pull/105), merged, with [kernel #131](https://github.com/derekross/linux-omarchy-mobile/pull/131), merged), loaded at boot by `omamobile-device-tegu` 0.2.3 with neard and the link opener: polls with no I2C errors and read a payment card; polling stops before sleep; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | works (main, ultrawide and front from the device tree, [kernel #164](https://github.com/derekross/linux-omarchy-mobile/pull/164) in review, with [kernel #63](https://github.com/derekross/linux-omarchy-mobile/pull/63) and [kernel #103](https://github.com/derekross/linux-omarchy-mobile/pull/103) in review: their drivers load at boot with nothing by hand, libcamera lists all three, and each streams, main at 19 fps and the others at 30 fps at 1280x960; basic picture quality through libcamera's software ISP; [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | testing (s2idle when asked for, or through the shell's auto-sleep with the `omamobile-sleep` toggle on, which ships off; the power key lights the lock screen on the first press ([#268](https://github.com/derekross/omarchy-mobile/pull/268), [#275](https://github.com/derekross/omarchy-mobile/pull/275)), and the RTC wakes it; on 2026-11-01 thirty attended 120 s sleeps ([plan](../device/tegu/SLEEP-PLAN.md) S1) and a day of real use with auto-sleep on ([record](../device/tegu/NOTES.md#2026-11-01-afternoon-and-evening-wi-fi-from-the-package-the-wake-and-the-replug-storage-idle-the-panel-id)) all woke, but six test sleeps since 10-28 did not (one in 21 on the clock-fix kernel on 11-01, and one in 127 in an overnight series of 120 s sleeps on 11-01 to 11-02), so sleep tests stay attended ([plan](../device/tegu/SLEEP-PLAN.md) S1); the drain is about 300 mA asleep, the same as awake with the screen off, because nothing below the CPUs sleeps yet; [record](../device/tegu/NOTES.md#2026-10-29-the-device-package-boot-and-what-this-row-rests-on)) | works (opt-in) (enrolls, matches, refuses other fingers and unlocks the lock screen through Trusty and `omamobile-fingerprint`, 2026-10-29; the sensor binds from the device tree, [kernel #165](https://github.com/derekross/linux-omarchy-mobile/pull/165) in review, with [kernel #126](https://github.com/derekross/linux-omarchy-mobile/pull/126), merged; opt-in as on the 7 Pro, because the service's first run writes Trusty's secure storage; [plan](../device/tegu/FINGERPRINT-PLAN.md), [record](../device/tegu/NOTES.md#2026-10-31-and-11-01-every-testing-row-on-a-published-style-kernel)) | | Pixel 8 Pro ([notes](../device/husky/NOTES.md)) | husky | zuma (Tensor G3) | WIP ([#1](https://github.com/derekross/omarchy-mobile/issues/1): slot B, not marked successful; Omarchy's image from the signed repository boots to the lock screen; the zuma device tree is merged ([kernel #13](https://github.com/derekross/linux-omarchy-mobile/pull/13), [#53](https://github.com/derekross/linux-omarchy-mobile/pull/53))) | testing (UFS at HS-G4 behind the read-only guard; Arch on `userdata`; [UFS-PLAN](../device/husky/UFS-PLAN.md)) | WIP (simple-framebuffer: console and Omarchy's lock screen) | no | testing (ST FTM5 over SPI, merged, [kernel #153](https://github.com/derekross/linux-omarchy-mobile/pull/153); [NOTES](../device/husky/NOTES.md)) | testing (power and volume through `gpio-keys`, merged, [kernel #148](https://github.com/derekross/linux-omarchy-mobile/pull/148); [NOTES](../device/husky/NOTES.md)) | testing (USB and SSH) | testing (BCM4398 on a test kernel, [kernel #156](https://github.com/derekross/linux-omarchy-mobile/pull/156); firmware from the owner's image, [#214](https://github.com/derekross/omarchy-mobile/pull/214); [NOTES](../device/husky/NOTES.md)) | no | testing (gauge with Google's ATL model through a bring-up overlay, temperature, MFD, on a test kernel, [kernel #163](https://github.com/derekross/linux-omarchy-mobile/pull/163); [notes](../device/husky/BATTERY-NOTES.md)) | testing (the charger driver by hand under a dead-man tool, slow on plain 5 V, on a test kernel, [kernel #163](https://github.com/derekross/linux-omarchy-mobile/pull/163); [notes](../device/husky/BATTERY-NOTES.md)) | no | no | no | no | no | no | no | no | no | no | no | | Pixel 7 ([notes](../device/panther/NOTES.md)) | panther | gs201 (Tensor G2) | WIP (slot B, not marked successful; Arch and Hyprland boot; [BRINGUP-M1](../device/panther/BRINGUP-M1.md); board file merged, [kernel #108](https://github.com/derekross/linux-omarchy-mobile/pull/108)) | testing (UFS behind the read-only guard; Arch on `userdata`; merged, [kernel #108](https://github.com/derekross/linux-omarchy-mobile/pull/108)) | WIP (simple-framebuffer: console and the Hyprland desktop; brightness and display off/on over DCS through the S6E3FC3 panel driver and device-panther 0.1.4, in review, [kernel #177](https://github.com/derekross/linux-omarchy-mobile/pull/177); [DISPLAY-PLAN](../device/panther/DISPLAY-PLAN.md)) | testing (Panthor on the Mali-G710; Hyprland renders on it; merged through [kernel #134](https://github.com/derekross/linux-omarchy-mobile/pull/134), with the always-on rule in device-panther 0.1.1, [#145](https://github.com/derekross/omarchy-mobile/pull/145); [notes](../device/panther/NOTES.md#2026-10-28-the-gpu-and-the-haptics-power-off-and-usb-after-a-replug)) | WIP (FocalTech FT3658: touches drive Hyprland and unlock the PIN screen on a test kernel; the driver, [kernel #109](https://github.com/derekross/linux-omarchy-mobile/pull/109), and the touch node, [kernel #134](https://github.com/derekross/linux-omarchy-mobile/pull/134), are merged; stock's interrupt pull-up and CS delay, [kernel #166](https://github.com/derekross/linux-omarchy-mobile/pull/166), the driver's review fixes, [kernel #133](https://github.com/derekross/linux-omarchy-mobile/pull/133), and the kernel option with the touch notes, [#149](https://github.com/derekross/omarchy-mobile/pull/149), are merged) | testing (gpio-keys: power, volume; merged, [kernel #108](https://github.com/derekross/linux-omarchy-mobile/pull/108)) | testing (USB and SSH; merged, [kernel #108](https://github.com/derekross/linux-omarchy-mobile/pull/108); a replug comes back through `omamobile-usb-rescue` in device-panther 0.1.3, on the MAX77759's I2C bus, merged, [kernel #167](https://github.com/derekross/linux-omarchy-mobile/pull/167); [notes](../device/panther/NOTES.md#2026-10-29-usb-comes-back-after-a-replug-u1)) | no | no | WIP (MAX77759 fuel gauge with stock's battery model on a test kernel: percentage, capacity and temperature in upower and the bar; in review, [kernel #171](https://github.com/derekross/linux-omarchy-mobile/pull/171) and the driver fix [#170](https://github.com/derekross/linux-omarchy-mobile/pull/170); [BATTERY-PLAN](../device/panther/BATTERY-PLAN.md)) | no | testing (CS40L26 with the phone's own firmware, `tools/extract-vendor-firmware -d panther`; merged through [kernel #134](https://github.com/derekross/linux-omarchy-mobile/pull/134), with the feedbackd rule in device-panther 0.1.1, [#145](https://github.com/derekross/omarchy-mobile/pull/145); [notes](../device/panther/NOTES.md#2026-10-28-the-gpu-and-the-haptics-power-off-and-usb-after-a-replug)) | no | no | no | no | no | no | no | no | no (s2idle by default since [kernel #134](https://github.com/derekross/linux-omarchy-mobile/pull/134) and device-panther 0.1.1; not run yet) | no | | OnePlus 13 ([notes](../device/dodge/NOTES.md)) | dodge | sm8750 (Snapdragon 8 Elite) | testing (kernel [mrlund/linux-omarchy-mobile `dodge-v3-20261101`](https://github.com/mrlund/linux-omarchy-mobile/tree/dodge-v3-20261101); [kernel #115](https://github.com/derekross/linux-omarchy-mobile/pull/115) closed; [BRINGUP](../device/dodge/BRINGUP-M1.md), [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing ([notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (msm/dpu; warm-boot drop fixed; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (Adreno 830 / gpu2; Vulkan untested; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing ([notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing ([notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (CDC NCM + SSH; gadget stuck after replug until reboot; kernel [mrlund/linux-omarchy-mobile `dodge-v3-20261101`](https://github.com/mrlund/linux-omarchy-mobile/tree/dodge-v3-20261101); [kernel #115](https://github.com/derekross/linux-omarchy-mobile/pull/115) closed; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (WCN7860 / ath12k; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (pairing; A2DP untested; kernel [mrlund/linux-omarchy-mobile `dodge-v3-20261101`](https://github.com/mrlund/linux-omarchy-mobile/tree/dodge-v3-20261101); [kernel #115](https://github.com/derekross/linux-omarchy-mobile/pull/115) closed; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (gauge; charging path not claimed; kernel [mrlund/linux-omarchy-mobile `dodge-v3-20261101`](https://github.com/mrlund/linux-omarchy-mobile/tree/dodge-v3-20261101); [kernel #115](https://github.com/derekross/linux-omarchy-mobile/pull/115) closed; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | no | no | no | no | - | testing (speakers, earpiece, mics; headset plug untested; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (accel, prox, compass; autorotate; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | testing (LTE data; calls/SMS untested; opt-in flag; [modem](../device/dodge/modem/README.md), [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | no | no | WIP (s2idle not default; [notes](../device/dodge/NOTES.md#2026-10-28-matrix-evidence)) | no | From 59e2507abf973414ffd5afb64f346e655549a9bc Mon Sep 17 00:00:00 2001 From: Derek Ross Date: Thu, 5 Nov 2026 15:58:15 -0500 Subject: [PATCH 3/3] omamobile-modem-sit 0.3.31: the next free version (0.3.30 is #416's on main) --- packages/omamobile-modem-sit/version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/omamobile-modem-sit/version b/packages/omamobile-modem-sit/version index cfa5015f6..f18b7fb98 100644 --- a/packages/omamobile-modem-sit/version +++ b/packages/omamobile-modem-sit/version @@ -1 +1 @@ -0.3.30 +0.3.31