diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-27 13:50:58 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-08-18 12:27:15 +0200 |
commit | b5814fff27c6d0212b86306bdd01fe3aea99cabb (patch) | |
tree | edc2ebd40a0847df99649a1949136bd49847c251 /include/drm | |
parent | drm: bridge/dw_hdmi: remove mhsyncpolarity/mvsyncpolarity/minterlaced (diff) | |
download | linux-b5814fff27c6d0212b86306bdd01fe3aea99cabb.tar.xz linux-b5814fff27c6d0212b86306bdd01fe3aea99cabb.zip |
drm: bridge/dw_hdmi: introduce interface to setting sample rate
Introduce dw_hdmi_set_sample_rate(), which allows us to configure the
audio sample rate, setting the CTS/N values appropriately.
Tested-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/bridge/dw_hdmi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h index de13bfc35634..763af51e1d60 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -12,6 +12,8 @@ #include <drm/drmP.h> +struct dw_hdmi; + enum { DW_HDMI_RES_8, DW_HDMI_RES_10, @@ -59,4 +61,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master, void *data, struct drm_encoder *encoder, struct resource *iores, int irq, const struct dw_hdmi_plat_data *plat_data); + +void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate); + #endif /* __IMX_HDMI_H__ */ |