aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88.h
diff options
context:
space:
mode:
authorCatalin Climov <catalin@climov.com>2005-11-09 00:36:17 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:07 -0500
commit31629424132c87f7c8bd79d7ed4d014354a06427 (patch)
treed06538533ad02a6e498a0c9e3ed6fde9eaf65bb5 /drivers/media/video/cx88/cx88.h
parent7df64e8c9cee596c2609c99b0ca1ebb6ae2d5b1d (diff)
[PATCH] v4l: 631: implemented the v4l2 mpeg api for blackbird cards
- Implemented the v4l2 mpeg api for blackbird cards. Signed-off-by: Catalin Climov <catalin@climov.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r--drivers/media/video/cx88/cx88.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h
index 88050a0043ab..b18205b3fa24 100644
--- a/drivers/media/video/cx88/cx88.h
+++ b/drivers/media/video/cx88/cx88.h
@@ -371,6 +371,14 @@ struct cx8802_suspend_state {
371 int disabled; 371 int disabled;
372}; 372};
373 373
374/* TODO: move this to struct v4l2_mpeg_compression ? */
375struct blackbird_dnr {
376 u32 mode;
377 u32 type;
378 u32 spatial;
379 u32 temporal;
380};
381
374struct cx8802_dev { 382struct cx8802_dev {
375 struct cx88_core *core; 383 struct cx88_core *core;
376 spinlock_t slock; 384 spinlock_t slock;
@@ -401,6 +409,10 @@ struct cx8802_dev {
401 409
402 /* for switching modulation types */ 410 /* for switching modulation types */
403 unsigned char ts_gen_cntrl; 411 unsigned char ts_gen_cntrl;
412
413 /* mpeg params */
414 struct v4l2_mpeg_compression params;
415 struct blackbird_dnr dnr_params;
404}; 416};
405 417
406/* ----------------------------------------------------------- */ 418/* ----------------------------------------------------------- */
@@ -542,7 +554,8 @@ void cx88_ir_irq(struct cx88_core *core);
542/* ----------------------------------------------------------- */ 554/* ----------------------------------------------------------- */
543/* cx88-mpeg.c */ 555/* cx88-mpeg.c */
544 556
545int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf); 557int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf,
558 enum v4l2_field field);
546void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf); 559void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf);
547void cx8802_cancel_buffers(struct cx8802_dev *dev); 560void cx8802_cancel_buffers(struct cx8802_dev *dev);
548 561
@@ -563,6 +576,10 @@ extern int cx88_do_ioctl(struct inode *inode, struct file *file, int radio,
563extern int (*cx88_ioctl_hook)(struct inode *inode, struct file *file, 576extern int (*cx88_ioctl_hook)(struct inode *inode, struct file *file,
564 unsigned int cmd, void *arg); 577 unsigned int cmd, void *arg);
565extern unsigned int (*cx88_ioctl_translator)(unsigned int cmd); 578extern unsigned int (*cx88_ioctl_translator)(unsigned int cmd);
579void blackbird_set_params(struct cx8802_dev *dev,
580 struct v4l2_mpeg_compression *params);
581void blackbird_set_dnr_params(struct cx8802_dev *dev,
582 struct blackbird_dnr* dnr_params);
566 583
567/* 584/*
568 * Local variables: 585 * Local variables: