Thanks Mark and Petter,

My sources:
-----------
teloche:/usr/local/src# ls -ld ivtv-0.3*
drwxr-xr-x  6 root root    4096 2005-07-13 20:13 ivtv-0.3.6z
drwxr-xr-x  6 root root    4096 2005-07-13 20:13 ivtv-0.3.6z.orig
-rw-r--r--  1 root root 2181120 2005-07-11 20:46 ivtv-0.3.6z.tar
teloche:/usr/local/src#

I made a file in the subdirectory: (petter.diff)
(copy/paste from Petter's patche)
------------------------------------------------
teloche:/usr/local/src/ivtv-0.3.6z/patches# ls
alevt.diff                       myth-0.16-ivtv-jh10.diff  README
MPlayer-1.0pre5-ivtv-osd-4.diff  petter.diff               zvbi.diff
teloche:/usr/local/src/ivtv-0.3.6z/patches#

teloche:/usr/local/src/ivtv-0.3.6z/patches# vi petter.diff
      1 diff -ur /usr/local/src/ivtv-0.3.6z.orig/driver/ivtv-fileops.c
      2 /usr/local/src/ivtv-0.3.6z/driver/ivtv-fileops.c
      3 --- ivtv-0.3.6z.orig/driver/ivtv-fileops.c 2005-07-11
      4 14:39:55.000000000 +0200
      5 +++ /usr/local/src/ivtv-0.3.6z/driver/ivtv-fileops.c 2005-07-15 
08:45:49.0000000
       00 +0200
      6 @@ -1605,11 +1605,6 @@
      7 IVTV_DEBUG(IVTV_DEBUG_INFO, "Disabling digitizer\n");
      8 dig = 0;
      9 itv->card->video_dec_func(itv, DECODER_ENABLE_OUTPUT, &dig);
     10 -
     11 - if (tda9887 == 0) {
     12 - int config = 0;
     13 - ivtv_tda9887(itv, TDA9887_SET_CONFIG, &config);
     14 - }
     15 }
     16
     17 void unmute_and_resume(struct ivtv *itv, int sleep)
     18 @@ -1637,11 +1632,6 @@
     19 if (sleep)
     20 ivtv_sleep_timeout(HZ / 10, 0);
     21
     22 - if (tda9887 == 0) {
     23 - int config = TDA9887_PORT1_ACTIVE | TDA9887_PORT2_ACTIVE;
     24 - ivtv_tda9887(itv, TDA9887_SET_CONFIG, &config);
     25 - }
     26 -
     27 /* Unmute */
     28 ivtv_audio_set_mute(itv, 0);
     29 IVTV_DEBUG(IVTV_DEBUG_INFO, "Finished with Mute\n");
     30
                                                                      30,0-1
       Bas

If I run this patch:
--------------------
teloche:/usr/local/src/ivtv-0.3.6z# patch -p0 --dry-run <patches/petter.diff
patching file /usr/local/src/ivtv-0.3.6z/driver/ivtv-fileops.c
patch: **** malformed patch at line 7: IVTV_DEBUG(IVTV_DEBUG_INFO, "Disabling
digitizer\ n");
teloche:/usr/local/src/ivtv-0.3.6z#

Sorry again for my newbie question ... :-(
Can you see what is wrong ?

I don't understand lines 3,4 and 5 (dates between filenames) is it correct
?

Thanks

Jean







>-- Message original --
>From: Mark Knecht <[EMAIL PROTECTED]>
>To: [email protected]
>Subject: Re: [ivtv-devel] PVR-500, capture ok but no sound...
>Reply-To: [email protected]
>Date: Wed, 20 Jul 2005 13:11:09 -0700
>
>
>On 7/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hello Petter,
>> >> Used to have the same problem here as well. If the loading of the
>> >> tda9887 module doesn't help you (it made no difference for my setup),
>> And unfortunately, no more for me ...
>> 
>> Thanks for your patch... But can you explain (or recommend some document)
>> to learn how to apply your patche ? ... :-(
>> 
>
>man patch
>
>but most likely you'll using something like
>
>cd to source code
>patch -p1 --dry-run <path-to-patch
>
>(or possibly -p0)
>
>If that looks good then remove the --dry-run option and the patch will
>be applied. Then build the code and away you go.
>
>Hoep this helps.
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
>_______________________________________________
>ivtv-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/ivtv-devel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to