drm/i915: rewrite hsw/bdw audio codec enable/disable sequences
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Nov 2014 08:30:23 +0000 (10:30 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:02 +0000 (18:42 +0100)
commit5fad84a7530f8e7664cdc6f490cb90653fed1266
tree1b64521538499fe484c71f924b082ee5477c9199
parentc46f111f5171b63572fae3f79bcfe578bc96c603
drm/i915: rewrite hsw/bdw audio codec enable/disable sequences

There's some serious confusion regarding ELD valid bit that gets set and
cleared back and forth etc. Rewrite it all based on the documented audio
codec enable/disable sequences.

v3: replace vblank wait with a comment

v4: expand the comment on what should be done with the vblank wait

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_audio.c