提交 5d453746 编写于 作者: J Jani Nikula

drm/i915/audio: move intel_audio_funcs internal to intel_audio.c

It's all internal to intel_audio.c.

Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NLucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211104161858.21786-4-jani.nikula@intel.com
上级 37388c01
...@@ -62,6 +62,15 @@ ...@@ -62,6 +62,15 @@
* struct &i915_audio_component_audio_ops @audio_ops is called from i915 driver. * struct &i915_audio_component_audio_ops @audio_ops is called from i915 driver.
*/ */
struct intel_audio_funcs {
void (*audio_codec_enable)(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state,
const struct drm_connector_state *conn_state);
void (*audio_codec_disable)(struct intel_encoder *encoder,
const struct intel_crtc_state *old_crtc_state,
const struct drm_connector_state *old_conn_state);
};
/* DP N/M table */ /* DP N/M table */
#define LC_810M 810000 #define LC_810M 810000
#define LC_540M 540000 #define LC_540M 540000
......
...@@ -364,15 +364,6 @@ struct intel_color_funcs { ...@@ -364,15 +364,6 @@ struct intel_color_funcs {
void (*read_luts)(struct intel_crtc_state *crtc_state); void (*read_luts)(struct intel_crtc_state *crtc_state);
}; };
struct intel_audio_funcs {
void (*audio_codec_enable)(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state,
const struct drm_connector_state *conn_state);
void (*audio_codec_disable)(struct intel_encoder *encoder,
const struct intel_crtc_state *old_crtc_state,
const struct drm_connector_state *old_conn_state);
};
struct intel_cdclk_funcs { struct intel_cdclk_funcs {
void (*get_cdclk)(struct drm_i915_private *dev_priv, void (*get_cdclk)(struct drm_i915_private *dev_priv,
struct intel_cdclk_config *cdclk_config); struct intel_cdclk_config *cdclk_config);
...@@ -829,6 +820,7 @@ struct i915_selftest_stash { ...@@ -829,6 +820,7 @@ struct i915_selftest_stash {
}; };
/* intel_audio.c private */ /* intel_audio.c private */
struct intel_audio_funcs;
struct intel_audio_private { struct intel_audio_private {
/* Display internal audio functions */ /* Display internal audio functions */
const struct intel_audio_funcs *funcs; const struct intel_audio_funcs *funcs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册