dm_test_com...ed_connector(9)
π dm_test_com...ed_connector(9) π
okay bestie so we're in the Kernel API Manual today and this page is literally about dm_test_com...ed_connector β say that five times fast, i can't π anyway it's a KUnit test helper and it's giving "small function, very specific job" and honestly? we respect it.
β¨ NAME β¨
dm_test_commit_audio_notifies_added_connector β the test for when a connector gets added and the audio notification should go off. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
void dm_test_commit_audio_notifies_added_connector (struct kunit *test
);
like, it returns void β it's not here to give you answers, it's here to check things. main character energy fr fr π
π¦ ARGUMENTS π¦
testβ the KUnit test context π§ͺ like yeah it's just the context, but it's the context, you know? everything needs somewhere to live.
π DESCRIPTION π
so here's the lore: when a modeset enables a connector with a stream status, then commit_audio should do two things, no cap:
- store the stream audio instance π
- notify the audio component for that pin π
and that's the whole behaviour being tested. the test literally exists to vibe check that both of those happen. periodt β¨
ngl this one is a test, so if you're reading this hoping for a general-purpose function to call in your own codeβ¦ it's not that, bestie π it's a KUnit test case.
π SEE ALSO π
okay buckle up because this list is long and every single one of these is a friend of the family π«Ά
first, the kernel file where all this lives:
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.cπ
and then, the whole squad π:
dm_test_audio_init_disabled(9)dm_test_audio_init_enabled_success(9)dm_test_audio_fini_without_enabled_audio(9)dm_test_fill_audio_info_ids_name_flags(9)dm_test_fill_audio_info_cea_lt_3_skips_modes(9)dm_test_fill_audio_info_cea_ge_3_copies_modes(9)dm_test_fill_audio_info_latency_present(9)dm_test_fill_audio_info_latency_absent_keeps_zero(9)dm_test_fill_audio_info_cea_ge_3_zero_modes(9)dm_test_audio_component_bind_sets_fields(9)dm_test_audio_component_unbind_clears_fields(9)dm_test_eld_notify_invokes_callback(9)dm_test_eld_notify_no_component(9)dm_test_eld_notify_null_audio_ops(9)dm_test_eld_notify_null_callback(9)dm_test_audio_init_pins_sets_defaults(9)dm_test_audio_init_pins_zero_count(9)dm_test_audio_component_get_eld_copies_matching_connector(9)dm_test_audio_component_get_eld_no_match(9)dm_test_commit_audio_notifies_removed_connector(9)dm_test_commit_audio_skips_writeback_removal(9)dm_test_commit_audio_skips_without_new_crtc_state(9)dm_test_commit_audio_skips_without_stream_status(9)dm_test_commit_audio_skips_detached_connector(9)dm_test_commit_audio_skips_without_modeset(9)dm_test_commit_audio_skips_addition_without_stream(9)dm_test_commit_audio_skips_writeback_addition(9)
every single one, accounted for, not a single name dropped πβ¨
source/version: ./drivers/gpu/drm/amd/display/... β’ date: October 2026 β’ and the page itself is dm_test_com...ed_connector(9), iconic from start to finish π
π
anyway bestie that's the page, go read the other 27 now, i'll wait π«Άπ¦
π¦ 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