drivers/media/test-drivers/vidtv/vidtv_demod.h
Source file repositories/reference/linux-study-clean/drivers/media/test-drivers/vidtv/vidtv_demod.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/test-drivers/vidtv/vidtv_demod.h- Extension
.h- Size
- 2105 bytes
- Lines
- 69
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/dvb/frontend.hmedia/dvb_frontend.h
Detected Declarations
struct vidtv_demod_cnr_to_qual_sstruct vidtv_demod_configstruct vidtv_demod_state
Annotated Snippet
struct vidtv_demod_cnr_to_qual_s {
u32 modulation;
u32 fec;
u32 cnr_ok;
u32 cnr_good;
};
/**
* struct vidtv_demod_config - Configuration used to init the demod
* @drop_tslock_prob_on_low_snr: probability of losing the lock due to low snr
* @recover_tslock_prob_on_good_snr: probability of recovering when the signal
* improves
*
* The configuration used to init the demodulator module, usually filled
* by a bridge driver. For vidtv, this is filled by vidtv_bridge before the
* demodulator module is probed.
*/
struct vidtv_demod_config {
u8 drop_tslock_prob_on_low_snr;
u8 recover_tslock_prob_on_good_snr;
};
/**
* struct vidtv_demod_state - The demodulator state
* @frontend: The frontend structure allocated by the demod.
* @config: The config used to init the demod.
* @status: the demod status.
* @tuner_cnr: current S/N ratio for the signal carrier
*/
struct vidtv_demod_state {
struct dvb_frontend frontend;
struct vidtv_demod_config config;
enum fe_status status;
u16 tuner_cnr;
};
#endif // VIDTV_DEMOD_H
Annotation
- Immediate include surface: `linux/dvb/frontend.h`, `media/dvb_frontend.h`.
- Detected declarations: `struct vidtv_demod_cnr_to_qual_s`, `struct vidtv_demod_config`, `struct vidtv_demod_state`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.