Skip to content

Commit

Permalink
drm/i915: Fix multifunction SDVO detection
Browse files Browse the repository at this point in the history
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: Adam Jackson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
nwnk authored and keith-packard committed Oct 20, 2011
1 parent 46eb303 commit 2294488
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/i915/intel_sdvo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 2294488

Please sign in to comment.