summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/zte/zx_vou.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2016-12-01 17:20:31 +0800
committerShawn Guo <shawn.guo@linaro.org>2017-01-28 10:17:39 +0800
commit83d7115250c181da6dacd187671e174f8be71dfd (patch)
tree85e9ffe28dcd3ec58cc8881fa34faf30ec3f4003 /drivers/gpu/drm/zte/zx_vou.h
parent1aaaac1f955ba0eeca1f7e4587456e1ab8162a5a (diff)
downloadlinux-83d7115250c181da6dacd187671e174f8be71dfd.tar.bz2
drm: zte: support hdmi audio through spdif
It enables HDMI audio support through SPDIF interface based on generic hdmi-audio-codec driver. The HDMI hardware supports more audio interfaces than SPDIF, like I2S, which may be added later. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/zte/zx_vou.h')
-rw-r--r--drivers/gpu/drm/zte/zx_vou.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/zte/zx_vou.h b/drivers/gpu/drm/zte/zx_vou.h
index 349e06cd86f4..e571b888a3ca 100644
--- a/drivers/gpu/drm/zte/zx_vou.h
+++ b/drivers/gpu/drm/zte/zx_vou.h
@@ -30,6 +30,14 @@ enum vou_inf_data_sel {
VOU_RGB_666 = 3,
};
+enum vou_inf_hdmi_audio {
+ VOU_HDMI_AUD_SPDIF = BIT(0),
+ VOU_HDMI_AUD_I2S = BIT(1),
+ VOU_HDMI_AUD_DSD = BIT(2),
+ VOU_HDMI_AUD_HBR = BIT(3),
+ VOU_HDMI_AUD_PARALLEL = BIT(4),
+};
+
struct vou_inf {
enum vou_inf_id id;
enum vou_inf_data_sel data_sel;
@@ -37,6 +45,8 @@ struct vou_inf {
u32 clocks_sel_bits;
};
+void vou_inf_hdmi_audio_sel(struct drm_crtc *crtc,
+ enum vou_inf_hdmi_audio aud);
void vou_inf_enable(const struct vou_inf *inf, struct drm_crtc *crtc);
void vou_inf_disable(const struct vou_inf *inf, struct drm_crtc *crtc);