sdca_regmap_count_constants(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sdca_regmap_count_constants ✨

okay so bestie, this one lives in the Kernel API Manual (section 9, the kernel-functions girlies πŸ’…) and it's literally just here to count stuff for you. no cap.


🌸 NAME 🌸

sdca_regmap_count_constants β€” counts the number of DisCo constant Controls πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int sdca_regmap_count_constants (struct device *dev , struct
       sdca_function_data *function );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” a pointer to the device, bestie. 🫢
  • function β€” a pointer to the Function information, which is the thing getting parsed. πŸ”

πŸ’« DESCRIPTION πŸ’«

So this function returns the number of DisCo constant Controls that are present in a function. iconic behaviour honestly.

typically you'd use this information to populate the regmap defaults array β€” which is the slay part, because it lets drivers access the values of DisCo constants exactly like they would any other physical register. same energy, no special-casing. ✨


πŸ”₯ RETURN πŸ”₯

it returns the number of DisCo constant controls… or a negative error code on failure 😭 (yeah, check that return value, don't be that girl).


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./sound/soc/sdca/sdca_regmap.c plus the whole friend group:


this page is straight from ./sound/soc/sdca, dated October 2026 β€” and yes, it's sdca_regmap_count_constants(9) the whole way through. periodt. πŸ’œ

go count those constants, bestie, you're gonna ate πŸŒˆβ­πŸ’…

πŸ“¦ where this page comes from