dm_test_comm...back_removal(9)
π dm_test_comm...back_removal(9) β like, the Kernel API Manual, bestie β¨
okay so real talk, this is a page from the Kernel API Manual, and the function name got truncated in the header because it's long β the actual star of the show is dm_test_commit_audio_skips_writeback_removal. She's iconic, she's a KUnit test, and she's here to make sure writeback connectors don't get their audio messed with. π
πΈ NAME πΈ
dm_test_commit_audio_skips_writeback_removal β the test that checks writeback removal gets skipped. no cap. π
β¨ SYNOPSIS β¨
void dm_test_commit_audio_skips_writeback_removal (struct kunit *test );
that's it. that's the whole vibe. π¦
π«Ά ARGUMENTS π«Ά
testβ the KUnit test context, aka the little envelope carrying everything this test needs to run. literally the main character of the argument list (and the only one, ngl). π
π DESCRIPTION π
okay so here's the tea β β writeback connectors do not represent an HDA audio pin. like, at all. not even a little. so when those removal-style notifications come through, they should leave the audio instance completely untouched, and this test is the vibe check that confirms it.
the way that this test just exists to make sure nobody touches audio that was never audio in the first place?? obsessed. π₯
no deviating, bestie β the whole point is that the audio instance stays exactly as it was. π
π SEE ALSO π
Kernel file β go read the source, it's giving lore:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.c
and here's the whole friend group, fr fr β every single one of these:
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_notifies_added_connector(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)
like, go read them all, iykyk π§ββοΈ
alright bestie, that's the page π β it came from ./drivers/gpu/drm/amd/display/... and it's dated October 2026, so jot that down in your notes app and go slay some tests. periodt. πβπ
π¦ 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