summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAntoine Monnet <antoine@montane.tech>2026-08-15 14:50:00 +0300
committerMark Brown <broonie@kernel.org>2026-08-30 23:38:57 +0100
commit173cb3147ba26449e6023df56f9bcd34ce6d1c3b (patch)
treeb7adf95990e820702fe391fc700b5ad0be5c684a /scripts/Makefile.thinlto
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-173cb3147ba26449e6023df56f9bcd34ce6d1c3b.tar.gz
linux-next-173cb3147ba26449e6023df56f9bcd34ce6d1c3b.zip
ASoC: tas2783-sdw: split a stereo stream across the two mono amps
A board with two TAS2783 aggregated on one link renders mono: the two amplifiers are mono parts that each carry one channel of the stereo stream, but snd_sdw_params_to_config() hands every codec the full channel mask for playback. The pair stays in mirror mode, both amps render the same channel, and the other channel is never reproduced. Claim a single channel per amplifier instead. The index comes from the machine-assigned component name prefix rather than the SoundWire unique_id, which is board-specific: soc_sdw_ti_amp.c names the amplifiers tas2783-1..4. The bit that is set does not choose the side. sdw_compute_slave_ports() advances the payload offset by hweight32(ch_mask) and never looks at which bit it is, so a one-channel mask fixes mono by defeating mirror mode, and left and right then follow the amplifier's position in the codec order of the DAI link. That was measured: inverting the two masks between the amplifiers does not move the audio. On the boards this has been run on the codec order matches the prefix numbering, so the sides come out as the machine driver names them, but the mapping is not an ABI promise the bus allocator could honour. Reported-by: Robin Everaars <robineveraars@pm.me> Closes: https://lore.kernel.org/all/20260805183517.8665-1-robineveraars@pm.me/ Suggested-by: Robin Everaars <robineveraars@pm.me> Signed-off-by: Antoine Monnet <antoine@montane.tech> Tested-by: Andrey Golovko <andrey@golovko.me> Signed-off-by: Andrey Golovko <andrey.golovko@gmail.com> Link: https://patch.msgid.link/20260815113000.4488-1-andrey.golovko@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions