STRUCT SND_SOC_USB_DEVICE(9)
π 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 thestruct snd_soc_usb_device(9)page. mwah ππ
π¦ 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