Commit 2c348e50 authored by Arnaud Pouliquen's avatar Arnaud Pouliquen Committed by Benjamin Gaignard

drm: sti: Add ASoC generic hdmi codec support.

Add the interface needed by audio hdmi-codec driver.
Signed-off-by: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
parent 4d703770
...@@ -7,5 +7,6 @@ config DRM_STI ...@@ -7,5 +7,6 @@ config DRM_STI
select DRM_KMS_CMA_HELPER select DRM_KMS_CMA_HELPER
select DRM_PANEL select DRM_PANEL
select FW_LOADER select FW_LOADER
select SND_SOC_HDMI_CODEC if SND_SOC
help help
Choose this option to enable DRM on STM stiH41x chipset Choose this option to enable DRM on STM stiH41x chipset
This diff is collapsed.
...@@ -23,6 +23,13 @@ struct hdmi_phy_ops { ...@@ -23,6 +23,13 @@ struct hdmi_phy_ops {
void (*stop)(struct sti_hdmi *hdmi); void (*stop)(struct sti_hdmi *hdmi);
}; };
struct hdmi_audio_params {
bool enabled;
unsigned int sample_width;
unsigned int sample_rate;
struct hdmi_audio_infoframe cea;
};
/* values for the framing mode property */ /* values for the framing mode property */
enum sti_hdmi_modes { enum sti_hdmi_modes {
HDMI_MODE_HDMI, HDMI_MODE_HDMI,
...@@ -67,6 +74,9 @@ static const struct drm_prop_enum_list colorspace_mode_names[] = { ...@@ -67,6 +74,9 @@ static const struct drm_prop_enum_list colorspace_mode_names[] = {
* @ddc_adapt: i2c ddc adapter * @ddc_adapt: i2c ddc adapter
* @colorspace: current colorspace selected * @colorspace: current colorspace selected
* @hdmi_mode: select framing for HDMI or DVI * @hdmi_mode: select framing for HDMI or DVI
* @audio_pdev: ASoC hdmi-codec platform device
* @audio: hdmi audio parameters.
* @drm_connector: hdmi connector
*/ */
struct sti_hdmi { struct sti_hdmi {
struct device dev; struct device dev;
...@@ -89,6 +99,9 @@ struct sti_hdmi { ...@@ -89,6 +99,9 @@ struct sti_hdmi {
struct i2c_adapter *ddc_adapt; struct i2c_adapter *ddc_adapt;
enum hdmi_colorspace colorspace; enum hdmi_colorspace colorspace;
enum sti_hdmi_modes hdmi_mode; enum sti_hdmi_modes hdmi_mode;
struct platform_device *audio_pdev;
struct hdmi_audio_params audio;
struct drm_connector *drm_connector;
}; };
u32 hdmi_read(struct sti_hdmi *hdmi, int offset); u32 hdmi_read(struct sti_hdmi *hdmi, int offset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment