Skip to content

Add a J456 iMac microphone fallback - #478

Draft
e-jung wants to merge 1 commit into
omacom:quattrofrom
e-jung:fix/j456-microphone-fallback
Draft

e-jung wants to merge 1 commit into
omacom:quattrofrom
e-jung:fix/j456-microphone-fallback

Conversation

@e-jung

@e-jung e-jung commented Sep 19, 2026

Copy link
Copy Markdown

On a four-port M1 iMac (J456), the AOP microphone is exposed as three raw AUX channels without a native Asahi DSP source. Voxtype could start recording but the raw input was too quiet for useful dictation. Selecting AUX2, removing low-frequency rumble, and adding 40 dB gain produced intelligible speech; the machine owner confirmed normal Voxtype dictation with the equivalent local filter.

This adds a J456-only fallback to the existing omarchy-asahi-mic.service watcher. It discovers the capture device by ALSA identity and channel layout, targets its current PipeWire object serial, and owns a temporary filter process exposing a standard mono microphone. It selects that source only when the raw J456 input was already selected, preserves external/custom input choices and saved gain/mute, recovers from device/filter loss, and removes its fallback when native Asahi microphone DSP appears. No speaker, kernel, or persistent user PipeWire configuration is changed.

Validation

  • Focused J456 lifecycle/default-selection tests and existing Asahi microphone tests pass.
  • Command metadata and shebang-aware syntax checks pass; independent diff review passed.
  • On real J456 hardware, the PR template loaded and captured valid audio. The integrated supervisor detected the actual device, verified the AUX2 link, reused one child across repeat reconciliation, and cleaned up while preserving the existing custom default.
  • Full ./test/all: CLI suite passed; 294/295 shell test files passed or skipped. The remaining launch-about-test.sh failure came from inherited NO_COLOR=1; the complete test passed when rerun with that variable unset.
  • Mac ./tests/all: three help/status assertions failed because the sandbox cannot read root-protected /etc/omarchy-mac-setup.conf. The same failures reproduced against unchanged base files; no PR-scoped failures were found.

Scope and remaining hardware validation

This is a single-channel fallback, not a calibrated microphone-array profile or beamformer. Fixed gain can amplify noise or clip loud input; the source volume remains adjustable. End-to-end login, suspend/resume, full audio-daemon restart, and louder/distant speech testing of the integrated supervisor remain outstanding, so this PR is a draft. Only J456 is enabled; no support claim is made for J457 or other Macs.

The investigation and implementation were assisted by GPT-6 via Codex. No recordings, transcripts, private machine identifiers, or full diagnostic dumps are included.

@e-jung

e-jung commented Nov 18, 2026

Copy link
Copy Markdown
Author

@malik-na The J456 microphone fallback is ready for direction review, with passing CI and bounded hardware evidence in the body; it remains draft pending the listed lifecycle tests. Could you review the approach, or let me know if this fallback is not wanted?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants