STRUCT FSL_ASOC_CARD_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct fsl_asoc_card_priv(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this is the page for struct fsl_asoc_card_priv, and no cap, it's literally the whole personality of the Freescale Generic ASOC card just chilling in one struct. grab a strawberry πŸ“ and let's get into it.


🌸 NAME 🌸

struct fsl_asoc_card_priv β€” Freescale Generic ASOC card private data. that's it, that's the vibe check πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole glow-up, character for character, don't touch a single glyph:

struct fsl_asoc_card_priv {
    struct snd_soc_dai_link dai_link[3];
    struct simple_util_jack hp_jack;
    struct simple_util_jack mic_jack;
    struct platform_device *pdev;
    const struct fsl_asoc_card_pdata *pdata;
    struct codec_priv codec_priv[2];
    struct cpu_priv cpu_priv;
    struct snd_soc_card card;
    const struct snd_pcm_hw_constraint_list *constraint_rates;
    const struct snd_pcm_hw_constraint_list *constraint_channels;
    u8 streams;
    u32 sample_rate;
    snd_pcm_format_t sample_format;
    u32 asrc_rate;
    snd_pcm_format_t asrc_format;
    u32 dai_fmt;
    u64 exclude_format;
    char name[32];
 };

πŸ’… Members πŸ’…

okay these are the fields, and every single one of them is a main character in their own right:

  • dai_link β€” the DAI link structure, and yes it's giving both energies: it holds the normal one and the DPCM link πŸ¦‹
  • hp_jack β€” the Headphone Jack structure. headphones on, world off, periodt 🎧
  • mic_jack β€” the Microphone Jack structure. speak bestie, we're listening ✨
  • pdev β€” platform device pointer, just pointing at things, iconic behavior πŸ‘‘
  • pdata β€” pointer to the per-compatible card platform data 🌈
  • codec_priv β€” the CODEC private data πŸ”₯
  • cpu_priv β€” the CPU private data ⭐
  • card β€” the ASoC card structure, the whole moment fr fr πŸ’œ
  • constraint_rates β€” array of supported rates πŸŽ€
  • constraint_channels β€” array of supported channels 🌸
  • streams β€” mask of current active streams, lowkey the busiest field here πŸ’€
  • sample_rate β€” current sample rate 🎡
  • sample_format β€” current sample format ✨
  • asrc_rate β€” the ASRC sample rate used by Back-Ends 🧚
  • asrc_format β€” the ASRC sample format used by Back-Ends 🫢
  • dai_fmt β€” the DAI format between CPU and CODEC 🌟
  • exclude_format β€” excluded format; (yep, that semicolon is canon, we don't edit the source material 😭)
  • name β€” the Card name πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./sound/soc/fsl/fsl-asoc-card.c
  • struct codec_priv(9)
  • struct cpu_priv(9)

go read those next, iykyk πŸ’…


and that's the page bestie!! πŸŽ‰ this little masterpiece lives in ./sound/soc/fsl, and it's dated October 2026 β€” so yeah, it's from the future, we don't question it, we just slay. byeeee πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from