|
XenevaOS
|
#include <drm_audio_component.h>
Public Attributes | |
| struct module * | owner |
| unsigned long(* | get_power )(struct device *) |
| void(* | put_power )(struct device *, unsigned long) |
| void(* | codec_wake_override )(struct device *, bool enable) |
| int(* | get_cdclk_freq )(struct device *) |
| int(* | sync_audio_rate )(struct device *, int port, int pipe, int rate) |
| int(* | get_eld )(struct device *, int port, int pipe, bool *enabled, unsigned char *buf, int max_bytes) |
struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver
@codec_wake_override: Enable/disable codec wake signal
| int(* drm_audio_component_ops::get_cdclk_freq) (struct device *) |
@get_cdclk_freq: Get the Core Display Clock in kHz
| int(* drm_audio_component_ops::get_eld) (struct device *, int port, int pipe, bool *enabled, unsigned char *buf, int max_bytes) |
@get_eld: fill the audio state and ELD bytes for the given port
Called from audio driver to get the HDMI/DP audio state of the given digital port, and also fetch ELD bytes to the given pointer.
It returns the byte size of the original ELD (not the actually copied size), zero for an invalid ELD, or a negative error code.
Note that the returned size may be over @max_bytes. Then it implies that only a part of ELD has been copied to the buffer.
| unsigned long(* drm_audio_component_ops::get_power) (struct device *) |
@get_power: get the POWER_DOMAIN_AUDIO power well
Request the power well to be turned on.
Returns a wakeref cookie to be passed back to the corresponding call to @put_power.
| struct module* drm_audio_component_ops::owner |
@owner: drm module to pin down
| void(* drm_audio_component_ops::put_power) (struct device *, unsigned long) |
@put_power: put the POWER_DOMAIN_AUDIO power well
Allow the power well to be turned off.
| int(* drm_audio_component_ops::sync_audio_rate) (struct device *, int port, int pipe, int rate) |
@sync_audio_rate: set n/cts based on the sample rate
Called from audio driver. After audio driver sets the sample rate, it will call this function to set n/cts