btv->input = 0;
btv->tvnorm = 0; /* Index into bttv_tvnorms[] i.e. PAL. */
bttv_vbi_fmt_reset(&btv->vbi_fmt, btv->tvnorm);
+ btv->vbi_count[0] = VBI_DEFLINES;
+ btv->vbi_count[1] = VBI_DEFLINES;
btv->do_crop = 0;
v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops,
btwrite(crop, BT848_O_CROP);
}
- if (vbi->vbi_count[0] > 0) {
+ if (btv->vbi_count[0] > 0) {
top = &vbi->top;
top_irq_flags = 4;
}
- if (vbi->vbi_count[1] > 0) {
+ if (btv->vbi_count[1] > 0) {
top_irq_flags = 0;
bottom = &vbi->bottom;
bottom_irq_flags = 4;
redo_dma_risc = 0;
- if (buf->vbi_skip[0] != skip_lines0 ||
- buf->vbi_skip[1] != skip_lines1 ||
- buf->vbi_count[0] != fh->vbi_fmt.fmt.count[0] ||
- buf->vbi_count[1] != fh->vbi_fmt.fmt.count[1]) {
- buf->vbi_skip[0] = skip_lines0;
- buf->vbi_skip[1] = skip_lines1;
- buf->vbi_count[0] = fh->vbi_fmt.fmt.count[0];
- buf->vbi_count[1] = fh->vbi_fmt.fmt.count[1];
+ if (btv->vbi_skip[0] != skip_lines0 ||
+ btv->vbi_skip[1] != skip_lines1 ||
+ btv->vbi_count[0] != fh->vbi_fmt.fmt.count[0] ||
+ btv->vbi_count[1] != fh->vbi_fmt.fmt.count[1]) {
+ btv->vbi_skip[0] = skip_lines0;
+ btv->vbi_skip[1] = skip_lines1;
+ btv->vbi_count[0] = fh->vbi_fmt.fmt.count[0];
+ btv->vbi_count[1] = fh->vbi_fmt.fmt.count[1];
redo_dma_risc = 1;
}
struct bttv_geometry geo;
struct btcx_riscmem top;
struct btcx_riscmem bottom;
- unsigned int vbi_skip[2];
- unsigned int vbi_count[2];
};
struct bttv_buffer_set {
/* ---------------------------------------------------------- */
/* bttv-vbi.c */
+#define VBI_DEFLINES 16
+
int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
int width;
int height;
struct bttv_vbi_fmt vbi_fmt;
+ unsigned int vbi_skip[2];
+ unsigned int vbi_count[2];
+
/* Application called VIDIOC_S_SELECTION. */
int do_crop;