STRUCT ADAU1781_PLATFORM_DATA(9)
π struct adau1781_platform_data β ADAU1781 Codec driver platform data
okay bestie so this is from the Kernel API Manual, and it's literally just a little struct that carries the vibe-setting details for the ADAU1781 Codec driver π like it's not code you run, it's the lil envelope of preferences you hand over so the driver knows how to behave. no cap, it's giving "configuration delivery service" and honestly? obsessed. β¨
πΈ SYNOPSIS πΈ
struct adau1781_platform_data {
bool left_input_differential;
bool right_input_differential;
bool use_dmic;
enum adau17x1_micbias_voltage micbias_voltage;
};
that's the whole thing, bestie β four fields, zero drama π
β¨ Members β¨
left_input_differentialβ set this totrueand the left input gets configured as a differential input π¦ that's the whole job, she's straightforward and we love her for it.right_input_differentialβ same deal but on the right side:truemeans the right input gets configured as a differential input β¨ (and yes, the original page spells it "differntial", we're being correct about it here, it's fine, breathe π).use_dmicβ flip this totrueand the MIC pins get configured as digital microphone pins instead of analog microphone pins π so like, know which kind of mic you're dealing with before you set it, iykyk.micbias_voltageβ the microphone voltage bias π type isenum adau17x1_micbias_voltage, and it does exactly what it says on the tin.
π¦ SEE ALSO π¦
- Kernel file
./include/linux/platform_data/adau17x1.h enum adau17x1_micbias_voltage(9)enum adau1761_digmic_jackdet_pin_mode(9)enum adau1761_output_mode(9)struct adau1761_platform_data(9)
like, go read the neighbors too, they're all hanging out in the same header and they're all iconic in their own way π
ngl this struct has main character energy for something so small. four fields and a dream. periodt. π
and that's the page, bestie π«Ά this lil gem lives in ./include/linux/platform_data, dated October 2026, straight from the Kernel API Manual β mwah, go forth and configure responsibly π
β¨
π¦ 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