sof_copy_tuples(9)
π NAME π
sof_copy_tuples β bestie, this one parses your tokens and copies them straight into the @tuples array. Periodt.
(this is section 9 of the Kernel API Manual, and the page is literally called sof_copy_tuples(9) β iykyk π«Ά)
β¨ SYNOPSIS β¨
int sof_copy_tuples (struct snd_sof_dev *sdev , struct
snd_soc_tplg_vendor_array *array , int array_size , u32 token_id , int
token_instance_num , struct snd_sof_tuple *tuples , int tuples_size ,
int *num_copied_tuples );
π ARGUMENTS π
okay so here's the cast, everyone plays a role, no small parts π
sdevβ pointer tostruct snd_sof_dev. your main character struct, lowkey.arrayβ source pointer to consecutive vendor arrays in topology. it's giving "where the good stuff lives" β¨array_sizeβ size ofarray. the vibe check on how much of it we're actually looking at.token_idβ Token ID associated with a token array. your little name tag for the token group π·οΈtoken_instance_numβ number of times the sametoken_idneeds to be parsed, i.e. the function looks fortoken_instance_numof each token in the token array associated with thetoken_id. so if it shows up more than once, this says how many rounds we're doing β not me counting my iced coffees πtuplesβ tuples array to copy the matched tuples to. the destination, the final form, the glow-up π¦tuples_sizeβ size oftuples. know your limits bestie πnum_copied_tuplesβ pointer to the number of copied tuples in thetuplesarray. it's the receipt, it tells you how many made it π§Ύ
π SEE ALSO π
Kernel file ./sound/soc/sof/topology.c β go read it, it's iconic:
sof_update_ipc_object(9)sof_parse_uuid_tokens(9)sof_parse_string_tokens(9)sof_parse_word_tokens(9)sof_parse_token_sets(9)sof_parse_tokens(9)sof_set_widget_pipeline(9)
and that's the whole page, bestie! π source directory is ./sound/soc/sof, dated October 2026, and the page answers to sof_copy_tuples(9) β slay, go parse some tokens, ily π
π¦ 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