Skip to content

Commit

Permalink
sof_remove: unload snd_sof_intel_hda_common before soundwire_intel
Browse files Browse the repository at this point in the history
Fixes this failure with older kernel like the 6.5 kernels distributed by
Ubuntu:

 ERROR: Module soundwire_intel is in use by: snd_sof_intel_hda_common

Fixes commit 65951c4 ("kmod: fix hda-sdw-bpt dependency") which
unloaded all soundwire drivers earlier as a block. This is not a problem
with 6.9-ish kernels where snd_sof_intel_hda_common and soundwire_intel
can apparently be unloaded in any order but it is a problem with older
kernels.

So, unload `snd_sof_intel_hda_common` before soundwire modules to be
compatible with any kernel.

See #1156 for more info.
  • Loading branch information
marc-hb committed Apr 25, 2024
1 parent 731b48e commit a1c3677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/kmod/sof_remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ remove_module snd_soc_hda_codec
# platform drivers
#-------------------------------------------
remove_module snd_sof_intel_hda_generic
remove_module snd_sof_intel_hda_common

#-------------------------------------------
# SoundWire/SOF parts
Expand All @@ -133,7 +134,6 @@ remove_module snd_sof_intel_hda_sdw_bpt
#-------------------------------------------
# platform drivers - take2
#-------------------------------------------
remove_module snd_sof_intel_hda_common
remove_module snd_sof_intel_hda
remove_module snd_sof_intel_ipc
remove_module snd_sof_xtensa_dsp
Expand Down

0 comments on commit a1c3677

Please sign in to comment.