drm/i915: set AUD_CONFIG N_value_index for DisplayPort
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 6 Jan 2012 20:41:31 +0000 (14:41 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 29 Jan 2012 15:07:46 +0000 (16:07 +0100)
commitb6daa025b1e1aebf276508eb2a5a9f730391aa84
tree1d7b344537b409ac6c3af67027927f4326aa8553
parent6dc0e816bb7478fd4dfebddcc65257f9ef161f7a
drm/i915: set AUD_CONFIG N_value_index for DisplayPort

It should be programmed to "0" for HDMI or "1" for DisplayPort.

This enables DisplayPort audio for

- HP EliteBook 8460p
  (whose BIOS does not set the N_value_index bit for us)

- DisplayPort monitor hot plugged after boot
  (otherwise most BIOS will fill the N_value_index bit for us)

Tested-by: Robert Lemaire <rlemaire@suse.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c