STRUCT SND_SOC_USB_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

struct snd_soc_usb_device β€” SoC USB representation of a USB sound device.

okay bestie, this is the Kernel API Manual page for struct snd_soc_usb_device, and it's giving very "let me introduce you to the struct" energy 🫢✨


✨ SYNOPSIS ✨

Here's the whole struct, verbatim, because we do not play with code πŸ’…:

       struct snd_soc_usb_device {
           int card_idx;
           int chip_idx;
           unsigned int *cpcm_idx;
           unsigned int *ppcm_idx;
           int num_capture;
           int num_playback;
           struct list_head list;
        };

πŸ’… Members πŸ’…

  • int card_idx β€” sound card index associated with USB device. it's literally the card's index, no cap πŸŽ€
  • int chip_idx β€” USB sound chip array index. the chip's spot in the array, slay πŸ’–
  • unsigned int *cpcm_idx β€” capture PCM index array associated with USB device. yes, an index array, and yes, it's capture πŸ¦‹
  • unsigned int *ppcm_idx β€” playback PCM index array associated with USB device. same vibe, but playback 🌸
  • int num_capture β€” number of capture streams. literally how many capture streams there are ✨
  • int num_playback β€” number of playback streams. the playback stream count, periodt πŸ’œ
  • struct list_head list β€” list head for SoC USB devices. iconic little list head behavior πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./include/sound/soc-usb.h
  • struct snd_soc_usb(9)

cute little sign-off bestie: this page is from source/version ./include/sound, dated October 2026, and it's the struct snd_soc_usb_device(9) page. mwah πŸ’‹πŸ’–
πŸ“¦ where this page comes from