Add hdmi_audio_init to use audio in hdmi driver.
Change-Id: If878ee4ee4a1665d91a34ef4f5c5f6d2ab60840e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
if (ret < 0)
goto err_cleanup_hdmi;
+ ret = starfive_hdmi_audio_init(hdmi);
+ if (ret)
+ dev_err(dev, "failed to audio init\n");
+
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev, 500);
pm_runtime_enable(&pdev->dev);
const struct post_pll_config *post_cfg;
};
+int starfive_hdmi_audio_init(struct starfive_hdmi *hdmi);
+inline u8 hdmi_readb(struct starfive_hdmi *hdmi, u16 offset);
+inline void hdmi_writeb(struct starfive_hdmi *hdmi, u16 offset, u32 val);
+inline void hdmi_modb(struct starfive_hdmi *hdmi, u16 offset,
+ u32 msk, u32 val);
+
#endif /* __STARFIVE_HDMI_H__ */