STRUCT AF9013_PLATFORM_DATA(9)
πΈ NAME πΈ
struct af9013_platform_data β bestie, this is the platform data for the af9013 driver π
β¨ SYNOPSIS β¨
Okay so here's the whole struct, no cap β every field, every #define, exactly as it lives:
struct af9013_platform_data {
u32 clk;
#define AF9013_TUNER_MXL5003D 3 ;
#define AF9013_TUNER_MXL5005D 13 ;
#define AF9013_TUNER_MXL5005R 30 ;
#define AF9013_TUNER_ENV77H11D5 129 ;
#define AF9013_TUNER_MT2060 130 ;
#define AF9013_TUNER_MC44S803 133 ;
#define AF9013_TUNER_QT1010 134 ;
#define AF9013_TUNER_UNKNOWN 140 ;
#define AF9013_TUNER_MT2060_2 147 ;
#define AF9013_TUNER_TDA18271 156 ;
#define AF9013_TUNER_QT1010A 162 ;
#define AF9013_TUNER_MXL5007T 177 ;
#define AF9013_TUNER_TDA18218 179 ;
u8 tuner;
u32 if_frequency;
#define AF9013_TS_MODE_USB 0;
#define AF9013_TS_MODE_PARALLEL 1;
#define AF9013_TS_MODE_SERIAL 2;
u8 ts_mode;
u8 ts_output_pin;
bool spec_inv;
u8 api_version[4];
#define AF9013_GPIO_ON (1 << 0);
#define AF9013_GPIO_EN (1 << 1);
#define AF9013_GPIO_O (1 << 2);
#define AF9013_GPIO_I (1 << 3);
#define AF9013_GPIO_LO (AF9013_GPIO_ON|AF9013_GPIO_EN);
#define AF9013_GPIO_HI (AF9013_GPIO_ON|AF9013_GPIO_EN|AF9013_GPIO_O);
#define AF9013_GPIO_TUNER_ON (AF9013_GPIO_ON|AF9013_GPIO_EN);
#define AF9013_GPIO_TUNER_OFF
(AF9013_GPIO_ON|AF9013_GPIO_EN|AF9013_GPIO_O);
u8 gpio[4];
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
int (*pid_filter_ctrl)(struct dvb_frontend *, int);
int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
};
That last#defineforAF9013_GPIO_TUNER_OFFliterally wraps onto its own line in the source, so yeah β that's just how it looks, bestie π«Ά
π Members π
This is the part where we meet every single field, one by one, and honestly? They all ate π
clkβ the clock frequency β°tunerβ which tuner model is being used π₯if_frequencyβ the IF frequency π»ts_modeβ the TS mode πts_output_pinβ the TS output pin πspec_invβ input spectrum inverted πapi_versionβ the firmware API version π§gpioβ the GPIOs πget_dvb_frontendβ callback that gets you the DVB frontend πget_i2c_adapterβ gets you the I2C adapter πpid_filter_ctrlβ controls the PID filter ποΈpid_filterβ sets a PID into the PID filter π
π¦ SEE ALSO π¦
The kernel file, bestie β go read it, iykyk:
./drivers/media/dvb-frontends/af9013.h
And that's the whole page, periodt π This little love letter comes from the kernel file ./drivers/media/dvb-frontends/af9013.h, lives its best life under ./drivers/media/dvb-frontends, and was dated October 2026 β iconic behavior, no notes β¨π
π¦ 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