STRUCT SUN4I_SPDIF_QUIRKS(9)
π struct sun4i_spdif_quirks(9) β the Kernel API Manual, bestie edition π
okay so real talk: you're in the Kernel API Manual (struct sun4i_spdif_quirks(9)) and this little struct is literally the whole personality test for Sunxi SPDIF audio. no cap. β¨
πΈ NAME πΈ
struct sun4i_spdif_quirks β the differences between SoC variants, laid out so your driver doesn't have to guess. π
π¦ SYNOPSIS π¦
struct sun4i_spdif_quirks {
unsigned int reg_dac_txdata;
bool has_reset;
unsigned int val_fctl_ftx;
unsigned int mclk_multiplier;
const char *tx_clk_name;
};
yes that's the whole thing, and yes every field is doing main character work. π«Ά
β¨ Members β¨
reg_dac_txdataβ the TX FIFO offset for DMA config. it's giving "where the data actually goes" energy. πhas_resetβ aboolthat says whether the SoC needs its reset deasserted. so like, does this chip need the little reset pep talk or not. π₯val_fctl_ftxβ the TX FIFO flush bitmask. this is the "okay clear it out, we're starting fresh" mask, and it matters. π§Ήmclk_multiplierβ the ratio of the internal MCLK divider. numbers. ratios. clock math. iconic honestly. βtx_clk_nameβ the name of the TX module clock if the design has a split clock.<italic>if</italic>being the key word here β split clock design only, bestie. π°οΈ
π SEE ALSO π
- Kernel file
./sound/soc/sunxi/sun4i-spdif.cβ like, go read it, this is where the actual lore lives. π
and that's the vibe check on the quirks struct: four numbers-ish things (reg_dac_txdata,val_fctl_ftx,mclk_multiplier, and a clock name string) plus onebool, all so one driver can slay across every SoC variant without tripping. no invented facts, no extra options β just the struct, periodt. ππ
kisses from <purple>./sound/soc/sunxi</purple>, dated October 2026 β that's the source/version and date, mwah, don't forget to cite her π§ββοΈππ
π¦ 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