drm: dw-hdmi: add specific I2S and AHB functions for stream handling
authorRomain Perier <romain.perier@collabora.com>
Fri, 14 Apr 2017 08:31:12 +0000 (10:31 +0200)
committerArchit Taneja <architt@codeaurora.org>
Thu, 20 Apr 2017 09:02:51 +0000 (14:32 +0530)
commita7d555d2f2bd675d641e742a202a5e4b37d4d019
tree3090925841035c4af3f9fa7d7a285d5630d398b6
parent553c942f8b2cbc7394b4d4fa2f848b23a8f07451
drm: dw-hdmi: add specific I2S and AHB functions for stream handling

Currently, CTS+N is forced to zero as a workaround of the IP block for
i.MX platforms. This is requested in the datasheet of the corresponding
IP for AHB mode only. However, we have seen that it introduces glitches
or delays when playing a sound on HDMI for I2S mode. This proves that we
cannot keep the current functions for handling audio stream as-is if
these contain workaround that are specific to a mode.

This commit introduces two callbacks, one for each variant.
dw_hdmi_setup defines the right function depending on the detected
variant. Then, the exported functions dw_hdmi_audio_enable and
dw_hdmi_audio_disable calls the corresponding callbacks

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170414083113.4255-2-romain.perier@collabora.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c