diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.h')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.h b/drivers/media/video/ivtv/ivtv-driver.h index b76a12268637..be2d779dba12 100644 --- a/drivers/media/video/ivtv/ivtv-driver.h +++ b/drivers/media/video/ivtv/ivtv-driver.h | |||
@@ -750,6 +750,12 @@ void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv); | |||
750 | /* First-open initialization: load firmware, init cx25840, etc. */ | 750 | /* First-open initialization: load firmware, init cx25840, etc. */ |
751 | int ivtv_init_on_first_open(struct ivtv *itv); | 751 | int ivtv_init_on_first_open(struct ivtv *itv); |
752 | 752 | ||
753 | /* Test if the current VBI mode is raw (1) or sliced (0) */ | ||
754 | static inline int ivtv_raw_vbi(const struct ivtv *itv) | ||
755 | { | ||
756 | return itv->vbi.in.type == V4L2_BUF_TYPE_VBI_CAPTURE; | ||
757 | } | ||
758 | |||
753 | /* This is a PCI post thing, where if the pci register is not read, then | 759 | /* This is a PCI post thing, where if the pci register is not read, then |
754 | the write doesn't always take effect right away. By reading back the | 760 | the write doesn't always take effect right away. By reading back the |
755 | register any pending PCI writes will be performed (in order), and so | 761 | register any pending PCI writes will be performed (in order), and so |