set_type(9)
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:
- Kernel file
./drivers/media/v4l2-core/tuner-core.c enum tuner_pad_index(9)enum if_vid_dec_pad_index(9)tuner_s_type_addr(9)tuner_s_config(9)tuner_lookup(9)tuner_probe(9)tuner_remove(9)check_mode(9)set_mode(9)set_freq(9)set_tv_freq(9)tuner_fixup_std(9)set_radio_freq(9)tuner_status(9)tuner_standby(9)tuner_g_frequency(9)tuner_g_tuner(9)tuner_s_tuner(9)
xoxo, your Unix bestie π«Ά β this page comes from ./drivers/media/v4l2-core and is dated October 2026. slay. π
π¦ 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