drm_connect...i_audio_init(9)
πΈ drm_connector_hdmi_audio_init β NAME πΈ
okay so bestie, this is the Kernel API Manual entry for drm_connector_hdmi_audio_init β and it literally does what it says on the tin: it initializes the HDMI Codec device for your DRM connector π like, that's the whole vibe.
β¨ SYNOPSIS β¨
int drm_connector_hdmi_audio_init (struct drm_connector *connector ,
struct device *hdmi_codec_dev , const struct
drm_connector_hdmi_audio_funcs *funcs , unsigned int
max_i2s_playback_channels , u64 i2s_formats , bool spdif_playback , int
dai_port );
no cap, that's seven whole arguments, she's an icon with a lot going on π
π«Ά ARGUMENTS π«Ά
connectorβ a pointer to the connector you're allocating the codec for. this is the main character of the call fr fr πhdmi_codec_devβ the device that's gonna be used as the parent for the HDMI Codec. think of it as the parental supervision, very responsible of it π§funcsβ the callbacks for this HDMI Codec. this is where you tell it how to actually behave πmax_i2s_playback_channelsβ the maximum number of playback I2S channels. yes, maximum, not infinite, we are not gods πi2s_formatsβ the set of I2S formats. cute little detail: pass0if you want a bus-specific set πspdif_playbackβ set this if the HDMI codec has an S/PDIF playback port. it's a bool, so like, yes or no, no in-between π¦dai_portβ the sound DAI port, and you pass-1if it's not enabled. she's allowed to be off, we respect her boundaries π
π DESCRIPTION π
Create a HDMI codec device to be used with the specified connector. that's it, that's the whole thing β but the way that it's one sentence long and still ate?? periodt π₯
β RETURN β
- Zero on success π slay!
- error code on failure π β not slay, but at least it tells you.
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/display/drm_hdmi_audio_helper.cβ go read her, she's got the lore, iykyk πβ¨
and that's the page bestie!! sign-off time: this little masterpiece lives in ./drivers/gpu/drm/display, it's dated October 2026, and it came to you straight from the Kernel API Manual β drink some water, go call your mom, and may all your return values be zero ππΈππ«Ά
π¦ 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