summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-10-23 17:25:45 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-10-26 10:19:15 +0800
commitbb41b563b3c05b088fefbc0e316ecdc9aae59216 (patch)
tree003eba0a2db9e6067b6007538f6ee741e7a33d7e /include/drm
parent538b19ad6f6b6e70a84e823afbdcd5bd37dfc3a1 (diff)
MLK-24916-3: drm: bridge: synopsys: Add HBR support for gp audio
Only non_pcm, 32bit, 192kHz, 8channel streams be recognized as HBR streams. In order to support this feature, need to enhance the API in dw-hdmi driver. The test command is: $iecset -c 4 audio off $aplay -Dhw:4 -r 192000 -c 8 -f S32_LE out_put.spd.iec958 $iecset -c 4 audio on Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/bridge/dw_hdmi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h
index 939b0ae54f0d..b3d67ca1d072 100644
--- a/include/drm/bridge/dw_hdmi.h
+++ b/include/drm/bridge/dw_hdmi.h
@@ -120,7 +120,8 @@ struct dw_hdmi_phy_ops {
void (*update_hpd)(struct dw_hdmi *hdmi, void *data,
bool force, bool disabled, bool rxsense);
void (*setup_hpd)(struct dw_hdmi *hdmi, void *data);
- void (*enable_audio)(struct dw_hdmi *hdmi, void *data, int channel);
+ void (*enable_audio)(struct dw_hdmi *hdmi, void *data, int channel,
+ int width, int rate, int non_pcm);
void (*disable_audio)(struct dw_hdmi *hdmi, void *data);
};
@@ -160,6 +161,8 @@ void dw_hdmi_setup_rx_sense(struct dw_hdmi *hdmi, bool hpd, bool rx_sense);
int dw_hdmi_set_plugged_cb(struct dw_hdmi *hdmi, hdmi_codec_plugged_cb fn,
struct device *codec_dev);
+void dw_hdmi_set_sample_non_pcm(struct dw_hdmi *hdmi, unsigned int non_pcm);
+void dw_hdmi_set_sample_width(struct dw_hdmi *hdmi, unsigned int width);
void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate);
void dw_hdmi_set_channel_count(struct dw_hdmi *hdmi, unsigned int cnt);
void dw_hdmi_set_channel_allocation(struct dw_hdmi *hdmi, unsigned int ca);