msm_dp_audio_get(9)
π msm_dp_audio_get(9) β like, the kernel API manual one π
okay bestie, so this is a page straight out of the kernel API manual, and it's about one lil function: msm_dp_audio_get. name says it all tbh β you're getting the DP audio thing. β¨
πΈ NAME πΈ
msm_dp_audio_get β and honestly? the original page leaves the description blank after the dash π so all the tea is down in DESCRIPTION. keep reading, i promise it's worth it.
π¦ SYNOPSIS π¦
struct msm_dp_audio * msm_dp_audio_get (struct platform_device *pdev ,
void __iomem *link_base );
like, you hand it two things and it hands you back a struct msm_dp_audio *. iconic behavior ngl. π
π ARGUMENTS π
pdevβ the caller's platform device instance. basically your device, the one doing the asking. π«Άlink_baseβ a pointer to themsm_dp_linkresource. that's the link base address, mwah. π
β¨ DESCRIPTION β¨
so what does it do? it creates an instance of dp audio. that's the whole vibe. π΅
and if things go sideways, it returns an error code. otherwise β when everything slays β you get back an instance of the newly created msm_dp_module. periodt. π
no cap tho: failure means you're getting an error code, not an instance. check your return value, bestie, don't just assume. π
π₯ SEE ALSO π₯
- the kernel file
./drivers/gpu/drm/msm/dp/dp_audio.hβ go read it, iykyk π struct msm_dp_audio(9)msm_dp_audio_put(9)β the one that gives it back, because what goes up must come down π¦
and that's the whole page, bestie! π«Ά this lil gem lives at ./drivers/gpu/drm/msm/dp and the page itself is dated October 2026 β mark your calendars, mwah ππβ
π¦ 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