| 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 intel_display; | 
|---|
| 14 |  | 
|---|
| 15 | #ifdef I915 | 
|---|
| 16 | int  intel_lpe_audio_init(struct intel_display *display); | 
|---|
| 17 | void intel_lpe_audio_teardown(struct intel_display *display); | 
|---|
| 18 | void intel_lpe_audio_irq_handler(struct intel_display *display); | 
|---|
| 19 | void intel_lpe_audio_notify(struct intel_display *display, | 
|---|
| 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 intel_display *display) | 
|---|
| 24 | { | 
|---|
| 25 | return -ENODEV; | 
|---|
| 26 | } | 
|---|
| 27 | static inline void intel_lpe_audio_teardown(struct intel_display *display) | 
|---|
| 28 | { | 
|---|
| 29 | } | 
|---|
| 30 | static inline void intel_lpe_audio_irq_handler(struct intel_display *display) | 
|---|
| 31 | { | 
|---|
| 32 | } | 
|---|
| 33 | static inline void intel_lpe_audio_notify(struct intel_display *display, | 
|---|
| 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 |  | 
|---|