dm_test_aud...ets_defaults(9)
π dm_test_aud...ets_defaults(9) β Kernel API Manual, but make it a group chat
Hey bestie, welcome to the kernel API manual for this one, and yes the title on the page is dm_test_aud...ets_defaults(9) β it's truncated like that on purpose, it's not a typo, the manpage just ran out of room to be dramatic π
πΈ NAME πΈ
dm_test_audio_init_pins_sets_defaults β ok so basically this is the test that checks your pin entries got initialised to their default values, love that for them β¨
π¦ SYNOPSIS π¦
void dm_test_audio_init_pins_sets_defaults (struct kunit *test );
π ARGUMENTS π
testβ the KUnit test context, aka the little world this test lives in π«Ά
π§ DESCRIPTION π§
So what it's testing is that amdgpu_dm_audio_init_pins actually does its job, and there's three things it has to nail:
- it must set
num_pinsfromaudio_countβ¨ - it must reset every pin to the sentinel defaults β that's
-1for rate/channels/bits, and0for the rest π - and it must copy each pin's hardware instance index from
res_pool->audios[i]->instπ
It's giving "check all the boxes" energy and honestly we're obsessed. No cap π―
π₯ SEE ALSO π₯
The kernel file lives right here, no cap:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_audio_test.c
And here's the whole squad of sibling tests β go say hi to all of them, there's a lot, don't skip any π:
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_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)
Ok that's the whole page, every detail intact, nothing skipped, we ate and left no crumbs ππ
Sign-off time: this gem came out of ./drivers/gpu/drm/amd/display/... and it's dated October 2026, filed under dm_test_aud...ets_defaults(9). Slay, see u in the next manpage bestie πππ
π¦ 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