]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/media/davinci/vpif_types.h
[media] vpif_capture: remove unnecessary can_route flag
[mirror_ubuntu-artful-kernel.git] / include / media / davinci / vpif_types.h
CommitLineData
e13c692b
MH
1/*
2 * Copyright (C) 2011 Texas Instruments Inc
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation version 2.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17#ifndef _VPIF_TYPES_H
18#define _VPIF_TYPES_H
19
db38951c
MH
20#include <linux/i2c.h>
21
e13c692b
MH
22#define VPIF_CAPTURE_MAX_CHANNELS 2
23
24enum vpif_if_type {
25 VPIF_IF_BT656,
26 VPIF_IF_BT1120,
27 VPIF_IF_RAW_BAYER
28};
29
30struct vpif_interface {
31 enum vpif_if_type if_type;
32 unsigned hd_pol:1;
33 unsigned vd_pol:1;
34 unsigned fid_pol:1;
35};
36
37struct vpif_subdev_info {
38 const char *name;
39 struct i2c_board_info board_info;
40 u32 input;
41 u32 output;
e13c692b
MH
42 struct vpif_interface vpif_if;
43};
44
45struct vpif_display_config {
46 int (*set_clock)(int, int);
47 struct vpif_subdev_info *subdevinfo;
48 int subdev_count;
49 const char **output;
50 int output_count;
51 const char *card_name;
6964b103
MH
52 bool ch2_clip_en;
53 bool ch3_clip_en;
e13c692b
MH
54};
55
56struct vpif_input {
57 struct v4l2_input input;
58 const char *subdev_name;
59};
60
61struct vpif_capture_chan_config {
62 const struct vpif_input *inputs;
63 int input_count;
64};
65
66struct vpif_capture_config {
67 int (*setup_input_channel_mode)(int);
68 int (*setup_input_path)(int, const char *);
69 struct vpif_capture_chan_config chan_config[VPIF_CAPTURE_MAX_CHANNELS];
70 struct vpif_subdev_info *subdev_info;
71 int subdev_count;
72 const char *card_name;
73};
74#endif /* _VPIF_TYPES_H */