STRUCT DRM_AUDIO_COMPONENT_AUDIO_OPS(9)
okay so welcome to the Kernel API Manual page for struct drm_audio_component_audio_ops β the header is doing its little truncation moment as struct drm_a...nt_audio_ops(9), and honestly? iconic π
πΈ NAME πΈ
struct drm_audio_component_audio_ops β ops implemented by hda driver, called by DRM driver</p> π
β¨ SYNOPSIS β¨
bestie, here's the struct in all its glory β every field stays exactly as written, no cap:
struct drm_audio_component_audio_ops {
void *audio_ptr;
void (*pin_eld_notify)(void *audio_ptr, int port, int pipe);
int (*pin2port)(void *audio_ptr, int pin);
int (*master_bind)(struct device *dev, struct drm_audio_component *);
void (*master_unbind)(struct device *dev, struct drm_audio_component *);
};
π Members π
okay so these are the members, and they're lowkey the whole point:
audio_ptrβ pointer to be used in call topin_eld_notifyπ«Άpin_eld_notifyβ notify the HDA driver that pin sense and/or ELD information has changed. Called when the DRM driver has set up audio pipeline or has just begun to tear it down. This allows the HDA driver to update its status accordingly (even when the HDA controller is in power save mode). π₯pin2portβ check and convert from pin node to port number. Called by HDA driver to check and convert from the pin widget node number to a port number in the graphics side. π¦master_bindβ (Optional) component master bind callback. Called at binding master component, for HDA codec-specific handling of dynamic binding. β¨master_unbindβ (Optional) component master unbind callback. Called at unbinding master component, for HDA codec-specific handling of dynamic unbinding. π
π₯ SEE ALSO π₯
Kernel file ./include/drm/drm_audio_component.h, plus struct drm_audio_component_ops(9) and struct drm_audio_component(9) β go read those too, bestie π
π footer tea: source/version is ./include/drm, dated October 2026, and the header/footer name is struct drm_a...nt_audio_ops(9). that's the whole manual page β periodt π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms