Message ID | 1470780370-16270-1-git-send-email-dhinakaran.pandiyan@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index d32f586..26a795f 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -335,11 +335,11 @@ static void hsw_audio_codec_enable(struct drm_connector *connector, tmp &= ~AUD_CONFIG_N_PROG_ENABLE; if (audio_rate_need_prog(intel_crtc, adjusted_mode)) { - if (!acomp) + if (!acomp) { rate = 0; - else if (port >= PORT_A && port <= PORT_E) + } else if (port >= PORT_A && port <= PORT_E) { rate = acomp->aud_sample_rate[port]; - else { + } else { DRM_ERROR("invalid port: %d\n", port); rate = 0; }