2019-05-02 18:02:41 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_LPE_AUDIO_H__
|
|
|
|
#define __INTEL_LPE_AUDIO_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
enum port;
|
2023-02-22 17:14:54 +02:00
|
|
|
enum transcoder;
|
2025-01-08 16:04:14 +02:00
|
|
|
struct intel_display;
|
2019-05-02 18:02:41 +03:00
|
|
|
|
2023-09-12 14:06:32 +03:00
|
|
|
#ifdef I915
|
2025-01-08 16:04:14 +02:00
|
|
|
int intel_lpe_audio_init(struct intel_display *display);
|
|
|
|
void intel_lpe_audio_teardown(struct intel_display *display);
|
|
|
|
void intel_lpe_audio_irq_handler(struct intel_display *display);
|
|
|
|
void intel_lpe_audio_notify(struct intel_display *display,
|
2023-02-22 17:14:54 +02:00
|
|
|
enum transcoder cpu_transcoder, enum port port,
|
2019-05-02 18:02:41 +03:00
|
|
|
const void *eld, int ls_clock, bool dp_output);
|
2023-09-12 14:06:32 +03:00
|
|
|
#else
|
2025-01-08 16:04:14 +02:00
|
|
|
static inline int intel_lpe_audio_init(struct intel_display *display)
|
2023-09-12 14:06:32 +03:00
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
2025-01-08 16:04:14 +02:00
|
|
|
static inline void intel_lpe_audio_teardown(struct intel_display *display)
|
2023-09-12 14:06:32 +03:00
|
|
|
{
|
|
|
|
}
|
2025-01-08 16:04:14 +02:00
|
|
|
static inline void intel_lpe_audio_irq_handler(struct intel_display *display)
|
2023-09-12 14:06:32 +03:00
|
|
|
{
|
|
|
|
}
|
2025-01-08 16:04:14 +02:00
|
|
|
static inline void intel_lpe_audio_notify(struct intel_display *display,
|
2023-09-12 14:06:32 +03:00
|
|
|
enum transcoder cpu_transcoder, enum port port,
|
|
|
|
const void *eld, int ls_clock, bool dp_output)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
2019-05-02 18:02:41 +03:00
|
|
|
|
|
|
|
#endif /* __INTEL_LPE_AUDIO_H__ */
|