drm/i915/audio: do not mess with audio registers if port is invalid
authorJani Nikula <jani.nikula@intel.com>
Mon, 4 May 2015 14:20:49 +0000 (17:20 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:36 +0000 (13:03 +0200)
commitd3902c3eba3666f001fa82fa16109aa4ab0074dc
treea9fac94c5d3082858cb4c6285964d081a9bb9598
parent6222709d60734dd1e11f8d24520d9f23b4eb953e
drm/i915/audio: do not mess with audio registers if port is invalid

We should no longer enter the codec enable/disable functions in question
with port A anyway, but to err on the safe side, keep the warnings. Just
bail out early without messing with the registers.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_audio.c