STRUCT S3C_PCM_INFO(9)
π struct s3c_pcm_info(9) π
okay bestie, welcome to the Kernel API Manual entry for struct s3c_pcm_info β which is, and I cannot stress this enough, the S3C PCM Controller information</> struct. it's giving "audio-bus bookkeeping" and honestly? we're obsessed. π
β¨ NAME β¨
struct s3c_pcm_info β S3C PCM Controller information π§β¨
πΈ SYNOPSIS πΈ
struct s3c_pcm_info {
spinlock_t lock;
struct device *dev;
void __iomem *regs;
unsigned int sclk_per_fs;
unsigned int idleclk;
struct clk *pclk;
struct clk *cclk;
struct snd_dmaengine_dai_dma_data *dma_playback;
struct snd_dmaengine_dai_dma_data *dma_capture;
};
like, look at her. nine whole members. she's structured. she's organized. she's literally the main character of ./sound/soc/samsung/pcm.c. π«Ά
π Members π
lockβ a spin lock, bestie. classic. keeps things from stepping on each other. πdevβ the parent device, passed in tousefrom the probe. it's the whole reason we're here, ngl.regsβ the pointer to the device register block. the address of the vibes. πsclk_per_fsβ number of sclk per frame sync. yeah. that many. π΅idleclkβ whether to keepPCMSCLKenabled even when idle (no active xfer). so like, does the clock stay awake even when nothing's transferring? that's what this says. β°pclkβ thePCLK_PCM(pcm) clock pointer. she's the pcm clock. periodt. π°οΈcclkβ theSCLK_AUDIO(audio-bus) clock pointer. different girl, different bus. πdma_playbackβ DMA information for the playback channel. sound goes OUT. πdma_captureβ DMA information for the capture channel. sound comes IN. ποΈ
ngl these two struct snd_dmaengine_dai_dma_data * pointers are highkey the most extra types in the whole struct and I respect it.
π¦ SEE ALSO π¦
- Kernel file
./sound/soc/samsung/pcm.cπ go read her, she's iconic.
β¨ cute lil sign-off β¨
this came from ./sound/soc/samsung, dated October 2026 π and it's titled struct s3c_pcm_info(9) in case you forgot already (you didn't, you're doing amazing, bestie). go forth and slay your PCM controller setup. ππ₯π
π¦ 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