diff options
Diffstat (limited to 'drivers/media/video/saa7134/saa7134.h')
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index 346255468dad..28ec6804bd5d 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -37,12 +37,12 @@ | |||
37 | #include <media/tuner.h> | 37 | #include <media/tuner.h> |
38 | #include <media/ir-common.h> | 38 | #include <media/ir-common.h> |
39 | #include <media/ir-kbd-i2c.h> | 39 | #include <media/ir-kbd-i2c.h> |
40 | #include <media/video-buf.h> | 40 | #include <media/videobuf-dma-sg.h> |
41 | #include <sound/driver.h> | 41 | #include <sound/driver.h> |
42 | #include <sound/core.h> | 42 | #include <sound/core.h> |
43 | #include <sound/pcm.h> | 43 | #include <sound/pcm.h> |
44 | #if defined(CONFIG_VIDEO_BUF_DVB) || defined(CONFIG_VIDEO_BUF_DVB_MODULE) | 44 | #if defined(CONFIG_VIDEO_SAA7134_DVB) || defined(CONFIG_VIDEO_SAA7134_DVB_MODULE) |
45 | #include <media/video-buf-dvb.h> | 45 | #include <media/videobuf-dvb.h> |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #define UNSET (-1U) | 48 | #define UNSET (-1U) |
@@ -239,6 +239,7 @@ struct saa7134_format { | |||
239 | #define SAA7134_BOARD_KWORLD_DVBT_210 114 | 239 | #define SAA7134_BOARD_KWORLD_DVBT_210 114 |
240 | #define SAA7134_BOARD_SABRENT_TV_PCB05 115 | 240 | #define SAA7134_BOARD_SABRENT_TV_PCB05 115 |
241 | #define SAA7134_BOARD_10MOONSTVMASTER3 116 | 241 | #define SAA7134_BOARD_10MOONSTVMASTER3 116 |
242 | #define SAA7134_BOARD_AVERMEDIA_SUPER_007 117 | ||
242 | 243 | ||
243 | #define SAA7134_MAXBOARDS 8 | 244 | #define SAA7134_MAXBOARDS 8 |
244 | #define SAA7134_INPUT_MAX 8 | 245 | #define SAA7134_INPUT_MAX 8 |
@@ -523,6 +524,7 @@ struct saa7134_dev { | |||
523 | unsigned int hw_mute; | 524 | unsigned int hw_mute; |
524 | int last_carrier; | 525 | int last_carrier; |
525 | int nosignal; | 526 | int nosignal; |
527 | unsigned int inresume; | ||
526 | 528 | ||
527 | /* SAA7134_MPEG_* */ | 529 | /* SAA7134_MPEG_* */ |
528 | struct saa7134_ts ts; | 530 | struct saa7134_ts ts; |
@@ -536,7 +538,7 @@ struct saa7134_dev { | |||
536 | struct work_struct empress_workqueue; | 538 | struct work_struct empress_workqueue; |
537 | int empress_started; | 539 | int empress_started; |
538 | 540 | ||
539 | #if defined(CONFIG_VIDEO_BUF_DVB) || defined(CONFIG_VIDEO_BUF_DVB_MODULE) | 541 | #if defined(CONFIG_VIDEO_SAA7134_DVB) || defined(CONFIG_VIDEO_SAA7134_DVB_MODULE) |
540 | /* SAA7134_MPEG_DVB only */ | 542 | /* SAA7134_MPEG_DVB only */ |
541 | struct videobuf_dvb dvb; | 543 | struct videobuf_dvb dvb; |
542 | int (*original_demod_sleep)(struct dvb_frontend* fe); | 544 | int (*original_demod_sleep)(struct dvb_frontend* fe); |
@@ -593,6 +595,9 @@ void saa7134_buffer_next(struct saa7134_dev *dev, struct saa7134_dmaqueue *q); | |||
593 | void saa7134_buffer_timeout(unsigned long data); | 595 | void saa7134_buffer_timeout(unsigned long data); |
594 | void saa7134_dma_free(struct videobuf_queue *q,struct saa7134_buf *buf); | 596 | void saa7134_dma_free(struct videobuf_queue *q,struct saa7134_buf *buf); |
595 | 597 | ||
598 | int saa7134_buffer_requeue(struct saa7134_dev *dev, | ||
599 | struct saa7134_dmaqueue *q); | ||
600 | |||
596 | int saa7134_set_dmabits(struct saa7134_dev *dev); | 601 | int saa7134_set_dmabits(struct saa7134_dev *dev); |
597 | 602 | ||
598 | extern int (*saa7134_dmasound_init)(struct saa7134_dev *dev); | 603 | extern int (*saa7134_dmasound_init)(struct saa7134_dev *dev); |
@@ -625,12 +630,16 @@ void saa7134_i2c_call_clients(struct saa7134_dev *dev, | |||
625 | extern struct video_device saa7134_video_template; | 630 | extern struct video_device saa7134_video_template; |
626 | extern struct video_device saa7134_radio_template; | 631 | extern struct video_device saa7134_radio_template; |
627 | 632 | ||
633 | void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm); | ||
634 | int saa7134_videoport_init(struct saa7134_dev *dev); | ||
635 | void saa7134_set_decoder(struct saa7134_dev *dev); | ||
636 | |||
628 | int saa7134_common_ioctl(struct saa7134_dev *dev, | 637 | int saa7134_common_ioctl(struct saa7134_dev *dev, |
629 | unsigned int cmd, void *arg); | 638 | unsigned int cmd, void *arg); |
630 | 639 | ||
631 | int saa7134_video_init1(struct saa7134_dev *dev); | 640 | int saa7134_video_init1(struct saa7134_dev *dev); |
632 | int saa7134_video_init2(struct saa7134_dev *dev); | 641 | int saa7134_video_init2(struct saa7134_dev *dev); |
633 | void saa7134_irq_video_intl(struct saa7134_dev *dev); | 642 | void saa7134_irq_video_signalchange(struct saa7134_dev *dev); |
634 | void saa7134_irq_video_done(struct saa7134_dev *dev, unsigned long status); | 643 | void saa7134_irq_video_done(struct saa7134_dev *dev, unsigned long status); |
635 | 644 | ||
636 | 645 | ||
@@ -648,6 +657,8 @@ void saa7134_irq_ts_done(struct saa7134_dev *dev, unsigned long status); | |||
648 | int saa7134_ts_register(struct saa7134_mpeg_ops *ops); | 657 | int saa7134_ts_register(struct saa7134_mpeg_ops *ops); |
649 | void saa7134_ts_unregister(struct saa7134_mpeg_ops *ops); | 658 | void saa7134_ts_unregister(struct saa7134_mpeg_ops *ops); |
650 | 659 | ||
660 | int saa7134_ts_init_hw(struct saa7134_dev *dev); | ||
661 | |||
651 | /* ----------------------------------------------------------- */ | 662 | /* ----------------------------------------------------------- */ |
652 | /* saa7134-vbi.c */ | 663 | /* saa7134-vbi.c */ |
653 | 664 | ||
@@ -676,6 +687,8 @@ int saa7134_tvaudio_do_scan(struct saa7134_dev *dev); | |||
676 | 687 | ||
677 | int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value); | 688 | int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value); |
678 | 689 | ||
690 | void saa7134_enable_i2s(struct saa7134_dev *dev); | ||
691 | |||
679 | /* ----------------------------------------------------------- */ | 692 | /* ----------------------------------------------------------- */ |
680 | /* saa7134-oss.c */ | 693 | /* saa7134-oss.c */ |
681 | 694 | ||