Repository navigation
pinctrl: apple, ASoC: cs42l84: two small fixes (read back only declared pins, honour the platform volume limit) - #378
Merged
RyanTheTide merged 2 commits intoOct 23, 2026
Conversation
The flat register cache is filled at probe by reading the block back, and the regmap configuration sizes it for 512 pins whatever the bank has. A bank with fewer pins, such as the 61-pin always-on bank of the T6040, then has 451 registers read that belong to no pin, during kernel boot since the driver is built in. Size the cache from apple,npins instead: max_register is the last pin's register and only those registers are read back. The driver never accesses a pin register beyond npins through the regmap, and the interrupt registers are accessed directly, so nothing else changes. Signed-off-by: Jonathan Goyvaerts <[email protected]> Assisted-by: LLM
The DAC volume has its own put handler, which checks a write against the control's register range only. A machine driver's snd_soc_limit_volume() ceiling (platform_max) narrows the range that the info callback reports, but a write above it still reaches the codec, up to its +12 dB. Refuse values above platform_max, as snd_soc_put_volsw() does through soc_mixer_valid_ctl(). Nothing changes without a limit. Signed-off-by: Jonathan Goyvaerts <[email protected]> Assisted-by: LLM
This was referenced Oct 23, 2026
Merged
Merged
Contributor
|
GREEN on eaefdaa Review at exact head ef448d3, branch wAK/mv378-avd-slice, one commit on integration/aurora dcce0e7. wAK's four points, checked against the diff:
One file trio only (avd-h264.c, avd.h prototype, KUnit). No findings. |
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.
Two small, independent fixes found while bringing up the MacBook Pro J616s (M4 Pro). Neither needs T6040 support.
apple,npins, so probe reads back only the registers of real pins (a 61-pin bank no longer reads 451 registers that belong to no pin, at boot, since the driver is built in).snd_soc_limit_volume(), assnd_soc_put_volsw()does; until now a write above the ceiling still reached the codec, up to +12 dB.Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, booted by our own loader with our private T6040 device tree. Both run in our daily kernel: the pinctrl change on every boot, the cs42l84 limit on the J616s headphone jack (capped at -6 dB).
Not tested / limits: no other Mac was tested.
Base:
integration/aurora(6210b28, Linux 7.3). Built and checked there (W=1 on both touched objects, checkpatch --strict clean). Hardware testing was done on our daily tree (aurora-wip, Linux 7.1.12), which runs this code.🤖 Generated with Claude Code