drivers/media/test-drivers/vivid/vivid-touch-cap.h
Source file repositories/reference/linux-study-clean/drivers/media/test-drivers/vivid/vivid-touch-cap.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/test-drivers/vivid/vivid-touch-cap.h- Extension
.h- Size
- 1224 bytes
- Lines
- 40
- 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
- No C-style include directives detected by the generator.
Detected Declarations
enum vivid_tch_test
Annotated Snippet
#ifndef _VIVID_TOUCH_CAP_H_
#define _VIVID_TOUCH_CAP_H_
#define VIVID_TCH_HEIGHT 12
#define VIVID_TCH_WIDTH 21
#define VIVID_MIN_PRESSURE 180
#define VIVID_PRESSURE_LIMIT 40
#define TCH_SEQ_COUNT 16
#define TCH_PATTERN_COUNT 12
enum vivid_tch_test {
SINGLE_TAP,
DOUBLE_TAP,
TRIPLE_TAP,
MOVE_LEFT_TO_RIGHT,
ZOOM_IN,
ZOOM_OUT,
PALM_PRESS,
MULTIPLE_PRESS,
TEST_CASE_MAX
};
extern const struct vb2_ops vivid_touch_cap_qops;
int vivid_enum_fmt_tch(struct file *file, void *priv, struct v4l2_fmtdesc *f);
int vivid_g_fmt_tch(struct file *file, void *priv, struct v4l2_format *f);
int vivid_g_fmt_tch_mplane(struct file *file, void *priv, struct v4l2_format *f);
int vivid_enum_input_tch(struct file *file, void *priv, struct v4l2_input *inp);
int vivid_g_input_tch(struct file *file, void *priv, unsigned int *i);
int vivid_s_input_tch(struct file *file, void *priv, unsigned int i);
void vivid_fillbuff_tch(struct vivid_dev *dev, struct vivid_buffer *buf);
int vivid_set_touch(struct vivid_dev *dev, unsigned int i);
int vivid_g_parm_tch(struct file *file, void *priv,
struct v4l2_streamparm *parm);
#endif
Annotation
- Detected declarations: `enum vivid_tch_test`.
- 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.