xref: /linux/drivers/gpu/drm/i915/display/intel_lpe_audio.h (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_LPE_AUDIO_H__
7 #define __INTEL_LPE_AUDIO_H__
8 
9 #include <linux/types.h>
10 
11 enum port;
12 enum transcoder;
13 struct drm_i915_private;
14 
15 #ifdef I915
16 int  intel_lpe_audio_init(struct drm_i915_private *dev_priv);
17 void intel_lpe_audio_teardown(struct drm_i915_private *dev_priv);
18 void intel_lpe_audio_irq_handler(struct drm_i915_private *dev_priv);
19 void intel_lpe_audio_notify(struct drm_i915_private *dev_priv,
20 			    enum transcoder cpu_transcoder, enum port port,
21 			    const void *eld, int ls_clock, bool dp_output);
22 #else
23 static inline int intel_lpe_audio_init(struct drm_i915_private *dev_priv)
24 {
25 	return -ENODEV;
26 }
27 static inline void intel_lpe_audio_teardown(struct drm_i915_private *dev_priv)
28 {
29 }
30 static inline void intel_lpe_audio_irq_handler(struct drm_i915_private *dev_priv)
31 {
32 }
33 static inline void intel_lpe_audio_notify(struct drm_i915_private *dev_priv,
34 					  enum transcoder cpu_transcoder, enum port port,
35 					  const void *eld, int ls_clock, bool dp_output)
36 {
37 }
38 #endif
39 
40 #endif /* __INTEL_LPE_AUDIO_H__ */
41