aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88.h
diff options
context:
space:
mode:
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: