STRUCT MCHP_SPDIFRX_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ NAME

struct mchp_spdifrx_dev β€” bestie, this is the MCHP SPDIFRX device data structure, like, the whole vibe container for one SPDIFRX device ✨

(also hi, you're reading the Kernel API Manual, section 9, and this page is literally all about that one struct, so let's go πŸŽ€)


🌸 SYNOPSIS

struct mchp_spdifrx_dev {
    struct snd_dmaengine_dai_dma_data       capture;
    struct mchp_spdifrx_mixer_control       control;
    struct mutex                            mlock;
    struct device                           *dev;
    struct regmap                           *regmap;
    struct clk                              *pclk;
    struct clk                              *gclk;
    unsigned int                            trigger_enabled;
 };

no cap, that's the whole thing πŸ‘‘ copy it exactly, don't be out here renaming fields, iykyk πŸ’…


πŸ¦‹ Members

okay so, field by field, let's do a vibe check on every single one 🫢

  • capture β€” the DAI DMA configuration data. it's giving "how do we actually move the audio bytes" energy πŸŽ€
  • control β€” the mixer controls. yeah. the knobs. the sliders. iconic 🌸
  • mlock β€” a mutex whose whole job is to protect concurrency between the configuration APIs and the control APIs. it's the bouncer at the club, keeping those two from colliding 😭
  • dev β€” a struct device. literally just the device. main character energy fr πŸ’€
  • regmap β€” the regmap for this device. register access, slay πŸ”₯
  • pclk β€” the peripheral clock ⏰
  • gclk β€” the generic clock ⏰✨
  • trigger_enabled β€” true if it was enabled through the trigger ops. so like, a little boolean telling you if the trigger path turned it on πŸ’–
ngl bestie, mlock is highkey the one to respect here β€” that's your concurrency guard, don't be out here touching config and control at the same time without it πŸ™ˆ

🌈 SEE ALSO

  • Kernel file ./sound/soc/atmel/mchp-spdifrx.c
  • struct mchp_spdifrx_ch_stat(9)
  • struct mchp_spdifrx_user_data(9)
  • struct mchp_spdifrx_mixer_control(9)

like, go read those too, they're all in the same friend group πŸ’œπŸ¦‹


and that's the page!! πŸŽ€ this whole thing came from the source tree over at ./sound/soc/atmel, dated October 2026, and it's the struct mchp_spdifrx_dev(9) page from the Kernel API Manual β€” mwah, go forth and read structs, bestie πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from