Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Wednesday, October 19th, 2011 at 9:28:51pm MDT 

  1. diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr-control.c
  2. --- a/linux/drivers/media/video/hdpvr/hdpvr-control.c   Fri Jul 02 00:38:54 2010 -0300
  3. +++ b/linux/drivers/media/video/hdpvr/hdpvr-control.c   Wed Oct 19 23:27:41 2011 -0400
  4. @@ -29,8 +29,6 @@
  5.         int ret;
  6.         char request_type = 0x38, snd_request = 0x01;
  7.  
  8. -       msleep(10);
  9. -
  10.         mutex_lock(&dev->usbc_mutex);
  11.         dev->usbc_buf[0] = valbuf;
  12.         ret = usb_control_msg(dev->udev,
  13. diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr-core.c
  14. --- a/linux/drivers/media/video/hdpvr/hdpvr-core.c      Fri Jul 02 00:38:54 2010 -0300
  15. +++ b/linux/drivers/media/video/hdpvr/hdpvr-core.c      Wed Oct 19 23:27:41 2011 -0400
  16. @@ -60,6 +60,7 @@
  17.         { USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID1) },
  18.         { USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID2) },
  19.         { USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID3) },
  20. +       { USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID4) },
  21.         { }                    /* Terminating entry */
  22.  };
  23.  MODULE_DEVICE_TABLE(usb, hdpvr_table);
  24. @@ -262,10 +263,10 @@
  25.         .bitrate_mode  = HDPVR_CONSTANT,
  26.         .gop_mode      = HDPVR_SIMPLE_IDR_GOP,
  27.         .audio_codec   = V4L2_MPEG_AUDIO_ENCODING_AAC,
  28. -       .brightness    = 0x86,
  29. -       .contrast      = 0x80,
  30. -       .hue      = 0x80,
  31. -       .saturation    = 0x80,
  32. +       .brightness    = 0x80,
  33. +       .contrast      = 0x40,
  34. +       .hue      = 0xf,
  35. +       .saturation    = 0x40,
  36.         .sharpness     = 0x80,
  37.  };
  38.  
  39. diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr-video.c
  40. --- a/linux/drivers/media/video/hdpvr/hdpvr-video.c     Fri Jul 02 00:38:54 2010 -0300
  41. +++ b/linux/drivers/media/video/hdpvr/hdpvr-video.c     Wed Oct 19 23:27:41 2011 -0400
  42. @@ -26,7 +26,7 @@
  43.  #include <media/v4l2-ioctl.h>
  44.  #include "hdpvr.h"
  45.  
  46. -#define BULK_URB_TIMEOUT 1250 /* 1.25 seconds */
  47. +#define BULK_URB_TIMEOUT 90 /* 0.09 seconds */
  48.  
  49.  #define print_buffer_status() { \
  50.                v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev,      \
  51. @@ -337,8 +337,6 @@
  52.                                          dev->bulk_in_endpointAddr),
  53.                            buf, dev->bulk_in_size, &actual_length,
  54.                            BULK_URB_TIMEOUT)) {
  55. -              /* wait */
  56. -              msleep(5);
  57.                v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev,
  58.                        "%2d: got %d bytes\n", c, actual_length);
  59.         }
  60. @@ -731,13 +729,13 @@
  61.  
  62.         switch (qc->id) {
  63.         case V4L2_CID_BRIGHTNESS:
  64. -              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x86);
  65. +              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
  66.         case V4L2_CID_CONTRAST:
  67. -              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
  68. +              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x40);
  69.         case V4L2_CID_SATURATION:
  70. -              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
  71. +              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x40);
  72.         case V4L2_CID_HUE:
  73. -              return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
  74. +              return v4l2_ctrl_query_fill(qc, 0x0, 0x1e, 1, 0xF);
  75.         case V4L2_CID_SHARPNESS:
  76.                return v4l2_ctrl_query_fill(qc, 0x0, 0xff, 1, 0x80);
  77.         case V4L2_CID_MPEG_AUDIO_ENCODING:
  78. diff -r abd3aac6644e linux/drivers/media/video/hdpvr/hdpvr.h
  79. --- a/linux/drivers/media/video/hdpvr/hdpvr.h   Fri Jul 02 00:38:54 2010 -0300
  80. +++ b/linux/drivers/media/video/hdpvr/hdpvr.h   Wed Oct 19 23:27:41 2011 -0400
  81. @@ -31,6 +31,7 @@
  82.  #define HD_PVR_PRODUCT_ID1     0x4901
  83.  #define HD_PVR_PRODUCT_ID2     0x4902
  84.  #define HD_PVR_PRODUCT_ID3     0x4982
  85. +#define HD_PVR_PRODUCT_ID4     0x4903
  86.  
  87.  #define UNSET    (-1U)
  88.  

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation