1. 25 6月, 2017 17 次提交
    • D
      media: dvb-frontends/stv0367: split SNR determination into functions · b138afda
      Daniel Scheller 提交于
      The read_snr() functions currently do some magic to return relative scale
      values when called. Split out register readouts into separate functions
      so the functionality can be reused in some other way.
      Signed-off-by: NDaniel Scheller <d.scheller@gmx.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      b138afda
    • D
      media: dvb-frontends/stv0367: initial DDB DVBv5 stats, implement ucblocks · 4043eb23
      Daniel Scheller 提交于
      This adds the basics to stv0367ddb_read_status() to be able to properly
      provide signal statistics in DVBv5 format. Also adds UCB readout and
      provides those values. Also, don't return -EINVAL in ddb_read_status()
      if active_demod_state indicates no delivery system.
      Signed-off-by: NDaniel Scheller <d.scheller@gmx.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      4043eb23
    • D
      media: dvb-frontends/lnbh25: improve kernellog output · e1bdf024
      Daniel Scheller 提交于
      Use dev_dbg() in conjunction with the %*ph format macro to print the vmon
      status debug, thus hiding continuous hexdumping from default log levels.
      Also, change the attach success log line from error to info severity.
      Signed-off-by: NDaniel Scheller <d.scheller@gmx.net>
      Acked-by: NAbylay Ospan <aospan@netup.ru>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      e1bdf024
    • B
      media: ngene: Replace semaphore i2c_switch_mutex with mutex · bd7a85d3
      Binoy Jayan 提交于
      The semaphore 'i2c_switch_mutex' is used as a simple mutex, so
      it should be written as one. Semaphores are going away in the future.
      Signed-off-by: NBinoy Jayan <binoy.jayan@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      bd7a85d3
    • B
      media: ngene: Replace semaphore stream_mutex with mutex · 90979f04
      Binoy Jayan 提交于
      The semaphore 'stream_mutex' is used as a simple mutex, so
      it should be written as one. Also moving the mutex_[lock/unlock]
      to the caller as it is anyway locked at the beginning of the
      callee thus avoiding repetition.
      Signed-off-by: NBinoy Jayan <binoy.jayan@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      90979f04
    • B
      media: ngene: Replace semaphore cmd_mutex with mutex · 1439cdb0
      Binoy Jayan 提交于
      The semaphore 'cmd_mutex' is used as a simple mutex, so
      it should be written as one. Also, replace down with
      mutex_destroy to ensure sane state when ngene_stop is
      called.
      Signed-off-by: NBinoy Jayan <binoy.jayan@linaro.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      1439cdb0
    • M
      media: tw5864, fc0011: better handle WARN_ON() · f7d84fa7
      Mauro Carvalho Chehab 提交于
      As such macro will check if the expression is true, it may fall through, as
      warned:
      
      In file included from ./include/uapi/linux/stddef.h:1:0,
                       from ./include/linux/stddef.h:4,
                       from ./include/uapi/linux/posix_types.h:4,
                       from ./include/uapi/linux/types.h:13,
                       from ./include/linux/types.h:5,
                       from ./drivers/media/dvb-core/dvb_frontend.h:35,
                       from drivers/media/tuners/fc0011.h:4,
                       from drivers/media/tuners/fc0011.c:20:
      drivers/media/tuners/fc0011.c: In function 'fc0011_set_params':
      ./include/linux/compiler.h:179:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
       # define unlikely(x) __builtin_expect(!!(x), 0)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      ./include/asm-generic/bug.h:109:2: note: in expansion of macro 'unlikely'
        unlikely(__ret_warn_on);     \
        ^~~~~~~~
      drivers/media/tuners/fc0011.c:344:3: note: in expansion of macro 'WARN_ON'
         WARN_ON(1);
         ^~~~~~~
      drivers/media/tuners/fc0011.c:345:2: note: here
        case 0:
        ^~~~
      In file included from ./include/uapi/linux/stddef.h:1:0,
                       from ./include/linux/stddef.h:4,
                       from ./include/uapi/linux/posix_types.h:4,
                       from ./include/uapi/linux/types.h:13,
                       from ./include/linux/types.h:5,
                       from ./include/linux/list.h:4,
                       from ./include/linux/module.h:9,
                       from drivers/media/pci/tw5864/tw5864-video.c:17:
      drivers/media/pci/tw5864/tw5864-video.c: In function 'tw5864_fmt_vid_cap':
      ./include/linux/compiler.h:179:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
       # define unlikely(x) __builtin_expect(!!(x), 0)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      ./include/asm-generic/bug.h:68:2: note: in expansion of macro 'unlikely'
        unlikely(__ret_warn_on);    \
        ^~~~~~~~
      drivers/media/pci/tw5864/tw5864-video.c:547:3: note: in expansion of macro 'WARN_ON_ONCE'
         WARN_ON_ONCE(1);
         ^~~~~~~~~~~~
      drivers/media/pci/tw5864/tw5864-video.c:548:2: note: here
        case STD_NTSC:
        ^~~~
      
      On both cases, it means an error, so, let's return an error
      code, to make gcc happy.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      Acked-by: NMichael Büsch <m@bues.ch>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      f7d84fa7
    • M
      media: dvb-frontends: drx39xyj: remove obsolete sign extend macros · e1d00cdd
      Martin Kepplinger 提交于
      DRX_S9TOS16 and DRX_S24TODRXFREQ are simply not used. Furthermore,
      sign_extend32() should be used for sign extension. (Also, the comment
      describing DRX_S24TODRXFREQ was wrong). So remove these macros.
      Signed-off-by: NMartin Kepplinger <martink@posteo.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      e1d00cdd
    • P
      media: v4l: omap_vout: vrfb: Convert to dmaengine · 6a1560ec
      Peter Ujfalusi 提交于
      The dmaengine driver for sDMA now have support for interleaved transfer.
      This trasnfer type was open coded with the legacy omap-dma API, but now
      we can move it to dmaengine.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      6a1560ec
    • M
      media: Replace initalized ->initialized · 1250a85b
      Mauro Carvalho Chehab 提交于
      While committing a change on em28xx, I got a warning of a
      typo there. So, fix it on em28xx and on two other media drivers
      with the same typo.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      1250a85b
    • M
      media: em28xx: add support for new of Terratec H6 · d6a64327
      Mauro Carvalho Chehab 提交于
      There's a new version of Terratec H6 with uses USB ID
      0ccd:10b2. This version is similar to the old one (with is
      supported via the HTC entry), except that this one has the
      eeprom on the second bus.
      
      On this board, one side of this board is labeled with:
      	dvbc v2.0
      The other side with:
      	94V-0, MO2, RK-4221 with huge digits: 1107
      
      With those patches, the board is properly detected:
      
          em28xx 1-1.5:1.0: New device TERRATEC TERRATCE H5 MKII @ 480 Mbps (0ccd:10b2, interface 0, class 0)
          em28xx 1-1.5:1.0: Audio interface 0 found (Vendor Class)
          em28xx 1-1.5:1.0: Video interface 0 found: isoc
          em28xx 1-1.5:1.0: DVB interface 0 found: isoc
          em28xx 1-1.5:1.0: chip ID is em2884
          em28xx eeprom 00000000: 26 00 00 00 02 0b 0f e5 f5 64 01 60 09 e5 f5 64  &........d.`...d
          em28xx eeprom 00000010: 09 60 03 c2 c6 22 e5 f7 b4 03 13 e5 f6 b4 87 03  .`..."..........
          em28xx eeprom 00000020: 02 0a b9 e5 f6 b4 93 03 02 09 46 c2 c6 22 c2 c6  ..........F.."..
          em28xx eeprom 00000030: 22 00 60 00 ef 70 08 85 3d 82 85 3c 83 93 ff ef  ".`..p..=..<....
          em28xx eeprom 00000040: 60 19 85 3d 82 85 3c 83 e4 93 12 07 a3 12 0a fe  `..=..<.........
          em28xx eeprom 00000050: 05 3d e5 3d 70 02 05 3c 1f 80 e4 22 12 0b 06 02  .=.=p..<..."....
          em28xx eeprom 00000060: 07 e2 01 00 1a eb 67 95 cd 0c b2 10 f0 13 6b 03  ......g.......k.
          em28xx eeprom 00000070: 98 22 6a 1c 86 12 27 57 4e 16 29 00 60 00 00 00  ."j...'WN.).`...
          em28xx eeprom 00000080: 02 00 00 00 5e 00 13 00 f0 10 44 82 82 00 00 00  ....^.....D.....
          em28xx eeprom 00000090: 5b 81 c0 00 00 00 20 40 20 80 02 20 10 01 00 00  [..... @ .. ....
          em28xx eeprom 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
          em28xx eeprom 000000b0: c6 40 00 00 81 00 00 00 00 00 00 00 00 c4 00 00  .@..............
          em28xx eeprom 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1c 03  ................
          em28xx eeprom 000000d0: 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00  1.2.3.4.5.6.7.8.
          em28xx eeprom 000000e0: 39 00 41 00 42 00 43 00 44 00 12 03 54 00 45 00  9.A.B.C.D...T.E.
          em28xx eeprom 000000f0: 52 00 52 00 41 00 54 00 45 00 43 00 22 03 54 00  R.R.A.T.E.C.".T.
          em28xx 1-1.5:1.0: eeprom 000100: ... (skipped)
          em28xx 1-1.5:1.0: EEPROM ID = 26 00 00 00, EEPROM hash = 0xbcd5a8cf
          em28xx 1-1.5:1.0: EEPROM info:
          em28xx 1-1.5:1.0:	microcode start address = 0x0004, boot configuration = 0x00
          em28xx 1-1.5:1.0:	I2S audio, 5 sample rates
          em28xx 1-1.5:1.0:	500mA max power
          em28xx 1-1.5:1.0:	Table at offset 0x27, strings=0x2298, 0x1c6a, 0x1286
          em28xx 1-1.5:1.0: Identified as Terratec Cinergy H6 rev. 2 (card=101)
          em28xx 1-1.5:1.0: Currently, V4L2 is not supported on this model
          em28xx 1-1.5:1.0: dvb set to isoc mode.
          usbcore: registered new interface driver em28xx
          em28xx 1-1.5:1.0: Binding audio extension
          em28xx 1-1.5:1.0: em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
          em28xx 1-1.5:1.0: em28xx-audio.c: Copyright (C) 2007-2016 Mauro Carvalho Chehab
          em28xx 1-1.5:1.0: Endpoint 0x83 high-speed on intf 0 alt 7 interval = 8, size 196
          em28xx 1-1.5:1.0: Number of URBs: 1, with 64 packets and 192 size
          em28xx 1-1.5:1.0: Audio extension successfully initialized
          em28xx: Registered (Em28xx Audio Extension) extension
          em28xx 1-1.5:1.0: Binding DVB extension
          drxk: status = 0x639260d9
          drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
          drxk: DRXK driver version 0.9.4300
          drxk: frontend initialized.
          tda18271 4-0060: creating new instance
          tda18271: TDA18271HD/C2 detected @ 4-0060
          dvbdev: DVB: registering new adapter (1-1.5:1.0)
          em28xx 1-1.5:1.0: DVB: registering adapter 0 frontend 0 (DRXK DVB-C DVB-T)...
          dvbdev: dvb_create_media_entity: media entity 'DRXK DVB-C DVB-T' registered.
          dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
          em28xx 1-1.5:1.0: DVB extension successfully initialized
          em28xx: Registered (Em28xx dvb Extension) extension
          em28xx 1-1.5:1.0: Registering input extension
          rc rc0: 1-1.5:1.0 IR as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/rc/rc0
          Registered IR keymap rc-nec-terratec-cinergy-xs
          input: 1-1.5:1.0 IR as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/rc/rc0/input0
          em28xx 1-1.5:1.0: Input extension successfully initalized
          em28xx: Registered (Em28xx Input Extension) extension
          tda18271: performing RF tracking filter calibration
          tda18271: RF tracking filter calibration complete
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      d6a64327
    • M
      media: em28xx: Ignore errors while reading from eeprom · b1e1d453
      Mauro Carvalho Chehab 提交于
      While testing support for Terratec H6 rev. 2, it was noticed
      that reading from eeprom there causes a timeout error.
      
      Apparently, this is due to the need of properly setting GPIOs.
      
      In any case, the driver doesn't really require eeprom reading
      to succeed, as this is currently used only for debug.
      
      So, Ignore such errors.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      Acked-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      b1e1d453
    • D
      media: dib0700: fix error handling in dib0700_i2c_xfer_legacy() · 66083b49
      Dan Carpenter 提交于
      Mostly this adds some unlocks to error paths.  But, if you see where
      there were "break;" statements before, I changed those paths to return
      error codes instead of returning success.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      66083b49
    • D
      media: dib0700: fix locking in dib0700_i2c_xfer_new() · d18a6ef5
      Dan Carpenter 提交于
      This patch mostly adds unlocks to error paths.  But one additional small
      change is that I made the first "break;" a "goto unlock;" which means
      that now we return failure instead of success on that path.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      d18a6ef5
    • G
      media: tuners: mxl5005s: remove useless variable assignments · dbe885a5
      Gustavo A. R. Silva 提交于
      Values assigned to variables Fmax and Fmin at lines 2740 and 2741 are
      overwritten at lines 2754 and 2755 before they can be used. This makes
      such variable assignments useless.
      
      Addresses-Coverity-ID: 1226952
      Addresses-Coverity-ID: 1226953
      Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      dbe885a5
    • M
      media: imx.rst: add it to v4l-drivers book · 59a4fcf3
      Mauro Carvalho Chehab 提交于
      Avoid the following warning when building documentation:
      	checking consistency... /devel/v4l/patchwork/Documentation/media/v4l-drivers/imx.rst:: WARNING: document isn't included in any toctree
      
      While here, avoid placing all driver authors at just one line at
      the html/pdf output.
      Acked-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      59a4fcf3
    • M
      media: dtv-core.rst: explain how to get DVBv5 statistics · 77f1f992
      Mauro Carvalho Chehab 提交于
      It is not trivial to implement the logic that collects DVBv5
      statistics. As we're seein lately too many implementations
      that are not quite right when reviewing patchsets, add a
      detailed explanation, adding a few examples about the right
      thing to be done.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      77f1f992
  2. 24 6月, 2017 12 次提交
  3. 23 6月, 2017 11 次提交