snd_soc_usb...orted_format(9)
β¨ NAME β¨
snd_soc_usb_find_supported_format β bestie, this one checks if an audio format is supported π
(also hi, you're reading the Kernel API Manual, no cap πβ¨)
πΈ SYNOPSIS πΈ
int snd_soc_usb_find_supported_format (int card_idx , struct
snd_pcm_hw_params *params , int direction );
π ARGUMENTS π
card_idxβ the USB sound chip array index, like its lil seat number in the array πͺparamsβ the PCM parameters, the whole vibe of the audio setup π§directionβ literally just capture or playback, pick a lane bestie π€
π¦ DESCRIPTION π¦
Okay so here's the tea β β this function makes sure that a requested audio profile coming from the ASoC side is actually able to be supported by the USB device. Like, vibe check on the format before anyone gets their hopes up π
It returns 0 on success, and negative on error. That's it, that's the whole mood π
π SEE ALSO π
Kernel file ./sound/soc/soc-usb.c plus the whole friend group π«Ά:
snd_soc_usb_setup_offload_jack(9)snd_soc_usb_update_offload_route(9)snd_soc_usb_find_priv_data(9)snd_soc_usb_allocate_port(9)snd_soc_usb_free_port(9)snd_soc_usb_add_port(9)snd_soc_usb_remove_port(9)snd_soc_usb_connect(9)snd_soc_usb_disconnect(9)
ngl this page lives under./sound/soc, dated October 2026, and it's filed assnd_soc_usb...orted_format(9)β icon behavior only πβ¨ mwah, go read the source bestie ππ¦πΈ
π¦ 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