]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: tas675x: use READ_ONCE for params to be used concurrently
authorSen Wang <sen@ti.com>
Tue, 30 Jun 2026 18:31:20 +0000 (13:31 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2026 18:52:36 +0000 (19:52 +0100)
commit12272cb1b23e3032e5c627fb52f183a61913a88b
tree9c7aeca47a6b5fe60739edd4b64ee36c4a8a5ab1
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482
ASoC: codecs: tas675x: use READ_ONCE for params to be used concurrently

active_playback_dais and active_capture_dais are written atomically via
set_bit()/clear_bit() and can be read concurrently from the
fault_check_work delayed work handler.

fault_check_work already uses READ_ONCE; extend the same guard to all other
reads in tas675x_hw_params() and tas675x_mute_stream().

Fixes: 133c81f84471 ("ASoC: codecs: Add TAS67524 quad-channel audio amplifier driver")
Signed-off-by: Sen Wang <sen@ti.com>
Link: https://patch.msgid.link/20260630183126.2588322-2-sen@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas675x.c