#1 Patch so compiles for 2.5.69

open
nobody
None
5
2003-05-25
2003-05-25
Steven Fuerst
No

Attached are two patches. The large one adds ivtv to the
/driver/media/video directory so it can be built with the
current 2.5.x build system.

The small patch is the (non-makefile and Kconfig) changes
to get the ivtv driver to compile with 2.5.69

I haven't been able to get the things in the util directory to
work yet - so all I can say is that the ivtv module compiles
and loads without complaining. (I had to edit page.h to
increase the vmalloc space though.)

Because test_ioctl doesn't compile, I haven't been able to
test any video capturing. Even so, this patch should
hopefully provide an easy way to port ivtv to the 2.5/2.6
kernel build system.

Discussion

  • Steven Fuerst
    Steven Fuerst
    2003-05-25

    Patch to 2.5 kernel media directory to add ivtv

     
  • Steven Fuerst
    Steven Fuerst
    2003-05-25

    The changes to the ivtv driver itself

     
    Attachments
  • Logged In: YES
    user_id=27290

    Please install the perl modules Video::Frequencies and
    Video::ivtv that are currently available in cvs as tarballs
    and then try the record-v4l2.pl script and see if capturing
    works for you.

    You do not need the test_ioctl program to be able to capture
    data since the record-v4l2.pl script can set any parameter
    that you may be wanting to set via test_ioctl.

     
  • Steven Fuerst
    Steven Fuerst
    2003-05-26

    Logged In: YES
    user_id=77411

    Ok - I've managed to get record-v4l2.pl working. It captures fine
    using the patch with kernel 2.5.69 (I'm in the UK, so I've just
    tested using PAL-I though.)

    Also - I think I forgot to include the following changes to ivtv.h in
    the attached patches:

    Index: ivtv.h

    RCS file: /cvsroot/ivtv/ivtv/ivtv/driver/ivtv.h,v
    retrieving revision 1.36
    diff -r1.36 ivtv.h
    16c16
    < #include <linux/modversions.h>
    ---
    > #include <config/modversions.h>
    276,277d275
    <
    < int debug;
    444c442,444
    < struct ivtv ivtv_cards[IVTV_MAX_CARDS];
    ---
    > extern struct ivtv ivtv_cards[IVTV_MAX_CARDS];
    >
    > extern int debug;
    478c478
    < void ivtv_v4l2_cleanup();
    ---
    > void ivtv_v4l2_cleanup(struct ivtv *itv);
    480d479
    < void ivtv_zero_usage_count();
    508c507
    < struct ivtv_buffer *ivtv_init_buffer();
    ---
    > struct ivtv_buffer *ivtv_init_buffer(void);
    519c518
    < void ivtv_irq_handler(int irq, void *dev_id, struct pt_regs *regs);
    ---
    > irqreturn_t ivtv_irq_handler(int irq, void *dev_id, struct pt_regs
    *regs);