Skip to content

WIP: tools/audio_adt2dt: Parse ADT and produce per device sound nodes#612

Draft
jannau wants to merge 2 commits into
AsahiLinux:mainfrom
jannau:tools/audio_adt2dt
Draft

WIP: tools/audio_adt2dt: Parse ADT and produce per device sound nodes#612
jannau wants to merge 2 commits into
AsahiLinux:mainfrom
jannau:tools/audio_adt2dt

Conversation

@jannau

@jannau jannau commented Jul 1, 2026

Copy link
Copy Markdown
Member

Parses audio speaker and headset amplifier nodes and produce the device
specific DT nodes.

This currently only handles 14/16 inch Macbook Pros since this doesn't reproduce the current config for j314, j316, j414 or j416. I'm not sure if this is caused by broken ADT, missing understanding of how the ADT maps to the DT on my part or if our DT are broken.

The first issue is that V-sense and I-sense slots are swapped. This is not an issue since speakersafetyd only uses their product but still unexpected.

The second issue is that the second woofer and tweeter on each side are to my interpretation of the ADT exchanged. The order based on speaker$N and rx-slot in speaker-config in the primary audio-speaker node appears to be "Left Woofer 1", "Left Woofer 2", "Left Tweeter" instead of "Left Woofer 1", "Left Tweeter", "Left Woofer 2" as in the DT. This also affects the V-sense and I-sense slots.

jannau added 2 commits July 1, 2026 21:03
Will be used by audio_adt2dt.py.

Signed-off-by: Janne Grunau <j@jannau.net>
Parses audio speaker and headset amplifier nodes and produce the device
specific DT nodes.

Signed-off-by: Janne Grunau <j@jannau.net>
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.

1 participant