STRUCT RTL2832_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct rtl2832_platform_data(9) ✨

okay bestie, so this is a page straight out of the Kernel API Manual β€” yes, that Kernel API Manual β€” and today's main character is struct rtl2832_platform_data, aka the platform data for the rtl2832 driver. it's giving "little struct, big responsibilities" and honestly? we're obsessed. πŸ’…


🌸 NAME 🌸

struct rtl2832_platform_data β€” Platform data for the rtl2832 driver

like, that's literally her job description. no notes. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole glow-up, laid out exactly as it lives in the header:

struct rtl2832_platform_data {
    u32 clk;
  #define RTL2832_TUNER_FC2580    0x21;
  #define RTL2832_TUNER_TUA9001   0x24;
  #define RTL2832_TUNER_FC0012    0x26;
  #define RTL2832_TUNER_E4000     0x27;
  #define RTL2832_TUNER_FC0013    0x29;
  #define RTL2832_TUNER_R820T     0x2a;
  #define RTL2832_TUNER_R828D     0x2b;
  #define RTL2832_TUNER_SI2157    0x2c;
    u8 tuner;
    struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
    struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
    int (*slave_ts_ctrl)(struct i2c_client *, bool);
    int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
    int (*pid_filter_ctrl)(struct dvb_frontend *, int);
 };

look at all those function pointers. so many little callbacks holding hands. 🫢


πŸ’– Members πŸ’–

  • clk β€” the clock frequency, and she's got a whole vibe check of options: 4000000, 16000000, 25000000, 28800000. pick your girl, they're all valid. ⭐
  • tuner β€” which tuner model is actually being used. (the #defines up top are the guest list: RTL2832_TUNER_FC2580 0x21, RTL2832_TUNER_TUA9001 0x24, RTL2832_TUNER_FC0012 0x26, RTL2832_TUNER_E4000 0x27, RTL2832_TUNER_FC0013 0x29, RTL2832_TUNER_R820T 0x2a, RTL2832_TUNER_R828D 0x2b, RTL2832_TUNER_SI2157 0x2c.) πŸ”₯
  • get_dvb_frontend β€” Get DVB frontend. that's it, that's the whole job, and she does it flawlessly. ✨
  • get_i2c_adapter β€” Get I2C adapter. go get that adapter bestie we believe in you. 🌈
  • slave_ts_ctrl β€” Control slave TS interface. control it!! lowkey main character energy honestly. πŸ‘‘
  • pid_filter β€” Set PID to PID filter. very specific, very demure. πŸŽ€
  • pid_filter_ctrl β€” Control PID filter. the sequel to the previous one and it ate. πŸ’…

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/media/dvb-frontends/rtl2832.h β€” go read it, iykyk πŸ’œ

ngl if you need the real source of truth, it's that header file up there. no cap. πŸ¦‹

okay that's the whole page, bestie!! this one came from ./drivers/media/dvb-frontends, dated October 2026, and it's titled struct rtl28...latform_data(9) in the index (the truncation is serving mysterious icon energy, we don't question it). stay slaying, go read your headers, mwah πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from