Repository navigation
ASoC: apple: One AOP audio driver, with the lid microphone jack for every MacBook - #537
Merged
Merged
Conversation
Closing the lid of an Apple silicon MacBook disconnects its internal microphones in hardware. The T8140 AOP audio driver follows the lid switches through the input core and reports an "Internal Mic" jack that reads unplugged while a lid is closed. The other AOP microphone cards need the same, so move it out of the driver into aop_lid.rs. MicLid keeps the lid bookkeeping, the input handler and the jack report work, unchanged, and owns its own reference count, so a driver only holds an Arc<MicLid>, attaches it to its card before registering the card and detaches it before freeing the card. The handler's private data is now the MicLid instead of the T8140 driver data. No functional change for the T8140 card. The lid KUnit suite moves with the code as snd_soc_apple_aop_lid. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The T8140 (MacBook Neo) had its own AOP audio module next to aop_audio, both bound to services of the same AOP. Make it one driver: aop_audio matches apple,t8140-aop-audio as well, and the compatible's match data selects what the probe sets up. The PDM microphone setups of T8103 to T6041 keep their hardware configuration as before, and T8140 gets the services it already had, now as the aop_t8140 backend of the same module. The T8140 code moves unchanged apart from its probe and unbind, which the shared platform driver calls. Its card keeps the t8140-aop-audio driver name, its id and names, PCMs and controls, so UCM and userspace see the same card. Module autoloading follows the compatible, so DTs need no change. The module is snd-soc-aop for every machine now. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aop_audio drives the T8140 services now. Drop the SND_SOC_APPLE_T8140_AOP_AUDIO option from Kconfig, the Asahi config fragment and the Apple firmware KUnit config, which enables aop_audio instead to keep running the T8140 and lid test suites. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closing the lid of any Apple silicon MacBook disconnects its internal microphones in hardware, but only the T8140 card said so. On the other laptops the high-power array stayed on offer in clamshell mode and recorded silence. Give the PDM microphone card the same "Internal Mic" jack, following the lid switches through aop_lid. It reads unplugged while any lid switch is closed, so a UCM device with JackControl "Internal Mic Jack" goes away. A machine without a lid switch keeps the jack plugged. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Hardware results.
The first J616s candidate hung before root because it was packaged wrong: its initramfs lacked the current-GPT /init segment the J616s tether candidates append. The kernel was not involved (snd_soc_aop is a module). 🤖 Generated with Claude Code |
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One AOP audio driver for every Apple silicon Mac, and the lid's microphone jack on all of them.
The MacBook Neo (T8140) had its own AOP audio module, t8140_aop_audio, beside aop_audio, and only the Neo hid its microphones in clamshell mode. On the M4 Pro and the other MacBooks the microphone array stayed on offer with the lid closed and recorded silence.
The series:
The UCM side is aurora-silicon/alsa-ucm-conf-asahi#8, which points the three-channel array at "Internal Mic Jack".
Testing so far
make CLIPPY=1fails inside rust/kernel on this toolchain before it reaches these files, so clippy was not run.🤖 Generated with Claude Code