1. 17 6月, 2014 1 次提交
    • M
      [media] dib7000p: rename dib7000p_attach to dib7000p_init · 7f67d96a
      Mauro Carvalho Chehab 提交于
      Well, what we call as "foo_attach" is the method that should
      be called by the dvb_attach() macro.
      
      It should be noticed that the name "dvb_attach" is really a
      bad name and don't express what it does.
      
      dvb_attach() basically does three things, if the frontend is
      compiled as a module:
      - It lookups for the module that it is known to have the
        given symbol name and requests such module;
      - It increments the module usage (anonymously - so lsmod
        doesn't print who loaded the module);
      - after loading the module, it runs the function associated
        with the dynamic symbol.
      
      When compiled as builtin, it just calls the function given to it.
      
      As dvb_attach() increments refcount, it can't be (easily)
      called more than once for the same module, or the kernel
      will deny to remove the module, because refcount will never
      be zeroed.
      
      In other words, the function name given to dvb_attach()
      should be one single symbol that will always be called
      before any other function on that module to be used.
      
      For almost all DVB frontends, there's just one function.
      
      However, the dib7000p initialization can require up to 3
      functions to be called:
      	- dib7000p_get_i2c_master;
      	- dib7000p_i2c_enumeration;
      	- dib7000p_init (before this patch dib7000_attach).
      
      (plus a bunch of other functions that the bridge driver will
      need to call).
      
      As we need to get rid of all those direct calls, because they
      cause compilation breakages when bridge is builtin and
      frontend is module, we'll need to add a new function that
      will be the first one to be called, whatever initialization
      is needed.
      
      So, let's rename the function that probes and init the hardware
      to dib7000p_init.
      
      A latter patch will add a new dib7000p_attach that will be
      used as originally conceived by dvb_attach() way.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      7f67d96a
  2. 26 5月, 2014 2 次提交
    • M
      [media] dib0700: fix RC support on Hauppauge Nova-TD · c4018fa2
      Mauro Carvalho Chehab 提交于
      The RC support o Nova-TD is broken, as the RC endpoint there
      is an interrupt endpoint.
      
      That produces an ugly calltrace at the Kernel logs:
      
      	WARNING: CPU: 2 PID: 56 at drivers/usb/core/urb.c:450 usb_submit_urb+0x1fd/0x5c0()
      	usb 1-1.2: BOGUS urb xfer, pipe 3 != type 1
      	Modules linked in: rc_dib0700_rc5(OF) dvb_usb_dib0700(OF) dib9000(OF) dib8000(OF) dib7000m(OF) dib0090(OF) dib0070(OF) dib7000p(OF) dib3000mc(OF) dibx000_common(OF) dvb_usb(OF) rc_core(OF) snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq snd_seq_device snd_pcm snd_timer snd soundcore bnep bluetooth 6lowpan_iphc rfkill au0828(OF) xc5000(OF) au8522_dig(OF) au8522_common(OF) tveeprom(OF) dvb_core(OF) nouveau i915 mxm_wmi ttm i2c_algo_bit drm_kms_helper drm r8169 mii i2c_core video wmi [last unloaded: au0828]
      	CPU: 2 PID: 56 Comm: khubd Tainted: GF          O 3.14.2-200.fc20.x86_64 #1
      	Hardware name: SAMSUNG ELECTRONICS CO., LTD. 550P5C/550P7C/SAMSUNG_NP1234567890, BIOS P05ABI.016.130917.dg 09/17/2013
      	 0000000000000000 00000000610866bc ffff880223703860 ffffffff816eec92
      	 ffff8802237038a8 ffff880223703898 ffffffff8108a1bd ffff8800916a2180
      	 ffff8801d5b16000 0000000000000003 0000000000000003 0000000000000020
      	Call Trace:
      	 [<ffffffff816eec92>] dump_stack+0x45/0x56
      	 [<ffffffff8108a1bd>] warn_slowpath_common+0x7d/0xa0
      	 [<ffffffff8108a23c>] warn_slowpath_fmt+0x5c/0x80
      	 [<ffffffff814e3ebd>] usb_submit_urb+0x1fd/0x5c0
      	 [<ffffffffa0445925>] dib0700_rc_setup+0xb5/0x120 [dvb_usb_dib0700]
      	 [<ffffffffa0445a58>] dib0700_probe+0xc8/0x130 [dvb_usb_dib0700]
      	...
      
      Fix it by detecting if the endpoint is bulk or interrupt.
      
      Tested with both Hauppauge Nova-TD model 52009 (interrupt) and with a
      		 Prolink Pixelview SBTVD model PV-D231U (bulk).
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      c4018fa2
    • M
      [media] az6027: Added the PID for a new revision of the Elgato EyeTV Sat DVB-S Tuner · 44f83144
      Manuel Schönlaub 提交于
      There is another clone of AZ6027. This patch adds the relevant PID.
      Signed-off-by: NManuel Schönlaub <manuel.schoenlaub@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      44f83144
  3. 24 5月, 2014 1 次提交
  4. 12 3月, 2014 1 次提交
  5. 11 12月, 2013 4 次提交
  6. 29 11月, 2013 1 次提交
  7. 08 11月, 2013 3 次提交
  8. 17 10月, 2013 1 次提交
  9. 02 10月, 2013 1 次提交
    • J
      [media] media: dvb-frontends: ts2020: Added in a option for frequency divider... · 03a67279
      John Horan 提交于
      [media] media: dvb-frontends: ts2020: Added in a option for frequency divider value for s600 devices
      
      When the tuner part of the ds3000 driver was split to share code with the m88rs2000 driver, the ts2020 driver used
      the frequency divider value from the m88rs2000 driver.  However the ds3000 driver requires a different value, and this
      resulted in some frequecies being invisible to the tuner.  This patch adds back in the value needed for the ds3000 driver
      and configured as an option in the dw2102 frontend driver.
      It may also apply to su3000 devices, which use the same ds3000 driver, but for now it is only applied to the s660 device.
      Signed-off-by: NJohn Horan <knasher@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      03a67279
  10. 31 7月, 2013 1 次提交
  11. 22 7月, 2013 1 次提交
  12. 21 5月, 2013 1 次提交
  13. 23 4月, 2013 4 次提交
  14. 31 3月, 2013 1 次提交
    • J
      [media] m920x: Fix uninitialized variable warning · b0efc3ed
      Jean Delvare 提交于
      drivers/media/usb/dvb-usb/m920x.c:91:6: warning: "ret" may be used uninitialized in this function [-Wuninitialized]
      drivers/media/usb/dvb-usb/m920x.c:70:6: note: "ret" was declared here
      This is real, if a remote control has an empty initialization sequence
      we would get success or failure randomly.
      OTOH the initialization of ret in m920x_init is needless, the function
      returns with an error as soon as an error happens, so the last return
      can only be a success and we can hard-code 0 there.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b0efc3ed
  15. 23 3月, 2013 2 次提交
  16. 20 3月, 2013 2 次提交
  17. 19 3月, 2013 2 次提交
  18. 14 3月, 2013 1 次提交
  19. 14 2月, 2013 1 次提交
    • C
      [media] media: Add 0x3009 USB PID to ttusb2 driver (fixed diff) · ed72d37a
      Christoph Nuscheler 提交于
      The "Technisat SkyStar USB plus" is a TT-connect S-2400 clone, which the
      V4L-DVB drivers already support. However, some of these devices (like
      mine) come with a different USB PID 0x3009 instead of 0x3006.
      
      There have already been patches simply overwriting the USB PID in
      dvb-usb-ids.h. Of course these patches were rejected because they would
      have disabled the 0x3006 PID.
      
      This new patch adds the 0x3009 PID to dvb-usb-ids.h, and adds references
      to it within the ttusb2.c driver. PID 0x3006 devices will continue to work.
      
      The only difference between the two hardware models seems to be the
      EEPROM chip. In fact, Windows BDA driver names the 0x3009 device with a
      "(8 kB EEPROM)" suffix. In spite of that, the 0x3009 device works
      absolutely flawlessly using the existing ttusb2 driver.
      Signed-off-by: NChristoph Nuscheler <christoph.nuscheler@t-online.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ed72d37a
  20. 09 2月, 2013 1 次提交
  21. 06 2月, 2013 2 次提交
  22. 06 1月, 2013 1 次提交
  23. 29 12月, 2012 3 次提交
  24. 28 12月, 2012 2 次提交