STRUCT ADAU1761_PLATFORM_DATA(9)
π struct adau1761_platform_data(9) β ADAU1761 Codec driver platform data
okay so this is a page straight out of the Kernel API Manual, and it's literally the entire vibe check for the ADAU1761 codec driver's platform data. bestie, this struct is the main character of the sound-card setup β it's the little bundle of settings you hand over so the codec knows how you want your pins configured. no cap, let's get into it π
β¨ SYNOPSIS β¨
struct adau1761_platform_data {
bool input_differential;
enum adau1761_output_mode lineout_mode;
enum adau1761_output_mode headphone_mode;
enum adau1761_digmic_jackdet_pin_mode digmic_jackdetect_pin_mode;
enum adau1761_jackdetect_debounce_time jackdetect_debounce_time;
bool jackdetect_active_low;
enum adau17x1_micbias_voltage micbias_voltage;
};
look at her. seven fields. all cozy in there. π
πΈ Members πΈ
input_differentialβ if this istrue, the input pins get configured in differential mode. simple as that, periodt.lineout_modeβ the output mode for the LOUT/ROUT pins. that's the line-out squad π§headphone_modeβ the output mode for the LHP/RHP pins. headphone crew, this one's for you π«Άdigmic_jackdetect_pin_modeβ how the JACKDET/MICIN pin is configured. yes, it's one pin doing double duty, she contains multitudes β¨jackdetect_debounce_timeβ the debounce time for jack insertion detection. so we don't get all dramatic over a lil wiggle π₯jackdetect_active_lowβ iftrue, jack insertion detection is active low. otherwise it's active high. pick a lane, just pick the right one πmicbias_voltageβ the microphone voltage bias. mic needs a lil boost, okay? π
β οΈ Note
heads up bestie: micbias_voltage only gets used if the JACKDET/MICIN pin is configured for jack insertion detection. like, she's only invited to the party when that pin's mode says so. no jack detection, no mic bias. iykyk π
π 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 adau1781_platform_data(9)
go read those too, they're the supporting cast and ngl they ate β
and that's the whole page, bestie! π¦ this lil gem lives over at ./include/linux/platform_data, dated October 2026, and it's brought to you by the Kernel API Manual. slay, stay configured, and don't forget your debounce time π
β¨πΈ
π¦ 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