xref: /linux/drivers/gpu/drm/i915/display/intel_audio.h (revision 34f7c6e7d4396090692a09789db231e12cb4762b)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_AUDIO_H__
7 #define __INTEL_AUDIO_H__
8 
9 struct drm_connector_state;
10 struct drm_i915_private;
11 struct intel_crtc_state;
12 struct intel_encoder;
13 
14 void intel_audio_hooks_init(struct drm_i915_private *dev_priv);
15 void intel_audio_codec_enable(struct intel_encoder *encoder,
16 			      const struct intel_crtc_state *crtc_state,
17 			      const struct drm_connector_state *conn_state);
18 void intel_audio_codec_disable(struct intel_encoder *encoder,
19 			       const struct intel_crtc_state *old_crtc_state,
20 			       const struct drm_connector_state *old_conn_state);
21 void intel_audio_cdclk_change_pre(struct drm_i915_private *dev_priv);
22 void intel_audio_cdclk_change_post(struct drm_i915_private *dev_priv);
23 void intel_audio_init(struct drm_i915_private *dev_priv);
24 void intel_audio_deinit(struct drm_i915_private *dev_priv);
25 
26 #endif /* __INTEL_AUDIO_H__ */
27