Lines Matching +full:0 +full:x40300
56 static int vid_cap_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
60 static int vid_out_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
64 static int vbi_cap_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
68 static int vbi_out_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
72 static int sdr_cap_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
76 static int radio_rx_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
80 static int radio_tx_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
84 static int meta_cap_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
88 static int meta_out_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
92 static int touch_cap_nr[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
96 static int ccs_cap_mode[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
99 "\t\t bit 0=crop, 1=compose, 2=scale,\n"
102 static int ccs_out_mode[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = -1 };
105 "\t\t bit 0=crop, 1=compose, 2=scale,\n"
108 static unsigned multiplanar[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 1 };
117 [0 ... (VIVID_MAX_DEVS - 1)] = 0xe1d3d
120 MODULE_PARM_DESC(node_types, " node types, default is 0xe1d3d. Bitmask with the following meaning:\…
121 "\t\t bit 0: Video Capture node\n"
122 "\t\t bit 2-3: VBI Capture node: 0 = none, 1 = raw vbi, 2 = sliced vbi, 3 = both\n"
126 "\t\t bit 10-11: VBI Output node: 0 = none, 1 = raw vbi, 2 = sliced vbi, 3 = both\n"
134 static unsigned num_inputs[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 4 };
138 /* Default: input 0 = WEBCAM, 1 = TV, 2 = SVID, 3 = HDMI */
139 static unsigned input_types[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 0xe4 };
141 MODULE_PARM_DESC(input_types, " input types, default is 0xe4. Two bits per input,\n"
142 "\t\t bits 0-1 == input 0, bits 31-30 == input 15.\n"
143 "\t\t Type 0 == webcam, 1 == TV, 2 == S-Video, 3 == HDMI");
146 static unsigned num_outputs[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 2 };
150 /* Default: output 0 = SVID, 1 = HDMI */
151 static unsigned output_types[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 2 };
153 MODULE_PARM_DESC(output_types, " output types, default is 0x02. One bit per output,\n"
154 "\t\t bit 0 == output 0, bit 15 == output 15.\n"
155 "\t\t Type 0 == S-Video, 1 == HDMI");
165 static unsigned int allocators[VIVID_MAX_DEVS] = { [0 ... (VIVID_MAX_DEVS - 1)] = 0 };
167 MODULE_PARM_DESC(allocators, " memory allocator selection, default is 0.\n"
168 "\t\t 0 == vmalloc\n"
172 [0 ... (VIVID_MAX_DEVS - 1)] = 0
175 MODULE_PARM_DESC(cache_hints, " user-space cache hints, default is 0.\n"
176 "\t\t 0 == forbid\n"
180 [0 ... (VIVID_MAX_DEVS - 1)] = 1
184 "\t\t 0 == no support\n"
216 0, 0, MIN_WIDTH, MIN_HEIGHT
220 0, 0, MAX_WIDTH * MAX_ZOOM, MAX_HEIGHT * MAX_ZOOM
224 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
225 0x31, 0xd8, 0x34, 0x12, 0x00, 0x00, 0x00, 0x00,
226 0x22, 0x1a, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78,
227 0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26,
228 0x0f, 0x50, 0x54, 0x2f, 0xcf, 0x00, 0x31, 0x59,
229 0x45, 0x59, 0x81, 0x80, 0x81, 0x40, 0x90, 0x40,
230 0x95, 0x00, 0xa9, 0x40, 0xb3, 0x00, 0x08, 0xe8,
231 0x00, 0x30, 0xf2, 0x70, 0x5a, 0x80, 0xb0, 0x58,
232 0x8a, 0x00, 0xc0, 0x1c, 0x32, 0x00, 0x00, 0x1e,
233 0x00, 0x00, 0x00, 0xfd, 0x00, 0x18, 0x55, 0x18,
234 0x87, 0x3c, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20,
235 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x76,
236 0x69, 0x76, 0x69, 0x64, 0x0a, 0x20, 0x20, 0x20,
237 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x10,
238 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
239 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7b,
241 0x02, 0x03, 0x3f, 0xf1, 0x51, 0x61, 0x60, 0x5f,
242 0x5e, 0x5d, 0x10, 0x1f, 0x04, 0x13, 0x22, 0x21,
243 0x20, 0x05, 0x14, 0x02, 0x11, 0x01, 0x23, 0x09,
244 0x07, 0x07, 0x83, 0x01, 0x00, 0x00, 0x6d, 0x03,
245 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x21, 0x00,
246 0x60, 0x01, 0x02, 0x03, 0x67, 0xd8, 0x5d, 0xc4,
247 0x01, 0x78, 0x00, 0x00, 0xe2, 0x00, 0xca, 0xe3,
248 0x05, 0x00, 0x00, 0xe3, 0x06, 0x01, 0x00, 0x4d,
249 0xd0, 0x00, 0xa0, 0xf0, 0x70, 0x3e, 0x80, 0x30,
250 0x20, 0x35, 0x00, 0xc0, 0x1c, 0x32, 0x00, 0x00,
251 0x1e, 0x1a, 0x36, 0x80, 0xa0, 0x70, 0x38, 0x1f,
252 0x40, 0x30, 0x20, 0x35, 0x00, 0xc0, 0x1c, 0x32,
253 0x00, 0x00, 0x1a, 0x1a, 0x1d, 0x00, 0x80, 0x51,
254 0xd0, 0x1c, 0x20, 0x40, 0x80, 0x35, 0x00, 0xc0,
255 0x1c, 0x32, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
256 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92,
275 return 0; in vidioc_querycap()
453 return 0; in vidioc_log_status()
656 dev->radio_rx_rds_last_block = 0; in vivid_fop_release()
660 dev->radio_tx_rds_last_block = 0; in vivid_fop_release()
955 if (node_type & 0x20007) { in vivid_detect_feature_set()
959 dev->num_inputs = 0; in vivid_detect_feature_set()
963 for (i = 0; i < dev->num_inputs; i++) { in vivid_detect_feature_set()
964 dev->input_type[i] = (input_types[inst] >> (i * 2)) & 0x3; in vivid_detect_feature_set()
978 if (node_type & 0x40300) { in vivid_detect_feature_set()
982 dev->num_outputs = 0; in vivid_detect_feature_set()
986 for (i = 0; i < dev->num_outputs; i++) { in vivid_detect_feature_set()
1003 dev->has_vid_cap = node_type & 0x0001; in vivid_detect_feature_set()
1007 dev->has_raw_vbi_cap = node_type & 0x0004; in vivid_detect_feature_set()
1008 dev->has_sliced_vbi_cap = node_type & 0x0008; in vivid_detect_feature_set()
1013 dev->has_meta_cap = node_type & 0x20000; in vivid_detect_feature_set()
1030 dev->has_vid_out = node_type & 0x0100; in vivid_detect_feature_set()
1034 dev->has_raw_vbi_out = node_type & 0x0400; in vivid_detect_feature_set()
1035 dev->has_sliced_vbi_out = node_type & 0x0800; in vivid_detect_feature_set()
1040 dev->has_meta_out = node_type & 0x40000; in vivid_detect_feature_set()
1056 dev->has_radio_rx = node_type & 0x0010; in vivid_detect_feature_set()
1059 dev->has_radio_tx = node_type & 0x1000; in vivid_detect_feature_set()
1062 dev->has_sdr_cap = node_type & 0x0020; in vivid_detect_feature_set()
1076 dev->has_fb = node_type & 0x10000; in vivid_detect_feature_set()
1109 dev->has_touch_cap = node_type & 0x80000; in vivid_detect_feature_set()
1111 return 0; in vivid_detect_feature_set()
1140 dev->vbi_cap_caps = (dev->has_raw_vbi_cap ? V4L2_CAP_VBI_CAPTURE : 0) | in vivid_set_capabilities()
1141 (dev->has_sliced_vbi_cap ? V4L2_CAP_SLICED_VBI_CAPTURE : 0); in vivid_set_capabilities()
1150 dev->vbi_out_caps = (dev->has_raw_vbi_out ? V4L2_CAP_VBI_OUTPUT : 0) | in vivid_set_capabilities()
1151 (dev->has_sliced_vbi_out ? V4L2_CAP_SLICED_VBI_OUTPUT : 0); in vivid_set_capabilities()
1252 if (in_type_counter[HDMI] == 0) { in vivid_disable_unused_ioctls()
1261 if (out_type_counter[HDMI] == 0) { in vivid_disable_unused_ioctls()
1305 * timings. Each name is max 31 chars long (+ terminating 0). in vivid_init_dv_timings()
1314 for (i = 0; i < dev->query_dv_timings_size; i++) { in vivid_init_dv_timings()
1328 return 0; in vivid_init_dv_timings()
1416 return 0; in vivid_create_queues()
1458 if (ret < 0) { in vivid_create_devnodes()
1463 cec_s_phys_addr(dev->cec_rx_adap, 0, false); in vivid_create_devnodes()
1470 if (ret < 0) in vivid_create_devnodes()
1507 for (i = 0; i < dev->num_hdmi_outputs; i++) { in vivid_create_devnodes()
1509 if (ret < 0) { in vivid_create_devnodes()
1510 for (; i >= 0; i--) { in vivid_create_devnodes()
1522 if (ret < 0) in vivid_create_devnodes()
1550 if (ret < 0) in vivid_create_devnodes()
1582 if (ret < 0) in vivid_create_devnodes()
1612 if (ret < 0) in vivid_create_devnodes()
1631 if (ret < 0) in vivid_create_devnodes()
1651 if (ret < 0) in vivid_create_devnodes()
1679 if (ret < 0) in vivid_create_devnodes()
1709 if (ret < 0) in vivid_create_devnodes()
1738 if (ret < 0) in vivid_create_devnodes()
1754 return 0; in vivid_create_devnodes()
1765 hdmi_input_update_outputs_mask = 0; in update_hdmi_ctrls_work_handler()
1767 for (int i = 0; i < n_devs && vivid_devs[i]; i++) { in update_hdmi_ctrls_work_handler()
1770 for (int j = 0; j < vivid_devs[i]->num_hdmi_inputs; j++) { in update_hdmi_ctrls_work_handler()
1787 for (int i = 0; i < n_devs && vivid_devs[i]; i++) { in update_svid_ctrls_work_handler()
1788 for (int j = 0; j < vivid_devs[i]->num_svid_inputs; j++) { in update_svid_ctrls_work_handler()
1802 unsigned in_type_counter[4] = { 0, 0, 0, 0 }; in vivid_create_instance()
1803 unsigned out_type_counter[4] = { 0, 0, 0, 0 }; in vivid_create_instance()
1810 v4l2_std_id tvnorms_cap = 0, tvnorms_out = 0; in vivid_create_instance()
1870 if (ret < 0) in vivid_create_instance()
1877 dev->fmt_cap = &vivid_formats[0]; in vivid_create_instance()
1878 dev->fmt_out = &vivid_formats[0]; in vivid_create_instance()
1880 vivid_formats[0].data_offset[0] = 0; in vivid_create_instance()
1885 if (dev->input_type[0] == TV || dev->input_type[0] == SVID) in vivid_create_instance()
1887 if (dev->output_type[0] == SVID) in vivid_create_instance()
1889 for (i = 0; i < MAX_INPUTS; i++) { in vivid_create_instance()
1915 for (int j = 0, k = 0; j < dev->num_inputs; ++j) in vivid_create_instance()
1918 for (int j = 0, k = 0; j < dev->num_outputs; ++j) in vivid_create_instance()
1923 for (int j = 0, k = 0; j < dev->num_inputs; ++j) in vivid_create_instance()
1926 for (int j = 0, k = 0; j < dev->num_outputs; ++j) in vivid_create_instance()
1939 if (dev->num_inputs && dev->input_type[0] != HDMI) { in vivid_create_instance()
1942 } else if (dev->num_inputs && dev->input_type[0] == HDMI) { in vivid_create_instance()
1957 vivid_set_touch(dev, 0); in vivid_create_instance()
1986 adap = vivid_cec_alloc_adap(dev, 0, false); in vivid_create_instance()
1988 if (ret < 0) in vivid_create_instance()
1996 for (i = j = 0; i < dev->num_outputs; i++) { in vivid_create_instance()
2004 if (ret < 0) { in vivid_create_instance()
2049 return 0; in vivid_create_instance()
2063 for (i = 0; i < MAX_HDMI_OUTPUTS; i++) in vivid_create_instance()
2081 int ret = 0, i; in vivid_probe()
2092 for (i = 0; i < n_devs; i++) { in vivid_probe()
2097 ret = 0; in vivid_probe()
2102 if (ret < 0) { in vivid_probe()
2114 for (int i = 0; i < n_devs; i++) { in vivid_probe()
2119 for (int j = 0; j < dev->num_outputs && hdmi_count < MAX_MENU_ITEMS; ++j) { in vivid_probe()
2125 for (int j = 0; j < dev->num_outputs && svid_count < MAX_MENU_ITEMS; ++j) { in vivid_probe()
2134 for (int i = 0; i < n_devs; i++) { in vivid_probe()
2135 for (int j = 0; j < vivid_devs[i]->num_hdmi_inputs; j++) { in vivid_probe()
2138 v4l2_ctrl_modify_range(c, c->minimum, hdmi_count - 1, 0, c->default_value); in vivid_probe()
2140 for (int j = 0; j < vivid_devs[i]->num_svid_inputs; j++) { in vivid_probe()
2143 v4l2_ctrl_modify_range(c, c->minimum, svid_count - 1, 0, c->default_value); in vivid_probe()
2154 for (i = 0; i < n_devs; i++) { in vivid_remove()
2222 for (j = 0; j < MAX_HDMI_OUTPUTS; j++) in vivid_remove()
2260 for (unsigned int i = 0; i < ndevs; i++) { in vivid_init()
2265 for (u8 j = 0, k = 0; j < n_outputs && hdmi_count < MAX_MENU_ITEMS && in vivid_init()
2274 i & 0xff, k); in vivid_init()
2279 for (u8 j = 0, k = 0; j < n_outputs && svid_count < MAX_MENU_ITEMS; ++j) { in vivid_init()
2287 i & 0xff, k); in vivid_init()