Lines Matching +full:656 +full:- +full:4
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Derived from ivtv-driver.h
24 #include <linux/i2c-algo-bit.h>
33 #include <media/v4l2-common.h>
34 #include <media/v4l2-ioctl.h>
35 #include <media/v4l2-device.h>
36 #include <media/v4l2-fh.h>
38 #include <media/i2c/ir-kbd-i2c.h>
39 #include "cx18-mailbox.h"
40 #include "cx18-av-core.h"
52 #include <media/videobuf-core.h>
53 #include <media/videobuf-vmalloc.h>
71 #define CX18_CARD_CNXT_RAPTOR_PAL 4 /* Conexant Raptor PAL */
72 #define CX18_CARD_TOSHIBA_QOSMIO_DVBT 5 /* Toshiba Qosmio Interal DVB-T/Analog*/
83 #define CX18_ENC_STREAM_TYPE_PCM 4
138 #define CX18_DEFAULT_ENC_PCM_BUFSIZE 4
150 #define CX18_DBGFLG_IOCTL (1 << 4)
158 gcc-2.95, otherwise it won't compile. */
162 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
176 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
188 #define CX18_ERR(fmt, args...) v4l2_err(&cx->v4l2_dev, fmt , ## args)
189 #define CX18_WARN(fmt, args...) v4l2_warn(&cx->v4l2_dev, fmt , ## args)
190 #define CX18_INFO(fmt, args...) v4l2_info(&cx->v4l2_dev, fmt , ## args)
250 /* per-mdl bit flags */
253 /* per-stream, s_flags */
255 #define CX18_F_S_STREAMING 4 /* the fw is decoding/encoding this stream */
261 /* per-cx18, i_flags */
263 #define CX18_F_I_EOS 4 /* End of encoder stream */
271 #define CX18_SLICED_TYPE_CAPTION_525 (4)
276 * list_entry_is_past_end - check if a previous loop cursor is off list end
285 (&pos->member == (head))
298 u32 id; /* index into cx->scb->cpu_mdl[] of 1st cx18_mdl_ent */
383 /* MDL sizes - all stream MDLs are the same size */
388 struct cx18_queue q_free; /* free - in rotation, not committed */
389 struct cx18_queue q_busy; /* busy - in use by firmware */
390 struct cx18_queue q_full; /* full - data for user apps */
391 struct cx18_queue q_idle; /* idle - not in rotation */
409 /* Common video buffer sub-system struct */
429 return fh2id(file->private_data); in file2id()
432 /* forward declaration of struct defined in cx18-cards.h */
442 * to provide sliced VBI. (AV Core: sliced mode - Encoder: raw mode)
445 * to the user application directly or build up MPEG-2 private stream 1
446 * packets to splice into (only!) MPEG-2 PS streams for the user app.
461 * = 4 bytes EAV + Anc data in hblank + 4 bytes SAV + active samples
466 * We use a BT.656 pxiel clock of 13.5 MHz and a BT.656 active line
467 * length of 720 pixels @ 4:2:2 sampling. Thus...
470 * NTSC-M, PAL-M, PAL-60, and other 60 Hz/525 line systems, we have:
473 * 4 bytes SAV + 268 bytes anc data + 4 bytes SAV + 1440 active samples
476 * PAL-B/G/H, PAL-I, SECAM-L and other 50 Hz/625 line systems, we have:
479 * 4 bytes SAV + 280 bytes anc data + 4 bytes SAV + 1440 active samples
481 #define VBI_ACTIVE_SAMPLES 1444 /* 4 byte SAV + 720 Y + 720 U/V */
482 #define VBI_HBLANK_SAMPLES_60HZ 272 /* 4 byte EAV + 268 anc/fill */
483 #define VBI_HBLANK_SAMPLES_50HZ 284 /* 4 byte EAV + 280 anc/fill */
506 * Used in cx18-vbi.c only for collecting sliced data, and as a source
514 * A ring buffer of driver-generated MPEG-2 PS
519 * 16 byte MPEG-2 PS Program Pack Header
520 * 16 byte MPEG-2 Private Stream 1 PES Header
521 * 4 byte magic number: "itv0" or "ITV0"
522 * 4 byte first field line mask, if "itv0"
523 * 4 byte second field line mask, if "itv0"
531 * which is the payload size a PVR-350 (CX23415) MPEG decoder will
547 * Only used in cx18-fileops.c, but its state needs to persist at times.
566 struct v4l2_subdev *sd_av; /* A/V decoder/digitizer sub-device */
567 struct v4l2_subdev *sd_extmux; /* External multiplexer sub-dev */
611 uninitialized value in the stream->id. */
634 char in_workq_name[11]; /* "cx18-NN-in" */
660 /* Used for cx18-alsa module loading */
677 /* Return non-zero if a signal is pending */
684 /* First-open initialization: load firmware, etc. */
690 return cx->vbi.in.type == V4L2_BUF_TYPE_VBI_CAPTURE; in cx18_raw_vbi()
696 v4l2_device_mask_call_all(&(cx)->v4l2_dev, hw, o, f, ##args)
702 * other than 0 or -ENOIOCTLCMD, then return with that error code. */
704 v4l2_device_mask_call_until_err(&(cx)->v4l2_dev, hw, o, f, ##args)