Lines Matching +full:stream +full:- +full:match +full:- +full:mask

3     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
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>
62 #include <media/v4l2-common.h>
63 #include <media/v4l2-ioctl.h>
64 #include <media/v4l2-ctrls.h>
65 #include <media/v4l2-device.h>
66 #include <media/v4l2-fh.h>
68 #include <media/drv-intf/cx2341x.h>
69 #include <media/i2c/ir-kbd-i2c.h>
145 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
161 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
175 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args)
176 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args)
177 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args)
192 int kilobytes[IVTV_MAX_STREAMS]; /* size in kilobytes of each stream */
200 /* ivtv-specific mailbox template */
216 /* Bits 0-2 are for the encoder mailboxes, 0-1 are for the decoder mailboxes.
222 /* per-buffer bit flags */
225 /* per-stream, s_flags */
226 #define IVTV_F_S_DMA_PENDING 0 /* this stream has pending DMA */
228 #define IVTV_F_S_NEEDS_DATA 2 /* this decoding stream needs more data */
230 #define IVTV_F_S_CLAIMED 3 /* this stream is claimed */
231 #define IVTV_F_S_STREAMING 4 /* the fw is decoding/encoding this stream */
232 #define IVTV_F_S_INTERNAL_USE 5 /* this stream is used internally (sliced VBI processing) */
233 #define IVTV_F_S_PASSTHROUGH 6 /* this stream is in passthrough mode */
234 #define IVTV_F_S_STREAMOFF 7 /* signal end of stream EOS */
235 #define IVTV_F_S_APPL_IO 8 /* this stream is used read/written by an application */
237 #define IVTV_F_S_PIO_PENDING 9 /* this stream has pending PIO */
240 /* per-ivtv, i_flags */
245 #define IVTV_F_I_EOS 4 /* end of encoder stream reached */
252 #define IVTV_F_I_DECODING_YUV 12 /* this stream is YUV frame decoding */
271 /* Scatter-Gather array element, used in DMA transfers */
329 /* These first four fields are always set, even if the stream
333 const char *name; /* name of the stream */
334 int type; /* stream type */
384 int type; /* stream type */
532 u8 odd[2]; /* two-byte payload of odd field */
533 u8 even[2]; /* two-byte payload of even field */;
537 u8 data[5]; /* five-byte VPS payload */
555 u32 dec_start; /* start in decoder memory of VBI re-insertion buffers */
562 int insert_mpeg; /* if non-zero, then embed VBI data in MPEG stream */
582 struct v4l2_sliced_vbi_data sliced_data[36]; /* sliced VBI storage for VBI encoder stream */
583 struct v4l2_sliced_vbi_data sliced_dec_data[36];/* sliced VBI storage for VBI decoder stream */
587 /* Buffer for VBI data inserted into MPEG stream.
604 to be inserted in the MPEG stream */
607 /* forward declaration of struct defined in ivtv-cards.h */
646 struct v4l2_subdev sd_gpio; /* GPIO sub-device */
649 /* High-level state info */
669 int stream_buf_size[IVTV_MAX_STREAMS]; /* stream buffer size */
670 struct ivtv_stream streams[IVTV_MAX_STREAMS]; /* stream data */
674 /* ALSA interface for PCM capture stream */
679 /* Used for ivtv-alsa module loading */
684 u32 irq_rr_idx; /* round-robin stream index */
689 int cur_dma_stream; /* index of current stream doing DMA (-1 if none) */
690 int cur_pio_stream; /* index of current stream doing PIO (-1 if none) */
731 u64 mpg_data_received; /* number of bytes received from the MPEG stream */
732 u64 vbi_data_inserted; /* number of VBI bytes inserted into the MPEG stream */
739 struct vbi_info vbi; /* VBI-specific data */
750 int osd_chroma_key_state; /* 1 = chroma-keying is on */
773 void ivtv_set_irq_mask(struct ivtv *itv, u32 mask);
774 void ivtv_clear_irq_mask(struct ivtv *itv, u32 mask);
779 /* return current output stream based on current mode */
782 /* Return non-zero if a signal is pending */
785 /* Wait on queue, returns -EINTR if interrupted */
792 /* First-open initialization: load firmware, init cx25840, etc. */
798 return itv->vbi.in.type == V4L2_BUF_TYPE_VBI_CAPTURE; in ivtv_raw_vbi()
813 #define read_reg(reg) readl(itv->reg_mem + (reg))
814 #define write_reg(val, reg) writel(val, itv->reg_mem + (reg))
818 #define read_enc(addr) readl(itv->enc_mem + (u32)(addr))
819 #define write_enc(val, addr) writel(val, itv->enc_mem + (u32)(addr))
823 #define read_dec(addr) readl(itv->dec_mem + (u32)(addr))
824 #define write_dec(val, addr) writel(val, itv->dec_mem + (u32)(addr))
829 match them all). Ignore any errors. */
831 v4l2_device_mask_call_all(&(itv)->v4l2_dev, hw, o, f, ##args)
836 match them all). If the callback returns an error other than 0 or
837 -ENOIOCTLCMD, then return with that error code. */
839 v4l2_device_mask_call_until_err(&(itv)->v4l2_dev, hw, o, f, ##args)