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 #include <linux/types.h> 10 11 struct drm_connector_state; 12 struct drm_i915_private; 13 struct intel_crtc_state; 14 struct intel_encoder; 15 16 void intel_audio_hooks_init(struct drm_i915_private *dev_priv); 17 bool intel_audio_compute_config(struct intel_encoder *encoder, 18 struct intel_crtc_state *crtc_state, 19 struct drm_connector_state *conn_state); 20 void intel_audio_codec_enable(struct intel_encoder *encoder, 21 const struct intel_crtc_state *crtc_state, 22 const struct drm_connector_state *conn_state); 23 void intel_audio_codec_disable(struct intel_encoder *encoder, 24 const struct intel_crtc_state *old_crtc_state, 25 const struct drm_connector_state *old_conn_state); 26 void intel_audio_codec_get_config(struct intel_encoder *encoder, 27 struct intel_crtc_state *crtc_state); 28 void intel_audio_cdclk_change_pre(struct drm_i915_private *dev_priv); 29 void intel_audio_cdclk_change_post(struct drm_i915_private *dev_priv); 30 void intel_audio_init(struct drm_i915_private *dev_priv); 31 void intel_audio_register(struct drm_i915_private *i915); 32 void intel_audio_deinit(struct drm_i915_private *dev_priv); 33 void intel_audio_sdp_split_update(struct intel_encoder *encoder, 34 const struct intel_crtc_state *crtc_state); 35 36 #endif /* __INTEL_AUDIO_H__ */ 37