From c9a69c091559b9f04268a511416f334ab95d281f Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Wed, 24 Jul 2024 13:25:19 +0300 Subject: [PATCH] tools: kmod: Handle snd_sof_pci_intel_ptl The snd_sof_pci_intel_ptl depends on the LNL module and it blobks removal of snd_sof_pci_intel_lnl. Signed-off-by: Peter Ujfalusi --- tools/kmod/sof_insert.sh | 1 + tools/kmod/sof_remove.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/kmod/sof_insert.sh b/tools/kmod/sof_insert.sh index b9492d48..74c0a2df 100755 --- a/tools/kmod/sof_insert.sh +++ b/tools/kmod/sof_insert.sh @@ -108,6 +108,7 @@ insert_module snd_sof_pci_intel_icl insert_module snd_sof_pci_intel_tgl insert_module snd_sof_pci_intel_mtl insert_module snd_sof_pci_intel_lnl +insert_module snd_sof_pci_intel_ptl # OF driver insert_module snd_sof_of diff --git a/tools/kmod/sof_remove.sh b/tools/kmod/sof_remove.sh index 149fa15d..16f30ae1 100755 --- a/tools/kmod/sof_remove.sh +++ b/tools/kmod/sof_remove.sh @@ -86,8 +86,9 @@ remove_module snd_usbmidi_lib #------------------------------------------- # Top level devices # ACPI is after PCI due to TNG dependencies -# TGL and ICL depend on CNL, and LNL on MTL, -# the non-linear order is intentional +# TGL and ICL depend on CNL, PTL on LNL and +# LNL on MTL, the non-linear order is +# intentional #------------------------------------------- remove_module snd_hda_intel remove_module snd_sof_pci_intel_tng @@ -98,6 +99,7 @@ remove_module snd_sof_pci_intel_tgl remove_module snd_sof_pci_intel_icl remove_module snd_sof_pci_intel_cnl +remove_module snd_sof_pci_intel_ptl remove_module snd_sof_pci_intel_lnl remove_module snd_sof_pci_intel_mtl