dm_test_eld...kes_callback(9)
π dm_test_eld_notify_invokes_callback β a Kernel API Manual moment β¨
okay bestie, so this one lives in the Kernel API Manual (section 9, the kernel-api girlies) and it's a KUnit test that checks the ELD notify path actually forwards to the hda driver. tiny function, big responsibility, we love to see it π
πΈ NAME πΈ
dm_test_eld_notify_invokes_callback β Test ELD notify forwards to hda driver
like... that's the whole vibe. the test exists to prove the forwarding happens. periodt π
β¨ SYNOPSIS β¨
void dm_test_eld_notify_invokes_callback (struct kunit *test );
no cap, that's it. one parameter, in and out, clean π«Ά
π¦ ARGUMENTS π¦
testβ The KUnit test context. that's the KUnitstruct kunit *handle the framework hands you, the little main-character object everything in the test hangs off of π
β DESCRIPTION β
okay so here's the tea π: when a component with a pin_eld_notify callback gets registered, the notify helper must invoke it β and it has to hand over the audio pointer and the requested pin. that's the contract. that's what we're checking. the test context (test) gets passed through, the framework does its thing, and the assertion is basically "bestie, did you actually call the callback with the right stuff?" πβ¨
it's giving "trust but verify." the notify helper is the middleman, and this test makes sure the middleman isn't ghosting the callback π
π₯ SEE ALSO π₯
the whole friend group, no one left out π«Ά
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.cdm_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_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_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: all those (9) friends are separate manual pages, so go read them if you want the full lore. iykyk π
okay that's the whole page, bestie! π the source/version line up top is ./drivers/gpu/drm/amd/display/... and the date is October 2026, so bookmark accordingly π mwah, go run some KUnit tests, slay πβ¨
π¦ 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