[igt-dev] [PATCH i-g-t] tests/kms_hdmi_inject: Fix audio test by loading snd driver

B, Jeevan jeevan.b at intel.com
Wed Jul 26 06:31:59 UTC 2023


> -----Original Message-----
> From: Garg, Nemesa <nemesa.garg at intel.com>
> Sent: Wednesday, July 26, 2023 10:57 AM
> To: B, Jeevan <jeevan.b at intel.com>; igt-dev at lists.freedesktop.org
> Cc: Garg at freedesktop.org
> Subject: RE: [igt-dev] [PATCH i-g-t] tests/kms_hdmi_inject: Fix audio test by
> loading snd driver
> 
> 
> 
> > -----Original Message-----
> > From: B, Jeevan <jeevan.b at intel.com>
> > Sent: Tuesday, July 25, 2023 3:26 PM
> > To: Garg, Nemesa <nemesa.garg at intel.com>;
> > igt-dev at lists.freedesktop.org
> > Cc: Garg at freedesktop.org; Garg, Nemesa <nemesa.garg at intel.com>
> > Subject: RE: [igt-dev] [PATCH i-g-t] tests/kms_hdmi_inject: Fix audio
> > test by loading snd driver
> >
> > > -----Original Message-----
> > > From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> > > Garg, Nemesa
> > > Sent: Monday, July 24, 2023 1:08 PM
> > > To: igt-dev at lists.freedesktop.org
> > > Cc: Garg at freedesktop.org; Garg, Nemesa <nemesa.garg at intel.com>
> > > Subject: [igt-dev] [PATCH i-g-t] tests/kms_hdmi_inject: Fix audio
> > > test by loading snd driver
> > >
> > > As audio driver is blacklisted so load the snd_hda_intel module
> > > before the inject_audio test run
> > Any idea why snd_hda_intel si blocklisted ? It should be done right.
> During boot time the driver is blacklisted as seen in boot logs and after boot
> the driver does not get loaded so added this function.
Let's check why it's blocklisted, it shouldn't be done without a reason. 
> > >
> > > Signed-off-by: Garg, Nemesa <nemesa.garg at intel.com>
> > > ---
> > >  tests/kms_hdmi_inject.c | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > >
> > > diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c index
> > > 9aa5c59fc..1964d7541 100644
> > > --- a/tests/kms_hdmi_inject.c
> > > +++ b/tests/kms_hdmi_inject.c
> > > @@ -30,6 +30,7 @@
> > >  #include "igt_edid.h"
> > >  #include "igt_eld.h"
> > >  #include "xe/xe_query.h"
> > > +#include "igt_kmod.h"
> > >
> > >  #define HDISPLAY_4K	3840
> > >  #define VDISPLAY_4K	2160
> > > @@ -206,6 +207,9 @@ igt_main
> > >  		igt_require(connector);
> > >
> > >  		kmstest_unset_all_crtcs(drm_fd, res);
> > > +
> > > +		if (!igt_kmod_is_loaded("snd_hda_intel"))
> > > +			igt_kmod_load("snd_hda_intel", NULL);
> > >  	}
> > >
> > >  	igt_describe("Make sure that 4K modes exposed by DRM match the
> "
> > > --
> > > 2.25.1



More information about the igt-dev mailing list