Skip to content

arm: apple: import the J713 speaker amps configuration - #33

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
erikwb:j713/amp-import
Nov 6, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
erikwb:j713/amp-import

Conversation

@erikwb

@erikwb erikwb commented Nov 6, 2026

Copy link
Copy Markdown

Linux #981 (merged) takes each SN012776 speaker amp's level from apple,speaker-config, which aura #75 now copies from the ADT onto the amp's DT node, and keeps the speakers off when an amp has none. The J713 boots its per-kernel device tree from the ESP, and the importer only carries over the properties it lists, so on the J713 the speakers stayed off even with the new aura.

This copies the four properties aura #75 sets (apple,speaker-config, apple,amp-tx-zd-config, apple,bop-config and apple,amp-dcblocker-config) from the input tree's ti,sn012776 nodes onto the OS tree's node at the same path.

  • An amp the OS tree doesn't have is skipped. An input amp without them (an older aura) leaves the OS amp as it is, so the kernel stays fail-safe.
  • A malformed level, or an OS node at an amp's path that isn't an amp, refuses the import, which leaves the OS tree untouched like the other sections do.

Testing:

  • test/py/tests/test_apple_j713_fdt.py: 9 passed, 1 skipped (the private-captures test). The new test_j713_speaker_amps covers the handover, an amp without its level, a malformed level and a non-amp OS node, plus trees without amps on either side. It fails without the change.
  • scripts/checkpatch.pl: clean. Builds with the J713 configuration.
  • J713, with the importer change on top of the U-Boot it runs now (c318f43d) and aura with fdt: decode /reserved-memory reg directly when ranges is empty #75: all four amps reach the kernel's device tree with their ADT values, the kernel enables the speakers, speakerguardd takes them over and a test tone plays. s2idle and resume are fine.

This was developed and tested by Claude (Anthropic), working with me on the J713.

m1n1 now copies each speaker amp configuration from the ADT onto the
amp node (apple,speaker-config, apple,amp-tx-zd-config, apple,bop-config
and apple,amp-dcblocker-config), and the kernel keeps the speakers off
unless every amp carries its level. The J713 OS tree comes from the ESP,
so copy those properties from the input tree onto its ti,sn012776 amps.

An amp the OS tree does not have is skipped, and an input amp without
them (an older m1n1) leaves the OS amp as it is. A malformed level, or an
OS node at an amp path that is not an amp, refuses the import.

Signed-off-by: Erik Bourget <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge train (MTR, 06/11): this conflicted with #34 once #34 merged. Both PRs add a step to the J713 importer, and both took fault numbers 50–51 in the host test. I carried your commit unchanged in #35, together with the merge and the resolution: both steps are kept, and your amp faults move to 60–62. Merging #35 merges this PR. Tests: 10 passed, 1 skipped.

RyanTheTide added a commit that referenced this pull request Nov 6, 2026
…import

arm: apple: import the J713 speaker amps configuration (#33, merged with aurora-wip)
@RyanTheTide
RyanTheTide merged commit c2992df into aurora-silicon:aurora-wip Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants