STRUCT RTL2830_PLATFORM_DATA(9)
π NAME π
struct rtl2830_platform_data β the platform data situation for the rtl2830 driver, bestie. This is from the Kernel API Manual, and it's literally the little bundle of config you hand over so the driver knows what's up π«Ά
β¨ SYNOPSIS β¨
okay so here's the whole vibe, character for character, no cap:
struct rtl2830_platform_data {
u32 clk;
bool spec_inv;
u8 vtop;
u8 krf;
u8 agc_targ_val;
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
int (*pid_filter_ctrl)(struct dvb_frontend *, int);
};
π Members π
clkβ the clock frequency, and it's giving very specific β¨ pick one of these:4000000,16000000,25000000,28800000. Like, those are the numbers, periodt.spec_invβ spectrum inversion. that's the whole note πvtopβ the AGC take-over point. iconic little threshold, iykyk.krfβ the AGC ratio. yes bestie, another AGC thing, we stay fed πagc_targ_valβ AGC. that's it, that's the description, and honestly? main character energy of a one-word field πget_dvb_frontendβ get DVB frontend. it's a function pointer taking astruct i2c_client *and handing you back astruct dvb_frontend*π₯get_i2c_adapterβ get I2C adapter. same deal, function pointer, takesstruct i2c_client *, gives you astruct i2c_adapter*βpid_filterβ set PID to PID filter. signature isint (*pid_filter)(struct dvb_frontend *, u8, u16, int)β yes, four args, we love a busy icon πpid_filter_ctrlβ control PID filter.int (*pid_filter_ctrl)(struct dvb_frontend *, int), two args, cute and contained π¦
π SEE ALSO π
- Kernel file
./drivers/media/dvb-frontends/rtl2830.hβ go read the header, bestie, it's right there π
and that's the whole page!! this lil drop came from ./drivers/media/dvb-frontends, dated October 2026, and the manual tag on it is struct rtl28...latform_data(9) β so like, that's the source, the version vibe, and the date, all wrapped up with a bow ππ mwah, love u, go write some kernel code β¨
π¦ 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