]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Simplify audio handling on DDI ports
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Apr 2014 21:54:51 +0000 (23:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 16 May 2014 09:58:18 +0000 (11:58 +0200)
commit23522c83619af613eb6093a5143d77f4d2d6489c
tree0d0ceb1bb51bee8c64eb2271c32527fb717a0dd1
parentd0c1dfc278d7bdc8ca09ac7ecfd66f3a67eccf2a
drm/i915: Simplify audio handling on DDI ports

There's no need to check whether audio is enabled (which for ddi ports
is done through the crtc->eld_vld flag) since at the cost of a
potentially unecessary register rmw cycle we can unconditionally do
this.

Note that the edp check is just paranoia since we won't ever call the
write_eld function for an edp panel.

Reviewed-by: Naresh Kumar Kachhi <naresh.kumar.kachhi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c