Lines Matching +full:field +full:- +full:even +full:- +full:active

3     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 * -----
33 * MPG600/MPG160 support by T.Adachi <tadachi@tadachi-net.com>
37 * using information provided by Jiun-Kuei Jung @ AVerMedia.
49 #include <linux/i2c-algo-bit.h>
60 #include <media/v4l2-common.h>
61 #include <media/v4l2-ioctl.h>
62 #include <media/v4l2-ctrls.h>
63 #include <media/v4l2-device.h>
64 #include <media/v4l2-fh.h>
66 #include <media/drv-intf/cx2341x.h>
67 #include <media/i2c/ir-kbd-i2c.h>
143 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
159 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
173 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args)
174 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args)
175 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args)
198 /* ivtv-specific mailbox template */
214 /* Bits 0-2 are for the encoder mailboxes, 0-1 are for the decoder mailboxes.
220 /* per-buffer bit flags */
223 /* per-stream, s_flags */
238 /* per-ivtv, i_flags */
266 #define IVTV_F_I_EV_VSYNC_FIELD 30 /* VSYNC event field (0 = first, 1 = second field) */
269 /* Scatter-Gather array element, used in DMA transfers */
327 /* These first four fields are always set, even if the stream
529 u8 odd[2]; /* two-byte payload of odd field */
530 u8 even[2]; /* two-byte payload of even field */; member
534 u8 data[5]; /* five-byte VPS payload */
541 …u8 raw_decoder_sav_odd_field; /* raw VBI Start Active Video digitizer code of odd field
542 …u8 raw_decoder_sav_even_field; /* raw VBI Start Active Video digitizer code of even field
544 …liced_decoder_sav_odd_field; /* sliced VBI Start Active Video digitizer code of odd field */
545 …liced_decoder_sav_even_field; /* sliced VBI Start Active Video digitizer code of even field
547 u32 start[2]; /* start of first VBI line in the odd/even fields */
548 u32 count; /* number of VBI lines per field */
552 u32 dec_start; /* start in decoder memory of VBI re-insertion buffers */
559 int insert_mpeg; /* if non-zero, then embed VBI data in MPEG stream */
604 /* forward declaration of struct defined in ivtv-cards.h */
644 struct v4l2_subdev sd_gpio; /* GPIO sub-device */
647 /* High-level state info */
669 atomic_t capturing; /* count number of active capture streams */
670 atomic_t decoding; /* count number of active decoding streams */
677 /* Used for ivtv-alsa module loading */
681 u32 irqmask; /* active interrupts */
682 u32 irq_rr_idx; /* round-robin stream index */
687 int cur_dma_stream; /* index of current stream doing DMA (-1 if none) */
688 int cur_pio_stream; /* index of current stream doing PIO (-1 if none) */
694 u32 last_vsync_field; /* last seen vsync field */
737 struct vbi_info vbi; /* VBI-specific data */
748 int osd_chroma_key_state; /* 1 = chroma-keying is on */
780 /* Return non-zero if a signal is pending */
783 /* Wait on queue, returns -EINTR if interrupted */
790 /* First-open initialization: load firmware, init cx25840, etc. */
796 return itv->vbi.in.type == V4L2_BUF_TYPE_VBI_CAPTURE; in ivtv_raw_vbi()
811 #define read_reg(reg) readl(itv->reg_mem + (reg))
812 #define write_reg(val, reg) writel(val, itv->reg_mem + (reg))
816 #define read_enc(addr) readl(itv->enc_mem + (u32)(addr))
817 #define write_enc(val, addr) writel(val, itv->enc_mem + (u32)(addr))
821 #define read_dec(addr) readl(itv->dec_mem + (u32)(addr))
822 #define write_dec(val, addr) writel(val, itv->dec_mem + (u32)(addr))
829 v4l2_device_mask_call_all(&(itv)->v4l2_dev, hw, o, f, ##args)
835 -ENOIOCTLCMD, then return with that error code. */
837 v4l2_device_mask_call_until_err(&(itv)->v4l2_dev, hw, o, f, ##args)