drm/i915: use the new hdmi_force_audio enum more
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 23 Feb 2012 16:14:47 +0000 (17:14 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Feb 2012 16:45:36 +0000 (17:45 +0100)
commitc3e5f67b390f2d915e66433f8ba7b5a99a1d3d8a
tree07d3f3d58ab73e520c8e6000a2f2b938d01654b8
parent70424970b4be72acd3bfbde36f7a262e0c676f96
drm/i915: use the new hdmi_force_audio enum more

While fixing up a merge conflict with drm-next I've noticed that we
use the same audio drm connector property also for dp and sdvo
outputs.

So put the new enum to some good use and convert these paths, too. The
HDMI_AUDIO_ prefix is a bit a misnomer. But at least for sdvo it makes
sense (and you can also connect a hdmi monitor with a dp->hdmi cable),
so I've decided to stick with it.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_sdvo.c