STRUCT SUN4I_SPDIF_QUIRKS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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 β€” a bool that 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 one bool, 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