Skip to content

J313 (MacBook Air M1): built-in mic capture returns a fixed looping pattern instead of audio #141

Open

Description

@isc

Mac and installed build

  • Model / board / SoC: MacBook Air 13" M1 (2020) / apple,j313 / apple,t8103
  • Installed kernel package: linux-aurora 7.1.12.aurora7-2 (Omarchy package, built 2026-10-18 08:31 UTC, installed 2026-10-18 as an upgrade from 7.1.12.aurora2-11). The package does not expose the Aurora release tag.
  • uname -r: 7.1.12-7-2-ARCH
  • Bootloader and relevant packages: m1n1 stage2 v1.6.1-omarchy.aurora1, omarchy-mac-boot 20261010-1, limine 12.9.3-1, asahi-audio 4.1-1, pipewire 1.6.9-1, wireplumber 0.5.18-1
  • Distribution / local patches: Omarchy 4.0.0.r7052.ga6dcc31 (Arch Linux ARM). No kernel changes. No audio config overrides are active (a WirePlumber override forcing S32LE on the AOP PCM was tried briefly, then removed).

Both firmware versions and provisioning

  • asahi,os-fw-version: 13.5
  • asahi,system-fw-version: unknown
  • Provisioning: not relevant

Reproduction, expected result, and actual result

  1. Boot normally. The PCM is free while PipeWire keeps it suspended.
  2. Talk while you run arecord -D hw:AppleJ313HPAI,0 -f FLOAT_LE -c 3 -r 48000 -d 3 -t raw cap.raw. FLOAT_LE / 3 ch / 48 kHz is also what PipeWire negotiates.
  3. Read cap.raw as little-endian float32, 3 interleaved channels.

Expected: three independent live microphone channels, with room noise around 1e-4 to 1e-2 and louder speech.

Actual (every capture, also after a cold reboot):

  • max |sample| = 2.42e-38. 55.5 % of the 32-bit words are exactly 0. Every non-zero word has float exponent field 1 or 2 (0x00800000–0x0100ffff), and none is negative.
  • Channel 0 is bit-identical to channel 1.
  • The stream is a fixed, looping pattern, not live samples. Two captures taken minutes apart match 100 % for the full 3 s once shifted by one frame. Within a capture, the data repeats exactly every 40,647 frames (846.8 ms). Speaking or keeping quiet makes no difference.
  • So the asahi-audio j313 chain outputs silence, and applications record nothing.

Excerpt. The same sequence appears in every capture at the same position, give or take one frame:

00802a55 00802a55 00000000 00000000 00000000 00000000 008f64ba 008f64ba 00bc514b
00e3580f 00e3580f 00000000 00000000 00000000 00000000 0087ea09 0087ea09 00b69b4b

Last known-good build: unknown. The mic was first tried after the upgrade to aurora7-2.

Relevant error lines

No kernel message appears while capturing: no ADMAC descriptor or report ring error, no DART fault, no aop_audio error ("Unable to power mic on", etc.). The journal records every log level. The AOP firmware logs PDM activity only at boot, and logs nothing when the PCM is opened or closed:

udioPDMNodeBase.cpp:150: PDMDev<pdm0> wake notification. Prev AP state 1
Controller.cpp:160: RTKitAudioFramework v240.4 (built Jun 30 2023 17:51:05) ready!! {12 nodes}
Controller.cpp:251: aop-audio v240.10 (built Jun 30 2023 17:56:11, debug 0x0) ready!!
udioPDMNodeBase.cpp:115: PDMDev<pdm0> LPClkCfg=Src:pll ,Freq:2400000
udioPDMNodeBase.cpp:554: PDMDev<pdm0> off ->xi0 , 0->2400000 AP state 1

PCM state while PipeWire captures:

access: MMAP_INTERLEAVED
format: FLOAT_LE
channels: 3
rate: 48000 (48000/1)

Related issues, pull requests, or code examples

  • sound/soc/apple/aop_audio.rs is identical between AsahiLinux/linux asahi (94fb233) and linux-aurora integration/aurora (5d570a7), so the mic driver itself has not changed.
  • The layers underneath have changed substantially compared with AsahiLinux asahi:
    • drivers/soc/apple/aop.rs: 1033 → 2367 lines. Includes the T8140 setup port, the low-power source ring, DMA retention, and tagless call serialization.
    • drivers/dma/apple-admac.c: dma_set_mask_and_coherent(DMA_BIT_MASK(42)) now applies to every ADMAC, including apple,t8103-admac, and admac_wait_stopped() was added (f4b4f0c, 2026-10-17).
    • drivers/iommu/apple-dart.c: 1651 → 3347 lines, including the 2026-10-10 series on inherited and retained firmware translations (bb7055e, 4446c6d, 277ff6c, 9e2232a, 9b96a8f) and the 2026-10-17 merge (0ad5362).
  • The live device tree nodes aop, aop/audio (dmas = <&aop_admac 1>), aop_dart and aop_admac match AsahiLinux t8103.dtsi. All drivers are bound (apple-dart, apple-admac, apple_aop, snd_soc_aop), with the ADMAC and AOP in their own IOMMU groups.
  • Asahi documents built-in mic support on M1 laptops with os-fw-version ≥ 13.5, which this Mac meets.
  • Unverified hypothesis: a buffer replayed in a loop, with no AOP log on open, suggests the PDM/HPAI capture inside the AOP never starts, or that the buffer the AOP streams from is never refreshed. For example, AOP-side DMA through aop_dart stream 0 could have been affected by the inherited-translation changes.
  • Workaround in use: Bluetooth headset microphone (HFP).

What was not tested

  • Upstream Asahi kernel, or the previous linux-aurora 7.1.12.aurora2-11, on this Mac. Whether this is a regression or never worked is unknown.
  • The microphone under macOS on this unit (hardware not cross-checked).
  • No dynamic debug or EPIC message tracing (no root used).
  • No suspend/resume test.

Activity

  1. matiaslapolla commented on Nov 7, 2026

    @matiaslapolla

    Still reproduces on J313 with aurora14 and Omarchy 4.5. Raw capture shows the same 40,647-frame loop as in this report.

    System

    • MacBook Air 13" M1 (MacBookAir10,1, J313, t8103)
    • Omarchy 4.5.0-3, linux-aurora 7.2.11.aurora14-1 (7.2.11-14-1-ARCH)
    • aurora-audio 4.1.aurora3-3, PipeWire 1.6.9, WirePlumber 0.5.18, m1n1-aurora 1.6.1.aurora22-1, omarchy-mac-boot 20261104-1
    • asahi,os-fw-version 13.5, asahi,system-fw-version 27.0
    • AOP reports aop-audio v240.10 (built Jun 30 2023)
    • Lid open (logind LidClosed=false)

    Capture

    arecord -D hw:0,0 -f FLOAT_LE -c 3 -r 48000 -d 5 -t raw, with PipeWire not using the PCM:

    • Period: 40,647 frames. 100.00% word match on channel 2 after the first 500 ms (40,646 and 40,648 give 25.74%). Multiples of that period also matched in a 286-point fingerprint search.
    • Startup: peak about 7.1e-4 in the first 100 ms, decaying to the floor, as in j293 (MacBook Pro 13" M1): built-in mics record silence, AOP decimator gets no PDM input #355.
    • After 500 ms: max |sample| 2.421e-38, no negative values.
    • Channels 0 and 1: identical in 239,999 of 240,000 frames.
    • Exact-zero words: 51.1% across the whole capture, including startup.
    • Sample words: 0095533c 0095533c 00000000 00000000 00000000 008b0b30 00a7113c 00a7113c 00000000
    • Speech: I was talking during the capture, and it had no effect on the stream.

    Other observations

    • The result is the same across reboots.
    • No kernel errors during capture. The AOP logs PDMDev<pdm0> off ->xi0 , 0->2400000 AP state 1 once at startup and no PDM activity when the PCM opens.
    • snd_soc_aop.mic_check_123=1 makes no difference. Disassembly suggests it's only read in probe, to gate the apple,no-beamforming check, so this is expected.

    Not tested: the mic under macOS on this unit, or any older kernel. The built-in mic has never worked on this install, so there's no last known-good build.

    Happy to test patches or a debug kernel.

    Diagnosed with Claude Code.

  2. n0mahd commented on Nov 11, 2026

    @n0mahd

    Same result on a second J313, and with a different system firmware.

    System

    • MacBook Air 13" M1 (2020), J313, t8103
    • Omarchy 4.5.0-3, linux-aurora 7.2.11.aurora14-1 (7.2.11-14-1-ARCH), aurora-audio 4.1.aurora3-3, m1n1-aurora 1.6.1.aurora22-1, omarchy-mac-boot 20261104-1
    • asahi,os-fw-version 13.5, asahi,system-fw-version 26.6.2 (the reports above are on 27.0, so the macOS 27 system firmware is not the trigger)

    Capture

    arecord -D hw:AppleJ313HPAI,0 -f FLOAT_LE -c 3 -r 48000 -d 5 -t raw, PipeWire not using the PCM, after a cold reboot:

    • Period: channel 2 matches itself 100% at 40,647 frames after the first 500 ms; 40,646 gives 25.74%. Same numbers as the comment above.
    • Startup peak 7.14e-4 in the first 100 ms, then max |sample| 2.4206e-38.
    • Exact-zero words 51.1%; channel 0 equals channel 1 in 99.9996% of frames.
    • Sample words: 00809929 00809929 0095c6a7 00000000 00000000 00000000
    • No kernel errors during capture; the AOP logs PDMDev<pdm0> off ->xi0 , 0->2400000 AP state 1 once at boot only. A suspend/resume and a reboot both leave it the same.

    The user-visible result: every recorder (Superwhisper, pw-record on effect_output.j313-mic or Omarchy's omarchy_asahi_mic) gets digital silence.

    Not tested: macOS on this unit, an older kernel or the stock Asahi kernel. The 7.1.12.aurora2 install on this Mac (2026-10-11) showed the mic chain present, but capture was not measured then, so I can't call it a last known-good build.

    Happy to test a patch or a debug kernel.

    Diagnosed with Claude Code.

  3. chioumike-max commented on Nov 17, 2026

    @chioumike-max

    Same loop on a third J313. Unlike the reports above, this unit has a last known-good build: the built-in mic worked here under the unofficial omarchy-mac 4.0.4 build, before a fresh install of Omarchy 4.5 / linux-aurora.

    System (broken)

    • MacBook Air 13" M1 (2020), J313, t8103
    • Omarchy 4.5.0-3, linux-aurora 7.2.11.aurora14-1 (7.2.11-14-1-ARCH), aurora-audio 4.1.aurora3-3, alsa-ucm-conf-aurora 10.aurora3-1, PipeWire 1.6.9, WirePlumber 0.5.18
    • asahi,os-fw-version 13.5; AOP reports aop-audio v240.10 (built Jun 30 2023)
    • Fresh install 2026-11-05; no audio/kernel package changes since

    Known good

    • omarchy-mac 4.0.4 on this same Mac, with a working built-in mic. That install was wiped, so I don't have its exact kernel/asahi-audio versions. Running the same 13.5 OS firmware on the same hardware suggests a regression between that build's kernel and linux-aurora.

    Capture

    arecord -D hw:0,0 -f FLOAT_LE -r 48000 -c 3 -d 3, after a cold boot with no suspend, PipeWire not using the PCM:

    • Channel 2 matches itself 100.00% at 40,647 frames after the first 500 ms; 40,646 and 40,648 give 25.74%. Same as above.
    • Channels 0 and 1 are identical in 99.9993% of frames. Peak 7.1e-4 at startup, then the floor.
    • While speaking: effect_output.j313-mic reads -92 dBFS RMS and omarchy_asahi_mic -86 dBFS. Dictation reports "No speech detected".
    • No kernel errors. The AOP logs PDMDev<pdm0> off ->xi0 , 0->2400000 AP state 1 once at boot only, and nothing when the PCM opens.

    Small extra observation: the J313 UCM (conf.d/aop_audio/3chan/HiFi.conf) declares JackControl "Internal Mic Jack", but amixer -c0 controls lists no controls on the AOP card. That's probably unrelated to the loop.

    Happy to test a patch or a debug kernel.

    Diagnosed with Claude Code.

  4. mpodhaisky commented on Nov 22, 2026

    @mpodhaisky

    Another J313 (MacBook Air M1 2020) with the same signature on linux-aurora 7.2.11.aurora14-1, os-fw 13.5: about 7.1e-4 startup transient, then about 2e-38 on all 3 channels from arecord -D hw:0,0 -f FLOAT_LE -c 3 -r 48000, with no reaction to speech. It persists across reboots, including coming back from macOS.

    New data point for J313: the built-in mic works in macOS on this unit, so it isn't the hardware. Happy to test patches.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions