tuner_s_tuner(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct v4l2_subdev β€” the subdev in question, main character energy fr fr πŸ’…
  • vt β€” pointer to struct 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 πŸ¦‹

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