Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2294488d authored by Adam Jackson's avatar Adam Jackson Committed by Keith Packard
Browse files

drm/i915: Fix multifunction SDVO detection



I can't think of any sensible reason to limit this to a mask of 0x0f,
ie, SDVO_OUTPUT_{TMDS,RGB,CVBS,SVID}0.

Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 46eb3036
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1232,8 +1232,7 @@ static bool
intel_sdvo_multifunc_encoder(struct intel_sdvo *intel_sdvo)
{
	/* Is there more than one type of output? */
	int caps = intel_sdvo->caps.output_flags & 0xf;
	return caps & -caps;
	return hweight16(intel_sdvo->caps.output_flags) > 1;
}

static struct edid *