Repository navigation
kboot: forward Apple audio calibration and speaker identity to /chosen - #31
Open
ADevWithAnIdea wants to merge 3 commits into
Open
ADevWithAnIdea wants to merge 3 commits into
ADevWithAnIdea wants to merge 3 commits into
Conversation
Add adt_getprop_exact() for bounds-safe fixed-size ADT property reads and adt_find_phandle_path() to resolve an AAPL,phandle under a subtree while populating the trace array for adt_get_reg() and its path string. Signed-off-by: Cody Ho <codyho@cs.stanford.edu> Assisted-By: LLM
ADevWithAnIdea
force-pushed
the
PR_audio_calibration
branch
2 times, most recently
from
December 3, 2026 03:53
418d234 to
9f7c02b
Compare
added 2 commits
December 2, 2026 19:58
Add dedicated Apple GPIO register definitions and helpers (gpio_sample_pin() and gpio_adt_sample_fn()) to temporarily sample an input pin described by an ADT GPIO function property and restore its original pin configuration. Only invoke pmgr_adt_power_enable() when the GPIO controller actually declares clock-gates (always-on gpio0 nodes omit clock-gates). Signed-off-by: Cody Ho <codyho@cs.stanford.edu> Assisted-By: LLM
Move audio /chosen DT forwarding into dedicated kboot_audio.{c,h}
(matching kboot_atc.{c,h}) and keep kboot.c limited to calling
kboot_setup_audio(dt). Forwards apple,acoustic-id,
apple,speaker-thiele-small (spts), apple,speaker-cpms-budget-*,
apple,speaker-config, and GPIO-strapped apple,speaker-id across all
Apple Silicon Macs (including M1 audio-tas5770L-* speaker nodes).
Signed-off-by: Cody Ho <codyho@cs.stanford.edu>
Assisted-By: LLM
ADevWithAnIdea
force-pushed
the
PR_audio_calibration
branch
from
December 3, 2026 03:58
9f7c02b to
8d00244
Compare
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.
Forward apple,acoustic-id, apple,speaker-id (including GPIO speaker-id strapping where present), and apple,speaker-thiele-small (spts) from the ADT into /chosen so Linux beatdropd can identify the exact speaker configuration and factory calibration across all Apple Silicon Macs.