STRUCT SAMSUNG_SPDIF_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 for calcurate ratio. (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