tuner_s_type_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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