drivers/media/i2c/ov01a10.c
Source file repositories/reference/linux-study-clean/drivers/media/i2c/ov01a10.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/i2c/ov01a10.c- Extension
.c- Size
- 30134 bytes
- Lines
- 1138
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/unaligned.hlinux/acpi.hlinux/bitfield.hlinux/clk.hlinux/delay.hlinux/gpio/consumer.hlinux/i2c.hlinux/module.hlinux/pm_runtime.hlinux/regmap.hlinux/regulator/consumer.hmedia/v4l2-cci.hmedia/v4l2-ctrls.hmedia/v4l2-device.hmedia/v4l2-fwnode.h
Detected Declarations
struct ov01a10_link_freq_configstruct ov01a10_sensor_cfgstruct ov01a10function ov01a10_update_digital_gainfunction ov01a10_test_patternfunction ov01a10_set_format1function ov01a10_set_hflipfunction ov01a10_set_vflipfunction ov01a10_set_ctrlfunction ov01a10_init_controlsfunction ov01a10_fill_formatfunction ov01a10_set_modefunction ov01a10_start_streamingfunction ov01a10_stop_streamingfunction ov01a10_set_streamfunction ov01a10_update_blank_ctrlsfunction ov01a10_set_formatfunction ov01a10_init_statefunction ov01a10_enum_mbus_codefunction ov01a10_enum_frame_sizefunction ov01a10_get_selectionfunction ov01a10_set_selectionfunction ov01a10_get_pm_resourcesfunction ov01a10_power_onfunction ov01a10_power_offfunction ov01a10_identify_modulefunction ov01a10_check_hwcfgfunction ov01a10_removefunction ov01a10_probe
Annotated Snippet
struct ov01a10_link_freq_config {
const struct reg_sequence *regs;
int regs_len;
};
static const struct reg_sequence mipi_data_rate_720mbps[] = {
{0x0103, 0x01},
{0x0302, 0x00},
{0x0303, 0x06},
{0x0304, 0x01},
{0x0305, 0xf4},
{0x0306, 0x00},
{0x0308, 0x01},
{0x0309, 0x00},
{0x030c, 0x01},
{0x0322, 0x01},
{0x0323, 0x06},
{0x0324, 0x01},
{0x0325, 0x68},
};
static const struct reg_sequence ov01a10_global_setting[] = {
{0x3002, 0xa1},
{0x301e, 0xf0},
{0x3022, 0x01},
{0x3504, 0x0c},
{0x3601, 0xc0},
{0x3603, 0x71},
{0x3610, 0x68},
{0x3611, 0x86},
{0x3640, 0x10},
{0x3641, 0x80},
{0x3642, 0xdc},
{0x3646, 0x55},
{0x3647, 0x57},
{0x364b, 0x00},
{0x3653, 0x10},
{0x3655, 0x00},
{0x3656, 0x00},
{0x365f, 0x0f},
{0x3661, 0x45},
{0x3662, 0x24},
{0x3663, 0x11},
{0x3664, 0x07},
{0x3709, 0x34},
{0x370b, 0x6f},
{0x3714, 0x22},
{0x371b, 0x27},
{0x371c, 0x67},
{0x371d, 0xa7},
{0x371e, 0xe7},
{0x3730, 0x81},
{0x3733, 0x10},
{0x3734, 0x40},
{0x3737, 0x04},
{0x3739, 0x1c},
{0x3767, 0x00},
{0x376c, 0x81},
{0x3772, 0x14},
{0x37c2, 0x04},
{0x37d8, 0x03},
{0x37d9, 0x0c},
{0x37e0, 0x00},
{0x37e1, 0x08},
{0x37e2, 0x10},
{0x37e3, 0x04},
{0x37e4, 0x04},
{0x37e5, 0x03},
{0x37e6, 0x04},
{0x3814, 0x01},
{0x3815, 0x01},
{0x3816, 0x01},
{0x3817, 0x01},
{0x3822, 0x13},
{0x3832, 0x28},
{0x3833, 0x10},
{0x3b00, 0x00},
{0x3c80, 0x00},
{0x3c88, 0x02},
{0x3c8c, 0x07},
{0x3c8d, 0x40},
{0x3cc7, 0x80},
{0x4000, 0xc3},
{0x4001, 0xe0},
{0x4003, 0x40},
{0x4008, 0x02},
{0x4009, 0x19},
{0x400a, 0x01},
{0x400b, 0x6c},
{0x4011, 0x00},
Annotation
- Immediate include surface: `linux/unaligned.h`, `linux/acpi.h`, `linux/bitfield.h`, `linux/clk.h`, `linux/delay.h`, `linux/gpio/consumer.h`, `linux/i2c.h`, `linux/module.h`.
- Detected declarations: `struct ov01a10_link_freq_config`, `struct ov01a10_sensor_cfg`, `struct ov01a10`, `function ov01a10_update_digital_gain`, `function ov01a10_test_pattern`, `function ov01a10_set_format1`, `function ov01a10_set_hflip`, `function ov01a10_set_vflip`, `function ov01a10_set_ctrl`, `function ov01a10_init_controls`.
- 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.