diff options
| author | David Heidelberg <david@ixit.cz> | 2026-09-24 15:24:10 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-25 12:18:01 +0100 |
| commit | f390794e6354de783a1443f2b935d9e2b4361354 (patch) | |
| tree | b4970b7e9f39ead328d16ac711192d057796e334 /scripts/Makefile.thinlto | |
| parent | 5e9f324509a76e377db813839d27012084081dfb (diff) | |
| download | linux-f390794e6354de783a1443f2b935d9e2b4361354.tar.gz linux-f390794e6354de783a1443f2b935d9e2b4361354.zip | |
ASoC: cs35l36: Implement set_tdm_slot to program RX and TX slots
Program the ASP RX and TX slot registers from the TDM masks passed by
the machine driver. Each set bit in a mask names a slot; codec channels
are assigned to those slots in order, ASPRX1 taking the first RX slot
and ASPTX1..TX8 the first eight TX slots, with a warning if the mask
names more slots than the device has channels.
Passing slots == 0 or an empty mask restores the hardware defaults,
ASPRX1 in slot 0 and ASPTX1..TX8 in slots 0..7.
This lets a machine driver with several amplifiers on one bus, such as
sdm845 with two CS35L36, put each amplifier on its own RX slot and keep
their TX slots from colliding.
Assisted-by: Claude:claude-4.6-opus
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20260924-pixel3-audio-v4-5-85b5d133aa5e@ixit.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
