sst_fill_module_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sst_fill_module_list(9) πŸ’–

okay bestie, we're in the Kernel API Manual today and this one is a lil C function that literally just introduces people to each other β€” it's giving matchmaker energy, no cap 🫢


✨ NAME ✨

sst_fill_module_list β€” populate the list of modules/gains for a pipe

like it literally fills in the list of modules and gains for a pipe, that's the whole job, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int sst_fill_module_list (struct snd_kcontrol *kctl , struct
       snd_soc_dapm_widget *w , int type );

πŸŽ€ ARGUMENTS πŸŽ€

  • kctl β€” kcontrol pointer πŸŽ›οΈ (yes it's a pointer, yes it's a struct snd_kcontrol *)
  • w β€” dapm widget 🌸
  • type β€” widget type 🏷️

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea, bestie: this function fills the widget pointer in the kcontrol private data, and also fills the kcontrol pointer in the widget private data. Mutual. Two-way. Iconic. πŸ’ž

The widget pointer is used to send the algo/gain in the .put handler if the widget is powerd on. πŸ”₯

The kcontrol pointer is used to send the algo/gain in the widget power ON/OFF event handler. And here's the important bit: each widget (pipe) has multiple algos stored in the algo_list. πŸ‘‘

ngl this is the kind of function that's small but the whole pipe situation lowkey falls apart without it πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./sound/soc/intel/atom/sst-atom-controls.c


okay that's the whole page, go slay πŸ’–βœ¨

this lil beauty lives in the kernel source at ./sound/soc/intel/atom and the date on it is October 2026 β€” πŸŽ€ bye bestie, drink water, read your kernel docs πŸŽ€

πŸ“¦ where this page comes from