STRUCT ANALOG_DEMOD_OPS(9)
π struct analog_demod_ops(9) β bestie edition
okay so this is a page straight out of the Kernel API Manual, and it's about struct analog_demod_ops β literally the demodulation info and callbacks for analog TV and radio π. yes it's old-school analog, yes it still slays. stay with me.
β¨ NAME β¨
struct analog_demod_ops β demodulation information and callbacks for analog TV and radio π
πΈ SYNOPSIS πΈ
like, here's the whole vibe, verbatim, no cap:
struct analog_demod_ops {
struct analog_demod_info info;
void (*set_params)(struct dvb_frontend *fe, struct analog_parameters
*params);
int (*has_signal)(struct dvb_frontend *fe, u16 *signal);
int (*get_afc)(struct dvb_frontend *fe, s32 *afc);
void (*tuner_status)(struct dvb_frontend *fe);
void (*standby)(struct dvb_frontend *fe);
void (*release)(struct dvb_frontend *fe);
int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
};
π Members π
group chat roll call, one by one π«Ά
infoβ a pointer tostruct analog_demod_info. that's it, that's the whole job πset_paramsβ callback function used to inform the demod to set the demodulator parameters needed to decode an analog or radio channel. the properties get passed viastruct analog_params. it's giving "here are your settings, go off" β¨has_signalβ returns0xffffif has signal, or0if it doesn't. yes it's literally just vibes:0xffff= we're so back,0= it's so over πget_afcβ used only by analog TV core. reports the frequency drift due to AFC. lowkey a little snitch, but in a helpful way π¦tuner_statusβ callback function that returns tuner status bits, e. g.TUNER_STATUS_LOCKEDandTUNER_STATUS_STEREO. it's giving status update bestie π₯standbyβ set the tuner to standby mode. nap time, periodt π€releaseβ callback function called when frontend is detached. drivers should free any allocated memory. no leaks, no crumbs, we leave it spotless π§Ήπi2c_gate_ctrlβ controls the I2C gate. newer drivers should use I2C mux support instead π so like... it works, but it's not the moment anymore.set_configβ callback function used to send some tuner-specific parameters. custom-fit, just for your tuner π
π¦ SEE ALSO π¦
the whole friend group, linked below π
- Kernel file
./include/media/dvb_frontend.h struct dvb_frontend_tune_settings(9)struct dvb_tuner_info(9)struct analog_parameters(9)enum dvbfe_algo(9)enum dvbfe_search(9)struct dvb_tuner_ops(9)struct analog_demod_info(9)struct dvb_frontend_internal_info(9)struct dvb_frontend_ops(9)struct dtv_frontend_properties(9)struct dvb_frontend(9)dvb_register_frontend(9)dvb_unregister_frontend(9)dvb_frontend_detach(9)dvb_frontend_suspend(9)dvb_frontend_resume(9)dvb_frontend_reinitialise(9)dvb_frontend_sleep_until(9)
mwah π this page lives in ./include/media and it's dated October 2026 β go read it, ily, bye π«Άβ¨
π¦ 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