STRUCT MCHP_SPDIFRX_DEV(9)
π 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β astruct 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βtrueif 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
- 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