drivers/media/usb/gspca/gl860/gl860-ov9655.c
Source file repositories/reference/linux-study-clean/drivers/media/usb/gspca/gl860/gl860-ov9655.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/gspca/gl860/gl860-ov9655.c- Extension
.c- Size
- 12340 bytes
- Lines
- 374
- 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
gl860.h
Detected Declarations
function ov9655_init_settingsfunction ov9655_init_at_startupfunction ov9655_init_pre_altfunction ov9655_init_post_altfunction ov9655_configure_altfunction ov9655_camera_settingsfunction ov9655_post_unset_alt
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-or-later
/* Subdriver for the GL860 chip with the OV9655 sensor
* Author Olivier LORIN, from logs done by Simon (Sur3) and Almighurt
* on dsd's weblog
*/
/* Sensor : OV9655 */
#include "gl860.h"
static struct validx tbl_init_at_startup[] = {
{0x0000, 0x0000}, {0x0010, 0x0010}, {0x0008, 0x00c0}, {0x0001, 0x00c1},
{0x0001, 0x00c2}, {0x0020, 0x0006}, {0x006a, 0x000d},
{0x0040, 0x0000},
};
static struct validx tbl_commmon[] = {
{0x0041, 0x0000}, {0x006a, 0x0007}, {0x0063, 0x0006}, {0x006a, 0x000d},
{0x0000, 0x00c0}, {0x0010, 0x0010}, {0x0001, 0x00c1}, {0x0041, 0x00c2},
{0x0004, 0x00d8}, {0x0012, 0x0004}, {0x0000, 0x0058}, {0x0040, 0x0000},
{0x00f3, 0x0006}, {0x0058, 0x0000}, {0x0048, 0x0000}, {0x0061, 0x0000},
};
static s32 tbl_length[] = {12, 56, 52, 54, 56, 42, 32, 12};
static u8 *tbl_640[] = {
(u8[]){
0x00, 0x40, 0x07, 0x6a, 0x06, 0xf3, 0x0d, 0x6a,
0x10, 0x10, 0xc1, 0x01
}, (u8[]){
0x12, 0x80, 0x00, 0x00, 0x01, 0x98, 0x02, 0x80,
0x03, 0x12, 0x04, 0x03, 0x0b, 0x57, 0x0e, 0x61,
0x0f, 0x42, 0x11, 0x01, 0x12, 0x60, 0x13, 0x00,
0x14, 0x3a, 0x16, 0x24, 0x17, 0x14, 0x18, 0x00,
0x19, 0x01, 0x1a, 0x3d, 0x1e, 0x04, 0x24, 0x3c,
0x25, 0x36, 0x26, 0x72, 0x27, 0x08, 0x28, 0x08,
0x29, 0x15, 0x2a, 0x00, 0x2b, 0x00, 0x2c, 0x08
}, (u8[]){
0x32, 0xff, 0x33, 0x00, 0x34, 0x3d, 0x35, 0x00,
0x36, 0xfa, 0x38, 0x72, 0x39, 0x57, 0x3a, 0x00,
0x3b, 0x0c, 0x3d, 0x99, 0x3e, 0x0c, 0x3f, 0xc1,
0x40, 0xc0, 0x41, 0x00, 0x42, 0xc0, 0x43, 0x0a,
0x44, 0xf0, 0x45, 0x46, 0x46, 0x62, 0x47, 0x2a,
0x48, 0x3c, 0x4a, 0xee, 0x4b, 0xe7, 0x4c, 0xe7,
0x4d, 0xe7, 0x4e, 0xe7
}, (u8[]){
0x4f, 0x98, 0x50, 0x98, 0x51, 0x00, 0x52, 0x28,
0x53, 0x70, 0x54, 0x98, 0x58, 0x1a, 0x59, 0x85,
0x5a, 0xa9, 0x5b, 0x64, 0x5c, 0x84, 0x5d, 0x53,
0x5e, 0x0e, 0x5f, 0xf0, 0x60, 0xf0, 0x61, 0xf0,
0x62, 0x00, 0x63, 0x00, 0x64, 0x02, 0x65, 0x20,
0x66, 0x00, 0x69, 0x0a, 0x6b, 0x5a, 0x6c, 0x04,
0x6d, 0x55, 0x6e, 0x00, 0x6f, 0x9d
}, (u8[]){
0x70, 0x15, 0x71, 0x78, 0x72, 0x00, 0x73, 0x00,
0x74, 0x3a, 0x75, 0x35, 0x76, 0x01, 0x77, 0x02,
0x7a, 0x24, 0x7b, 0x04, 0x7c, 0x07, 0x7d, 0x10,
0x7e, 0x28, 0x7f, 0x36, 0x80, 0x44, 0x81, 0x52,
0x82, 0x60, 0x83, 0x6c, 0x84, 0x78, 0x85, 0x8c,
0x86, 0x9e, 0x87, 0xbb, 0x88, 0xd2, 0x89, 0xe5,
0x8a, 0x23, 0x8c, 0x8d, 0x90, 0x7c, 0x91, 0x7b
}, (u8[]){
0x9d, 0x02, 0x9e, 0x02, 0x9f, 0x74, 0xa0, 0x73,
0xa1, 0x40, 0xa4, 0x50, 0xa5, 0x68, 0xa6, 0x70,
0xa8, 0xc1, 0xa9, 0xef, 0xaa, 0x92, 0xab, 0x04,
0xac, 0x80, 0xad, 0x80, 0xae, 0x80, 0xaf, 0x80,
0xb2, 0xf2, 0xb3, 0x20, 0xb4, 0x20, 0xb5, 0x00,
0xb6, 0xaf
}, (u8[]){
0xbb, 0xae, 0xbc, 0x4f, 0xbd, 0x4e, 0xbe, 0x6a,
0xbf, 0x68, 0xc0, 0xaa, 0xc1, 0xc0, 0xc2, 0x01,
0xc3, 0x4e, 0xc6, 0x85, 0xc7, 0x81, 0xc9, 0xe0,
0xca, 0xe8, 0xcb, 0xf0, 0xcc, 0xd8, 0xcd, 0x93
}, (u8[]){
0xd0, 0x01, 0xd1, 0x08, 0xd2, 0xe0, 0xd3, 0x01,
0xd4, 0x10, 0xd5, 0x80
}
};
static u8 *tbl_1280[] = {
(u8[]){
0x00, 0x40, 0x07, 0x6a, 0x06, 0xf3, 0x0d, 0x6a,
0x10, 0x10, 0xc1, 0x01
},
(u8[]){
0x12, 0x80, 0x00, 0x00, 0x01, 0x98, 0x02, 0x80,
0x03, 0x12, 0x04, 0x01, 0x0b, 0x57, 0x0e, 0x61,
0x0f, 0x42, 0x11, 0x00, 0x12, 0x00, 0x13, 0x00,
0x14, 0x3a, 0x16, 0x24, 0x17, 0x1b, 0x18, 0xbb,
Annotation
- Immediate include surface: `gl860.h`.
- Detected declarations: `function ov9655_init_settings`, `function ov9655_init_at_startup`, `function ov9655_init_pre_alt`, `function ov9655_init_post_alt`, `function ov9655_configure_alt`, `function ov9655_camera_settings`, `function ov9655_post_unset_alt`.
- 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.