tuner_lookup(9)
πΈ tuner_lookup(9) β Kernel API Manual πΈ
okay so bestie, this is the tuner_lookup(9) page from the Kernel API Manual, and it is literally all about seeking for tuner adapters β¨. no cap, it's giving βfind the radio and TV tuners on this I2C adapterβ energy, and we're gonna walk through it together π«Ά.
β¨ NAME β¨
tuner_lookup β Seek for tuner adapters. that's the whole name, periodt π
.
π SYNOPSIS π
void tuner_lookup (struct i2c_adapter *adap , struct tuner **radio ,
struct tuner **tv );
π ARGUMENTS π
adapβ thei2c_adapterstruct. yes ma'am, that's the adapter we're checking π.radioβ pointer to be filled if the adapter is radio π». it gets the radio answer, iykyk.tvβ pointer to be filled if the adapter is TV πΊ. same vibe, but for TV.
π¦ DESCRIPTION π¦
okay so the actual job: search for existing radio and/or TV tuners on the given I2C adapter, and it's discarding demod-only adapters (tda9887) π. like, bye demod-only, not today.
and here's the note bestie, highkey important: when this function is called from tuner_probe you can be certain no other devices will be added/deleted at the same time β I2C core protects against that, fr fr π‘οΈβ¨.
π SEE ALSO π
Kernel file ./drivers/media/v4l2-core/tuner-core.c, plus all these iconique references:
enum tuner_pad_index(9)enum if_vid_dec_pad_index(9)set_type(9)tuner_s_type_addr(9)tuner_s_config(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 it, bestie π«Ά β the source/version is ./drivers/media/v4l2-core, and this page is dated October 2026. mwah, go slay your tuner lookups ππ
π¦ 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