dm_test_com...ed_connector(9)
π NAME π
dm_test_commit_audio_notifies_removed_connector β the one where we test the removal notification, bestie π
So real talk, this page lives in the Kernel API Manual (that's the manual name, keep it in mind for the group chat receipts π§Ύ). The title got cropped all cute and mysterious as dm_test_com...ed_connector(9) but the full name is right up there, no cap β¨
π¦ SYNOPSIS π¦
void dm_test_commit_audio_notifies_removed_connector (struct kunit *test
);
π ARGUMENTS π
testβ the KUnit test context π that's it, that's the whole argument list, she's low maintenance
πΈ DESCRIPTION πΈ
Okay so picture this π«Ά: a connector loses its CRTC. Iconic, dramatic, main character moment π. When that happens, commit_audio should do exactly two things, and we're testing both of them, periodt:
- clear its audio instance π§Ή
- notify the audio component for the old pin π’
That's the vibe check this test is running. Nothing more, nothing less, fr fr.
β SEE ALSO β
The kernel file where this whole situation lives π:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.c
And the rest of the audio-test squad, all of them, in order, because leaving anyone out would be rude π:
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_added_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)
π friendly reminder: this is a test for the removal notification path β she's not the removal itself, she's the one holding the clipboard going "mmhm, and then what happened?" π
Okay that's the whole page bestie, go forth and slay those KUnit tests π β¨π·
Sign-off time π β this little masterpiece came from the kernel file path ./drivers/gpu/drm/amd/display/... and it's dated October 2026. Bookmark it, screenshot it, tattoo it, whatever works for you π₯ππ
π¦ 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