set_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to set_type(9) from the Kernel API Manual ✨ this one is all about setting a tuner type, and it’s giving β€œsmall function, big tuner energy.” πŸ’…

πŸ’– NAME πŸ’–

set_type - Sets the tuner type for a given device.

✨ SYNOPSIS ✨

void set_type (struct i2c_client *c , unsigned int type , unsigned int new_mode_mask , void *new_config , int (*tuner_callback) (void *dev, int component, int cmd, int arg) );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” i2c_client descriptor.
  • type β€” type of the tuner (e. g. tuner number).
  • new_mode_mask β€” indicates if tuner supports TV and/or Radio.
  • new_config β€” an optional parameter used by a few tuners to adjust internal parameters, like LNA mode.
  • tuner_callback β€” an optional function to be called when switching to analog mode.

🌸 DESCRIPTION 🌸

This function applies the tuner config to tuner specified by tun_setup structure. It contains several per-tuner initialization "magic" β€” and yes, the manpage really says "magic," so you know it’s lowkey iconic. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at these, iykyk:


xoxo, your Unix bestie 🫢 β€” this page comes from ./drivers/media/v4l2-core and is dated October 2026. slay. πŸ’–

πŸ“¦ where this page comes from