1. 17 4月, 2013 7 次提交
    • M
      [media] r820t: Add a tuner driver for Rafael Micro R820T silicon tuner · a80abc58
      Mauro Carvalho Chehab 提交于
      This driver was written from scratch, based on an existing driver
      that it is part of rtl-sdr git tree, released under GPLv2:
      	https://groups.google.com/forum/#!topic/ultra-cheap-sdr/Y3rBEOFtHug
      	https://github.com/n1gp/gr-baz
      	http://cgit.osmocom.org/rtl-sdr/plain/src/tuner_r820t.c
      	(there are also other variants of it out there)
      >From what I understood from the threads, the original driver was converted
      to userspace from a Realtek tree. I couldn't find the original tree.
      However, the original driver look awkward on my eyes. So, I decided to
      write a new version from it from the scratch, while trying to reproduce
      everything found there.
      TODO:
      - After locking, the original driver seems to have some routines to
        improve reception. This was not implemented here yet.
      - RF Gain set/get is not implemented.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Tested-by: NAntti Palosaari <crope@iki.fi>
      a80abc58
    • M
      [media] sta2x11_vip: Fix compilation if I2C is not set · 098af4bd
      Mauro Carvalho Chehab 提交于
      From Fengguang Wu <fengguang.wu@intel.com>:
      
      > drivers/media/pci/sta2x11/sta2x11_vip.c: In function 'sta2x11_vip_init_one':
      > drivers/media/pci/sta2x11/sta2x11_vip.c:1314:2: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]
      > drivers/media/pci/sta2x11/sta2x11_vip.c:1314:15: warning: assignment makes pointer from integer without a cast [enabled by default]
      > drivers/media/pci/sta2x11/sta2x11_vip.c:1330:2: error: implicit declaration of function 'i2c_put_adapter' [-Werror=implicit-function-declaration]
      
      And also:
      
      > warning: (STA2X11_VIP) selects VIDEO_ADV7180 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_V4L2 && I2C)
      > drivers/media/i2c/adv7180.c: In function '__adv7180_status':
      > drivers/media/i2c/adv7180.c:194:2: error: implicit declaration of function 'i2c_smbus_read_byte_data' [-Werror=implicit-function-declaration]
      > drivers/media/i2c/adv7180.c: In function 'adv7180_s_routing':
      > drivers/media/i2c/adv7180.c:251:2: error: implicit declaration of function 'i2c_smbus_write_byte_data' [-Werror=implicit-function-declaration]
      > drivers/media/i2c/adv7180.c: In function 'adv7180_probe':
      > drivers/media/i2c/adv7180.c:551:2: error: implicit declaration of function 'i2c_check_functionality' [-Werror=implicit-function-declaration]
      > drivers/media/i2c/adv7180.c:554:2: error: implicit declaration of function 'i2c_adapter_id' [-Werror=implicit-function-declaration]
      > drivers/media/i2c/adv7180.c: At top level:
      > drivers/media/i2c/adv7180.c:663:1: warning: data definition has no type or storage class [enabled by default]
      > drivers/media/i2c/adv7180.c:663:1: warning: type defaults to 'int' in declaration of 'module_i2c_driver' [-Wimplicit-int]
      > drivers/media/i2c/adv7180.c:663:1: warning: parameter names (without types) in function declaration [enabled by default]
      > drivers/media/i2c/adv7180.c:649:26: warning: 'adv7180_driver' defined but not used [-Wunused-variable]
      
      This is due to the lack of I2C support:
      
      ...
      > CONFIG_I2C is not set
      ...
      
      So, Make sure that sta2x11_vip depends on I2C.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      098af4bd
    • M
      [media] it913x: rename its tuner driver to tuner_it913x · 99ca5557
      Mauro Carvalho Chehab 提交于
      There are three drivers with *it913x name on it, and they all
      belong to the same device:
      	a tuner, at it913x.c;
      	a frontend: it913x-fe.c;
      	a bridge: it913x.c, renamed to dvb_usb_it913x by the
      building system.
      
      This is confusing. Even more confusing are the two .c files with
      the same name under different directories, with different contents
      and different functions. So, prepend the tuner one.
      
      This also breaks the out-of-tree compilation system.
      Reported-by: NFrederic Fays <frederic.fays@gmail.com>
      Acked-by: NAntti Palosaari <crope@iki.fi>
      Reviewed-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      99ca5557
    • W
      [media] mceusb: add some missing cmd sizes · 76dea4cf
      William Steidtmann 提交于
      Fix mceusb_cmdsize() which returns incorrect datasize=0 for
      sub-commands MCE_RSP_GETPORTSTATUS, MCE_RSP_GETWAKESOURCE,
      MCE_RSP_EQDEVDETAILS, MCE_RSP_EQEMVER, and MCE_RSP_EQIRNUMPORTS.
      
      While here, change mceusb_cmdsize() name to reflect that it returns
      data size not cmd size.
      Signed-off-by: NWilliam Steidtmann <billstei@hbci.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      76dea4cf
    • D
      [media] zoran: Don't print proc_dir_entry data in debug [RFC] · bebe3c69
      David Howells 提交于
      Don't print proc_dir_entry data in debug as we're soon to have no direct
      access to the contents of the PDE.  Print what was put in there instead.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      bebe3c69
    • R
      [media] staging/media: fix go7007 dependencies and build · 16b196e5
      Randy Dunlap 提交于
      VIDEO_GO7007 uses usb interfaces so it should depend on USB.
      It also selects CYPRESS_FIRMWARE, which depends on USB.
      Fixes build errors and a kconfig warning:
      go7007-loader.c:(.text+0xcc7d0): undefined reference to `usb_get_dev'
      go7007-loader.c:(.init.text+0x49f0): undefined reference to `usb_register_driver'
      go7007-loader.c:(.exit.text+0x17ce): undefined reference to `usb_deregister'
      warning: (DVB_USB_AZ6007 && VIDEO_GO7007) selects CYPRESS_FIRMWARE which has unmet direct dependencies (MEDIA_SUPPORT && USB)
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      16b196e5
    • M
      [media] em28xx: Put remaining .vidioc_g_chip_info instance under ADV_DEBUG · 430c73fa
      Michal Marek 提交于
      Commit cd634f1b ("[media] v4l2: put VIDIOC_DBG_G_CHIP_NAME under
      ADV_DEBUG") missed the initializer of radio_ioctl_ops:
      drivers/media/usb/em28xx/em28xx-video.c:1830:2: error: unknown field 'vidioc_g_chip_info' specified in initializer
      drivers/media/usb/em28xx/em28xx-video.c:1830:26: error: 'vidioc_g_chip_info' undeclared here (not in a function)
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      430c73fa
  2. 15 4月, 2013 33 次提交