dm_test_audi...eld_no_match(9)
π dm_test_audi...eld_no_match(9) β a little love letter from the Kernel API Manual
okay so bestie, welcome to the Kernel API Manual page for dm_test_audi...eld_no_match π yes the title is truncated, that's just how it lives, we don't judge. This is a KUnit test function and it's honestly iconic in the most lowkey way β it's the one that checks what happens when ELD lookup just... misses. Nothing found. Empty. A little void where the data should be. And it slays at proving the driver handles that gracefully β¨
πΈ NAME πΈ
dm_test_audio_component_get_eld_no_match β Test ELD lookup miss π
Like, the whole entire point of this test is: what happens when the lookup for a matching connector comes up empty? (spoiler: everything behaves. no cap.)
β¨ SYNOPSIS β¨
void dm_test_audio_component_get_eld_no_match (struct kunit *test );
bestie it returns void. it's a test. it doesn't need to return anything, it just needs to know things π«Ά
π¦ ARGUMENTS π¦
testβ The KUnit test context π this is the lil bundle of test-state the KUnit framework hands you. it's giving "here's your clipboard, go be a main character."
π₯ DESCRIPTION π₯
okay so here's the vibe check π
A non-matching connector should leave the audio port disabled and return an empty ELD size without copying data. That's it. That's the whole test.
Let me say it again because it's important, fr fr: when the connector doesn't match, the audio port stays disabled π΄, the ELD size comes back empty, and no data gets copied β not one byte, not one sneaky little memcpy, nothing. The test is literally just vibing there making sure nothing happens when nothing should happen. Honestly? Queen behavior. π
no data copying means no data copying, and this test is the bouncer at the door making sure of it π«
π SEE ALSO π
π Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.cπ
π the whole friend group (go say hi)
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_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)
okay that's the whole page, you ate it, I'm obsessed π§
<cute>sign-off time:</cute> this lil masterpiece came from the source ./drivers/gpu/drm/amd/display/... and it's dated October 2026, filed under dm_test_audi...eld_no_match(9) β go forth and run your tests, bestie, they're gonna pass πβπ
π¦ 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