acpi_nhlt_en...nt_mic_count(9)
π acpi_nhlt_en...nt_mic_count(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, we're in kernel-land now π§β¨ this little page is all about acpi_nhlt_endpoint_mic_count, and it's genuinely one of the more chill functions you'll meet here. no cap.
β¨ NAME β¨
acpi_nhlt_endpoint_mic_count β literally just retrieves the number of digital microphones for a PDM endpoint π€π¦
that's it. that's the whole job. she's focused. she's iconic. she knows exactly one thing and she does it π
πΈ SYNOPSIS πΈ
int acpi_nhlt_endpoint_mic_count (const struct acpi_nhlt_endpoint *ep );
like, look at her. int in, int out, one const struct acpi_nhlt_endpoint * argument, and she's not even gonna modify it because it's const β respectful queen behavior π note the trailing space before the ) in the signature, we're keeping it exactly as written, fr fr.
π ARGUMENTS π
epβ the endpoint you want the microphone count for π€ like, hand her the endpoint and she'll tell you how many mics are in there. that's the vibe check she's running.
π RETURN π
she returns a number of microphones π§β¨
or β and this is the important part, bestie, don't skip it π β an error code if an invalid endpoint is provided. so if you hand her nonsense, she's not gonna pretend, she's gonna hand you back an error code. respect.
β οΈ lowkey the whole lesson here: check your endpoint before you call, or be ready to actually handle that error code. no silent failures, no vibes-based error handling π
π¦ SEE ALSO π¦
kernel file: ./drivers/acpi/nhlt.c π (yes, that's where she lives, go say hi)
and her whole friend group, all of them, in order, no one gets left out π«Ά:
acpi_nhlt_get_gbl_table(9)acpi_nhlt_put_gbl_table(9)acpi_nhlt_endpoint_match(9)acpi_nhlt_tb_find_endpoint(9)acpi_nhlt_find_endpoint(9)acpi_nhlt_endpoint_find_fmtcfg(9)acpi_nhlt_tb_find_fmtcfg(9)acpi_nhlt_find_fmtcfg(9)
that's eight whole functions. the squad is deep, and honestly? obsessed π
and that's the page, bestie!! π this gorgeous little number ships out of ./drivers/acpi, dated October 2026, and answers to the name acpi_nhlt_en...nt_mic_count(9) β yes the name is truncated with ... in the real header, no we're not fixing it, it's part of the charm ππ now go count some mics, you've got this π§β¨
π¦ 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