dm_test_fil...3_zero_modes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this one is dm_test_fill_audio_info_cea_ge_3_zero_modes β€” a KUnit test for the "cea >= 3 but zero modes" situation, and yes it's from the Kernel API Manual (section 9, kernel-doc girlies rise) ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void dm_test_fill_audio_info_cea_ge_3_zero_modes (struct kunit *test );

that's it. that's the whole signature. slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context, aka the little ✨vibe container✨ that KUnit hands you so the test knows where it lives.

🌸 DESCRIPTION 🌸

okay so picture this 😭 β€” cea_rev >= 3, right? so everyone's like "oh the sink definitely has audio modes, bestie, it's a modern revision." but plot twist: the sink reports no audio modes. none. zero. a whole empty roster πŸ’€

and the rule is: in that case, mode_count must be copied as 0, and no mode entries should be populated. like, don't invent modes. don't fill the array with ghosts. the count is zero and the entries stay unpopulated, periodt 🫢

that's literally what this test is here to verify. main character energy for an empty list, honestly πŸ‘‘

ngl this is the exact kind of regression test that quietly saves your whole afternoon later. no cap.

πŸ‘‘ SEE ALSO πŸ‘‘

the Kernel file lives here β€” go read the source, it's giving committed:

./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.c

and here's the whole friend group 😀 every single one, in order, no one gets left out:


and that's the whole page, bestie 🌈 sourced from ./drivers/gpu/drm/amd/display/... and dated October 2026 β€” go forth and test those zero modes, i believe in u fr fr πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from