sof_copy_tuples(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct 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 of array. 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 same token_id needs to be parsed, i.e. the function looks for token_instance_num of each token in the token array associated with the token_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 of tuples. know your limits bestie πŸ’€
  • num_copied_tuples β€” pointer to the number of copied tuples in the tuples array. 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:


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