drm/i915: add a "force-dvi" HDMI audio mode
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 14 Feb 2012 03:45:36 +0000 (11:45 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Feb 2012 09:03:18 +0000 (10:03 +0100)
commitb1d7e4b41fd0f72ea8149056778db5d737739305
treed87dcbde66dfa08193af2184ec98aa16a17a4dce
parent8ac5a6d5b56700c006baa94272b63f2d3fdf6b06
drm/i915: add a "force-dvi" HDMI audio mode

When HDMI-DVI converter is used, it's not only necessary to turn off
audio, but also to disable HDMI_MODE_SELECT and video infoframe. Since
the DVI mode is mainly tied to audio functionality from end user POV,
add a new "force-dvi" audio mode:

xrandr --output HDMI1 --set audio force-dvi

Note that most users won't need to set this and happily rely on the EDID
based DVI auto detection.

Reported-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_modes.c