STRUCT SAMSUNG_SPDIF_INFO(9)
β¨ struct samsung_spdif_info(9) β¨
okay so bestie, buckle up β this is the Kernel API Manual page for struct samsung_spdif_info, and honestly? it's giving "let me introduce you to the whole S/PDIF squad" π
this is the lil info struct that holds everything the Samsung S/PDIF Controller needs to know about itself. no cap.
πΈ NAME πΈ
struct samsung_spdif_info β Samsung S/PDIF Controller information π
like, the whole personality of the controller, packaged in one struct. iconic.
π SYNOPSIS π
struct samsung_spdif_info {
spinlock_t lock;
struct device *dev;
void __iomem *regs;
unsigned long clk_rate;
struct clk *pclk;
struct clk *sclk;
u32 saved_clkcon;
u32 saved_con;
u32 saved_cstas;
struct snd_dmaengine_dai_dma_data *dma_playback;
};
look at her. ten fields. main character energy fr fr π«Ά
π¦ Members π¦
here's the group chat roster, one by one:
lockβ the spin lock for S/PDIF. she's the bouncer at the door keeping everybody from barging in at once πdevβ the parent device, passed to use from the probe. yeah, the one that showed up and said "hi i'm your parent now" πregsβ pointer to the device register block. this is where the actual hardware lore lives β¨clk_rateβ current clock rate forcalcurateratio. (yes. that is the spelling in the source. we're keeping it, we don't edit the ancestors π ) number goes brrr so the ratio math works.pclkβ the peri-clock pointer for spdif master operation. she's the one running the master-side situation πsclkβ the source clock pointer for making sync signals. sync signals don't make themselves, bestie πsaved_clkconβ backup clkcon reg. in suspend. nap-time snapshot π΄saved_conβ backup con reg. in suspend. another nap-time snapshot πsaved_cstasβ backup cstas reg. in suspend. third nap-time snapshot, we stan a consistent saver πdma_playbackβ DMA information for playback channel. this is how the audio actually gets out, lowkey the most important one π₯
π SEE ALSO π
Kernel file ./sound/soc/samsung/spdif.c β go read the source, iykyk π§
ok that's the whole page!! every field, every description, nothing skipped, nothing invented. vibe check: passed β
mwah π thanks for reading bestie β this one's from ./sound/soc/samsung, dated October 2026, and it lives at struct samsung_spdif_info(9) in the Kernel API Manual. periodt. π
π¦ 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