tuner_s_tuner(9)
π tuner_s_tuner(9) π
okay so bestie, welcome to the kernel API manual β this one's from the Kernel API Manual corner of the universe, and it's literally the glow-up guide for tuner_s_tuner. she's a little function with one job and honestly? she ate. π
β¨ NAME β¨
tuner_s_tuner β set the tuner's audio mode ππ¦
πΈ SYNOPSIS πΈ
int tuner_s_tuner (struct v4l2_subdev *sd , const struct v4l2_tuner *vt
);
like, that's the whole vibe. two pointers, one int, no cap. β¨
π ARGUMENTS π
sdβ pointer tostruct v4l2_subdevβ the subdev in question, main character energy fr fr πvtβ pointer tostruct v4l2_tunerβ the tuner struct, aka the one carrying the details π
π DESCRIPTION π
she sets the audio mode β but only if the tuner matches vt->type. it's giving conditional slay. no match, no audio mode, periodt. π§β¨
π«Ά NOTE π«Ά
β οΈ bestie pls β vt->type should be initialized before calling it. don't just roll up with an uninitialized struct, that's not the vibe. π
and like, who does that initialization? either video_ioctl2 or the bridge driver. those two handle it, so you don't have to. iconic of them tbh. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/media/v4l2-core/tuner-core.cβ the source of truth, go read her ππ 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_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)
like, the whole friend group showed up. we love a linked-list of besties. π«Άπ
and that's the page, bestie!! π§β¨ this little icon lives in ./drivers/media/v4l2-core and the docs are stamped October 2026 β so go forth, set that audio mode, and remember: initialize your types before you call. 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