tuner_s_type_addr(9)
π tuner_s_type_addr(9)
okay so this is a page from the Kernel API Manual, bestie β like, the tuner_s_type_addr(9) of it all. no cap, it's literally about setting the tuner type for a device β¨
π NAME π
tuner_s_type_addr β sets the tuner type for a device π«Ά
β SYNOPSIS β
int tuner_s_type_addr (struct v4l2_subdev *sd , struct tuner_setup
*tun_setup );
like, it returns an int, takes a struct v4l2_subdev *sd and a struct tuner_setup *tun_setup, and that's the whole vibe π
πΈ ARGUMENTS πΈ
sdβ the subdev descriptor, aka the little guy you're operating on π¦tun_setupβ the type to be associated to a given tuner i2c address. iconic. that's the assignment π
π DESCRIPTION π
so this function applies the tuner config to the tuner specified by the tun_setup structure. that's it, that's the main character energy π
π¨ okay here's the important bit, pay attention bestie β the behaviour is conditional and lowkey specific:
- If the tuner I2C address is
UNSET, then it will only set the device if the tuner supports the mode specified in the call π - If the address is specified, the change will be applied only if the tuner I2C address matches π
and the call can change the tuner number and the tuner mode β two things at once, multitasking queen π
π₯ SEE ALSO π₯
fr fr go read these too, they're all part of the same saga:
- Kernel file
./drivers/media/v4l2-core/tuner-core.c enum tuner_pad_index(9)enum if_vid_dec_pad_index(9)set_type(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)
and that's the whole page, bestie, you ate that πβ¨ btw this one lives in ./drivers/media/v4l2-core and it's dated October 2026, so like... future vibes only π§π mwah π
π¦ 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