| 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 intel_crtc_state; |
| 13 | struct intel_display; |
| 14 | struct intel_encoder; |
| 15 | |
| 16 | void intel_audio_hooks_init(struct intel_display *display); |
| 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 intel_display *display); |
| 29 | void intel_audio_cdclk_change_post(struct intel_display *display); |
| 30 | int intel_audio_min_cdclk(const struct intel_crtc_state *crtc_state); |
| 31 | void intel_audio_init(struct intel_display *display); |
| 32 | void intel_audio_register(struct intel_display *display); |
| 33 | void intel_audio_deinit(struct intel_display *display); |
| 34 | |
| 35 | #endif /* __INTEL_AUDIO_H__ */ |
| 36 |
