1. 15 5月, 2012 20 次提交
    • A
      [media] rtl28xxu: dynamic USB ID support · 943a9034
      Antti Palosaari 提交于
      DVB USB core refuses to	load driver when current USB ID
      does not match IDs on driver table. Due to that dynamic
      IDs does not work. Replace reference design ID by dynamic
      ID in .probe() in order to get it working.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      943a9034
    • S
      [media] dib0700: Return -EINTR and unlock mutex if locking attempts fails · 26a11eb1
      Santosh Nayak 提交于
      In 'dib0700_i2c_xfer_new()' and 'dib0700_i2c_xfer_legacy()'
      we are taking two locks:
                      1. i2c_mutex
                      2. usb_mutex
      If attempt to take 'usb_mutex' lock fails then the previously taken
      lock 'i2c_mutex' should be unlocked and -EINTR should be returned so
      that caller can take appropriate action.
      
      If locking attempt was interrupted by a signal then
      we should return -EINTR. At present we are returning '0' for
      such scenarios  which is wrong.
      
      Replace -EAGAIN by -EINTR as a return type for the the scenario
      where locking attempt was interrupted by signal.
      Signed-off-by: NSantosh Nayak <santoshprasadnayak@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      26a11eb1
    • G
      [media] cxd2820r: tweak search algorithm behavior · b115f400
      Gianluca Gennari 提交于
      MPIS based STBs running 3.x kernels and the Enigma2 OS are not able to tune
      DVB-T channels with the PCTV 290e using the current cxd2820r driver.
      DVB-T2 channels instead work properly.
      
      This patch fixes the problem by changing the condition to break out from the
      wait lock loop in the "search" function of the cxd2820r demodulator from
      FE_HAS_SIGNAL to FE_HAS_LOCK.
      
      As a consequence, the "search" function of the demodulator driver now returns
      DVBFE_ALGO_SEARCH_SUCCESS only if the frequency lock is successfully acquired.
      
      This behavior seems consistent with other demodulator drivers (e.g. stv090x,
      hd29l2, stv0900, stb0899, mb86a16).
      
      This patch has been successfully tested with DVB-T and DVB-T2 signals,
      on both PC and the mipsel STB running Enigma2.
      No apparent side effect has been observed on PC applications like Kaffeine.
      DVB-C is not available in my country so it's not tested.
      Signed-off-by: NGianluca Gennari <gennarone@gmail.com>
      Acked-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b115f400
    • I
      [media] lmedm04: Initialize a variable before its usage · b7dc4cd1
      Il Han 提交于
      The variable ret is used uninitialized.
      It should be initialized before used.
      Initialize it.
      Signed-off-by: NIl Han <corone.il.han@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b7dc4cd1
    • M
      [media] it913x.: Fix a misuse of || · 9ab494b0
      Malcolm Priestley 提交于
      On Mon, 2012-05-07 at 07:45 -0300, Mauro Carvalho Chehab wrote:
      > Malcolm,
      >
      > Em 04-04-2012 20:00, Joe Perches escreveu:
      > > Likely these should be && not ||
      > >
      > > drivers/scsi/FlashPoint.c:				if(bit_cnt != 0 || bit_cnt != 8)
      >
      > > drivers/media/dvb/dvb-usb/it913x.c:		if (ret == 0 || ret != -EBUSY || ret != -ETIMEDOUT)
      > > drivers/media/dvb/dvb-usb/it913x.c:		if (ret == 0 || ret != -EBUSY || ret != -ETIMEDOUT)
      >
      > Could you please take a look on the above?
      
      Hmm... yes, thanks, also a bug.
      
      Just check for -EBUSY && -ETIMEDOUT
      Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9ab494b0
    • A
      [media] drivers/media: add missing __devexit_p() annotations · cd624c7b
      Arnd Bergmann 提交于
      Drivers that refer to a __devexit function in an operations
      structure need to annotate that pointer with __devexit_p so
      replace it with a NULL pointer when the section gets discarded.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      cd624c7b
    • A
      [media] dvb/drxd: stub out drxd_attach when not built · 60ab5e12
      Arnd Bergmann 提交于
      This avoids getting
      drivers/media/video/em28xx/em28xx-dvb.c:721: \
                             undefined reference to `drxd_attach'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      60ab5e12
    • H
      [media] av7110: fix v4l2_compliance test issues · a299e407
      Hans Verkuil 提交于
      Besides the usual inconsistencies in input enumeration there was also a
      kernel crash if you tried to poll on a vbi node. The checks for sliced
      vbi output vs vbi capture were not complete enough.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a299e407
    • H
      313fce75
    • H
      [media] saa7146: fix querycap, vbi/video separation and g/s_register · ab49ae0f
      Hans Verkuil 提交于
      The querycap ioctl returned an incorrect version number and incorrect
      capabilities (mixing up vbi and video caps).
      
      The reason for that was that video nodes could do vbi activities: that
      should be separated between the vbi and video nodes.
      
      There were also a few minor problems with dbg_g/s_register that have
      been resolved. The mxb/saa7146 driver now passes the v4l2_compliance tests.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ab49ae0f
    • H
      [media] v4l/dvb: fix compiler warnings · 5becbc58
      Hans Verkuil 提交于
      media_build/v4l/drxk_hard.c: In function 'DownloadMicrocode':
      media_build/v4l/drxk_hard.c:1388:6: warning: variable 'BlockCRC' set but not used [-Wunused-but-set-variable]
      media_build/v4l/drxk_hard.c:1384:6: warning: variable 'Drain' set but not used [-Wunused-but-set-variable]
      media_build/v4l/drxk_hard.c:1383:6: warning: variable 'Flags' set but not used [-Wunused-but-set-variable]
      media_build/v4l/lmedm04.c: In function 'lme2510_probe':
      media_build/v4l/lmedm04.c:1208:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/hopper_cards.c: In function 'hopper_irq_handler':
      media_build/v4l/hopper_cards.c:68:26: warning: variable 'lstat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_cards.c: In function 'mantis_irq_handler':
      media_build/v4l/mantis_cards.c:76:26: warning: variable 'lstat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_dma.c: In function 'mantis_dma_stop':
      media_build/v4l/mantis_dma.c:202:16: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_dma.c:202:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mantis_evm.c: In function 'mantis_hifevm_work':
      media_build/v4l/mantis_evm.c:44:17: warning: variable 'gpif_mask' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c: In function 'stb0899_init_calc':
      media_build/v4l/stb0899_drv.c:640:5: warning: variable 'agc1cn' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c: In function 'stb0899_diseqc_init':
      media_build/v4l/stb0899_drv.c:830:13: warning: variable 'f22_rx' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stb0899_drv.c:826:31: warning: variable 'tx_data' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stv0900_sw.c: In function 'stv0900_track_optimization':
      media_build/v4l/stv0900_sw.c:838:26: warning: variable 'rolloff' set but not used [-Wunused-but-set-variable]
      media_build/v4l/ir-sanyo-decoder.c: In function 'ir_sanyo_decode':
      media_build/v4l/ir-sanyo-decoder.c:59:14: warning: variable 'not_address' set but not used [-Wunused-but-set-variable]
      media_build/v4l/mceusb.c: In function 'mceusb_dev_printdata':
      media_build/v4l/mceusb.c:523:46: warning: variable 'data5' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5becbc58
    • H
      [media] v4l/dvb: fix compiler warnings · fdf07b02
      Hans Verkuil 提交于
      media_build/v4l/stb6100.c: In function 'stb6100_read_reg':
      media_build/v4l/stb6100.c:161:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
      media_build/v4l/cx24110.c: In function 'cx24110_read_ucblocks':
      media_build/v4l/cx24110.c:515:6: warning: variable 'lastbyer' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dib9000.c: In function 'dib9000_mbx_process':
      media_build/v4l/dib9000.c:711:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
      media_build/v4l/zl10353.c: In function 'zl10353_init':
      media_build/v4l/zl10353.c:562:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stv0297.c: In function 'stv0297_set_frontend':
      media_build/v4l/stv0297.c:417:16: warning: variable 'starttime' set but not used [-Wunused-but-set-variable]
      media_build/v4l/lgs8gxx.c: In function 'lgs8gxx_set_mode_manual':
      media_build/v4l/lgs8gxx.c:265:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/af9013.c: In function 'af9013_statistics_work':
      media_build/v4l/af9013.c:517:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stv090x.c: In function 'stv090x_optimize_track':
      media_build/v4l/stv090x.c:2845:23: warning: variable 'rolloff' set but not used [-Wunused-but-set-variable]
      media_build/v4l/stv090x.c: In function 'stv090x_algo':
      media_build/v4l/stv090x.c:3177:28: warning: variable 'no_signal' set but not used [-Wunused-but-set-variable]
      media_build/v4l/it913x-fe.c: In function 'it913x_fe_read_ber':
      media_build/v4l/it913x-fe.c:636:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/it913x-fe.c: In function 'it913x_fe_get_frontend':
      media_build/v4l/it913x-fe.c:661:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/it913x-fe.c: In function 'it913x_fe_set_frontend':
      media_build/v4l/it913x-fe.c:694:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/m88rs2000.c: In function 'm88rs2000_set_fec':
      media_build/v4l/m88rs2000.c:657:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dst_ca.c: In function 'ca_send_message':
      media_build/v4l/dst_ca.c:480:15: warning: variable 'ca_message_header_len' set but not used [-Wunused-but-set-variable]
      media_build/v4l/smssdio.c: In function 'smssdio_interrupt':
      media_build/v4l/smssdio.c:117:11: warning: variable 'isr' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      fdf07b02
    • H
      [media] dw2102: fix compile warnings · d51dbecc
      Hans Verkuil 提交于
      media_build/v4l/dw2102.c:151:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dw2102.c:224:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dw2102.c:279:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dw2102.c:352:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dw2102.c:435:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      media_build/v4l/dw2102.c:499:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d51dbecc
    • A
      [media] af9035: add few new reference design USB IDs · d281c1f1
      Antti Palosaari 提交于
      Add all known reference design USB IDs.
      Rename two earlier reference design USB IDs.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d281c1f1
    • A
      [media] af9035: remove one config parameter · 1cbabf9c
      Antti Palosaari 提交于
      We can use tuner ID instead of HW not supported flag.
      Lesser code is better code.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      1cbabf9c
    • A
      [media] af9035: move device configuration to the state · 2a79eefa
      Antti Palosaari 提交于
      Fixes most problems when having more than one device connected
      as demod and tuner configurations are not shared.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      2a79eefa
    • H
      [media] af9033: implement ber and ucb functions · 47eafa54
      Hans-Frieder Vogt 提交于
      af9033: implement read_ber and read_ucblocks functions. Version 2 of patch that
      reflects my findings on the behaviour of abort_cnt, err_cnt and bit_cnt:
      
      - bit_cnt is always 0x2710 (10000)
      - abort_cnt is between 0 and 0x2710
      - err_cnt is between 0 and 640000 (= 0x2710 * 8 * 8)
      
      in the current implementation BER is calculated as the number of bit errors per
      processed bits, ignoring those bits that are already discarded and counted in
      abort_cnt, i.e. UCBLOCKS.
      Signed-off-by: NHans-Frieder Vogt <hfvogt@gmx.net>
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      47eafa54
    • H
      3234bd2f
    • A
      [media] af9035: remove unused struct · 52560b72
      Antti Palosaari 提交于
      Not used anymore since new firmware downloader. I forget to remove
      those earlier when changed firmware downloader.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      52560b72
    • A
      [media] af9035: various small changes for af9035_ctrl_msg() · 6fb39c50
      Antti Palosaari 提交于
      Fix USB buffer len to maximum possible.
      Various log writing fixes, remove extra new lines and excessive
      type casts. Rename and type change some variables.
      Signed-off-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6fb39c50
  2. 08 5月, 2012 1 次提交
  3. 04 5月, 2012 1 次提交
  4. 27 4月, 2012 1 次提交
  5. 20 4月, 2012 4 次提交
  6. 19 4月, 2012 3 次提交
  7. 18 4月, 2012 2 次提交
  8. 10 4月, 2012 8 次提交