public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/kmod: Unload snd_hdmi_lpe_audio
@ 2018-10-25 10:21 Ville Syrjala
  2018-10-25 10:32 ` Daniel Vetter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ville Syrjala @ 2018-10-25 10:21 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Unload the snd_hdmi_lpe_audio module. Otherwise i915 can't be unloaded.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/igt_kmod.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index b2f4f884b137..22c260210e3d 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -333,6 +333,17 @@ igt_i915_driver_unload(void)
 		}
 	}
 
+	if (igt_kmod_is_loaded("snd_hdmi_lpe_audio")) {
+		igt_terminate_process(SIGTERM, "alsactl");
+
+		if (igt_kmod_unload("snd_hdmi_lpe_audio", 0)) {
+			igt_warn("Could not unload snd_hdmi_lpe_audio\n");
+			igt_kmod_list_loaded();
+			igt_lsof("/dev/snd");
+			return IGT_EXIT_FAILURE;
+		}
+	}
+
 	/* gen5 */
 	if (igt_kmod_is_loaded("intel_ips"))
 		igt_kmod_unload("intel_ips", 0);
-- 
2.18.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-26 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-25 10:21 [igt-dev] [PATCH i-g-t] lib/kmod: Unload snd_hdmi_lpe_audio Ville Syrjala
2018-10-25 10:32 ` Daniel Vetter
2018-10-26 14:57   ` Ville Syrjälä
2018-10-25 11:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-25 15:51 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox