sdca_regmap_write_defaults(9)
β¨ sdca_regmap_write_defaults β¨
okay so bestie, you're in the Kernel API Manual, section 9, and today's main character is sdca_regmap_write_defaults β a little function that goes and writes out all the DisCo defaults to your device. iconic behavior, honestly. π
πΈ NAME πΈ
sdca_regmap_write_defaults β write out DisCo defaults to device
like, it literally does what it says on the tin, no cap.
π¦ SYNOPSIS π¦
int sdca_regmap_write_defaults (struct device *dev , struct regmap
*regmap , struct sdca_function_data *function );
three pointers in, one int out. she's lowkey a whole vibe. π
π ARGUMENTS π
devβ Pointer to the device. this is the device, bestie. the whole point. π«Άregmapβ Pointer to the Function register map. the map of registers, fr fr.functionβ Pointer to the Function information, to be parsed. she's the one getting parsed, and honestly? she's booked and busy.
π₯ DESCRIPTION π₯
so this function will write out to the hardware all the DisCo default and fixed value controls. all of them. the defaults, the fixed values, the whole little squad. β¨
the way that this works: writing them out causes them to be populated into the cache, and then all your subsequent handling can just happen through a cache sync. so clean. so efficient. we love a cache sync moment. π§
it will also read any non-volatile registers that don't have defaults/fixed values to populate those into the cache too. and why do we care, you ask? because it ensures they are available for reads even when the device is runtime suspended. yes bestie, the reads still gotta read. π
β RETURN β
returns zero on success, and a negative error code on failure. so like, zero = slay, negative = π. check it, always.
π SEE ALSO π
Kernel file ./sound/soc/sdca/sdca_regmap.c, plus the whole friend group:
sdca_regmap_readable(9)sdca_regmap_writeable(9)sdca_regmap_volatile(9)sdca_regmap_deferrable(9)sdca_regmap_mbq_size(9)sdca_regmap_count_constants(9)sdca_regmap_populate_constants(9)
go read them, iykyk. π
ok that's the whole page, go forth and write those defaults π
and that's a wrap, babes β this one came out of ./sound/soc/sdca, dated October 2026, and it lives in the Kernel API Manual forever and ever. periodt. πΈππ¦
π¦ 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