XenevaOS
Loading...
Searching...
No Matches
drm_audio_component.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright © 2014 Intel Corporation
3
4#ifndef _DRM_AUDIO_COMPONENT_H_
5#define _DRM_AUDIO_COMPONENT_H_
6
7#include <linux/completion.h>
8#include <linux/types.h>
9
11struct device;
12
20 struct module *owner;
29 unsigned long (*get_power)(struct device *);
35 void (*put_power)(struct device *, unsigned long);
39 void (*codec_wake_override)(struct device *, bool enable);
43 int (*get_cdclk_freq)(struct device *);
50 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate);
63 int (*get_eld)(struct device *, int port, int pipe, bool *enabled,
64 unsigned char *buf, int max_bytes);
65};
66
74 void *audio_ptr;
83 void (*pin_eld_notify)(void *audio_ptr, int port, int pipe);
90 int (*pin2port)(void *audio_ptr, int pin);
97 int (*master_bind)(struct device *dev, struct drm_audio_component *);
104 void (*master_unbind)(struct device *dev, struct drm_audio_component *);
105};
106
128
129#endif /* _DRM_AUDIO_COMPONENT_H_ */
bool enabled
Definition compose3d.cpp:135
const struct device * dev
Definition drm_print.h:519
Definition completion.h:55
Definition fs.h:255
Definition drm_audio_component.h:70
void(* pin_eld_notify)(void *audio_ptr, int port, int pipe)
Definition drm_audio_component.h:83
void * audio_ptr
Definition drm_audio_component.h:74
void(* master_unbind)(struct device *dev, struct drm_audio_component *)
Definition drm_audio_component.h:104
int(* pin2port)(void *audio_ptr, int pin)
Definition drm_audio_component.h:90
int(* master_bind)(struct device *dev, struct drm_audio_component *)
Definition drm_audio_component.h:97
Definition drm_audio_component.h:16
unsigned long(* get_power)(struct device *)
Definition drm_audio_component.h:29
struct module * owner
Definition drm_audio_component.h:20
void(* put_power)(struct device *, unsigned long)
Definition drm_audio_component.h:35
int(* sync_audio_rate)(struct device *, int port, int pipe, int rate)
Definition drm_audio_component.h:50
void(* codec_wake_override)(struct device *, bool enable)
Definition drm_audio_component.h:39
int(* get_eld)(struct device *, int port, int pipe, bool *enabled, unsigned char *buf, int max_bytes)
Definition drm_audio_component.h:63
int(* get_cdclk_freq)(struct device *)
Definition drm_audio_component.h:43
Definition drm_audio_component.h:110
const struct drm_audio_component_audio_ops * audio_ops
Definition drm_audio_component.h:122
struct device * dev
Definition drm_audio_component.h:114
const struct drm_audio_component_ops * ops
Definition drm_audio_component.h:118
struct completion master_bind_complete
Definition drm_audio_component.h:126