Skip to content

ASoC: harden SoundWire codec/machine drivers used on Intel platforms

Pierre-Louis Bossart alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ASoC: Realtek/Maxim SoundWire codecs: disable pm_runtime on removesound/soc/codecs/max98373-sdw.c sound/soc/codecs/rt1308-sdw.c sound/soc/codecs/rt1316-sdw.c +6 more+76 -50 replies
2/7ASoC: rt711-sdca-sdw: fix calibrate mutex initializationsound/soc/codecs/rt711-sdca-sdw.c sound/soc/codecs/rt711-sdca.c+4 -10 replies
3/7ASoC: Intel: sof_sdw: handle errors on card registrationsound/soc/intel/boards/sof_sdw.c+29 -220 replies
4/7ASoC: rt711: fix calibrate mutex initializationsound/soc/codecs/rt711-sdw.c sound/soc/codecs/rt711.c+4 -10 replies
5/7ASoC: rt7*-sdw: harden jack_detect_handlersound/soc/codecs/rt700.c sound/soc/codecs/rt711-sdca.c sound/soc/codecs/rt711.c+3 -30 replies
6/7ASoC: codecs: rt700/rt711/rt711-sdca: initialize workqueues in probesound/soc/codecs/rt700.c sound/soc/codecs/rt711-sdca.c sound/soc/codecs/rt711.c+13 -210 replies
7/7ASoC: codecs: rt700/rt711/rt711-sdca: resume bus/codec in .set_jack_detectsound/soc/codecs/rt700.c sound/soc/codecs/rt711-sdca.c sound/soc/codecs/rt711.c+40 -260 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchRander WangBard Liao
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] ASoC: harden SoundWire codec/machine drivers used on Intel platforms

While testing fixes for SoundWire race conditions initially reported in [1], I found additional issues in codec drivers. When the order in which drivers are probed is changed, multiple errors are reported, from unbalanced pm_runtime_enable() calls to invalid mutex lock magic numbers, workqueues not initialized and missing resume sequences.

In 'nominal' usages, there is no change of functionality, this is just a first step to test random device/driver bind/unbind sequences.

Important note: these changes only touch Intel-based platforms, I don't have any background and ability to test on Qualcomm-based devices.

[1] https://lore.kernel.org/alsa-devel/[email protected]/

Pierre-Louis Bossart (7):
ASoC: Realtek/Maxim SoundWire codecs: disable pm_runtime on remove
ASoC: rt711-sdca-sdw: fix calibrate mutex initialization
ASoC: Intel: sof_sdw: handle errors on card registration
ASoC: rt711: fix calibrate mutex initialization
ASoC: rt7*-sdw: harden jack_detect_handler
ASoC: codecs: rt700/rt711/rt711-sdca: initialize workqueues in probe
ASoC: codecs: rt700/rt711/rt711-sdca: resume bus/codec in
.set_jack_detect

 sound/soc/codecs/max98373-sdw.c   | 12 +++++++-
 sound/soc/codecs/rt1308-sdw.c     | 11 +++++++
 sound/soc/codecs/rt1316-sdw.c     | 11 +++++++
 sound/soc/codecs/rt5682-sdw.c     |  5 ++-
 sound/soc/codecs/rt700-sdw.c      |  6 +++-
 sound/soc/codecs/rt700.c          | 30 +++++++++++-------
 sound/soc/codecs/rt711-sdca-sdw.c |  9 +++++-
 sound/soc/codecs/rt711-sdca.c     | 40 ++++++++++++------------
 sound/soc/codecs/rt711-sdw.c      |  9 +++++-
 sound/soc/codecs/rt711.c          | 40 ++++++++++++------------
 sound/soc/codecs/rt715-sdca-sdw.c | 12 ++++++++
 sound/soc/codecs/rt715-sdw.c      | 12 ++++++++
 sound/soc/intel/boards/sof_sdw.c  | 51 ++++++++++++++++++-------------
 13 files changed, 169 insertions(+), 79 deletions(-)
Signature · 1 line
2.34.1