1. 27 7月, 2013 1 次提交
  2. 21 5月, 2013 3 次提交
  3. 23 3月, 2013 1 次提交
  4. 06 3月, 2013 2 次提交
  5. 04 1月, 2013 1 次提交
    • G
      Drivers: media: remove __dev* attributes. · 4c62e976
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c62e976
  6. 16 8月, 2012 1 次提交
  7. 31 7月, 2012 1 次提交
  8. 07 7月, 2012 1 次提交
    • T
      [media] bttv-cards.c: Allow radio for CHP05x/CHP06x · b61097ee
      Thomas Betker 提交于
      Add ".has_radio = 1" for BTTV_BOARD_MAGICTVIEW061 because there are
      some CHP05x/CHP06x boards with a radio tuner.
      
      I still have an analog Askey Magic TView card (CHP051, PCI 144f:3002)
      which I use for radio only. This worked fine with kernel 2.6.37
      (openSUSE 11.4), but no longer works with kernel 3.1.10 (openSUSE 12.1).
      
      The reason apparently is that ".has_radio = 1" is missing in
      bttv-cards.c for BTTV_BOARD_MAGICTVIEW061; when I add this line and
      recompile the kernel, radio is working again. The line is still missing
      in the latest git tree, for which I have generated the attached patch.
      
      I can't test what will happen for CHP05x/CHP06x devices without radio;
      however, it seems that other cards also have the problem that there are
      some boards with radio and some without, so I hope that this can be
      sorted out.
      Signed-off-by: NThomas Betker <thomas.betker@freenet.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b61097ee
  9. 12 6月, 2012 3 次提交
  10. 08 11月, 2011 1 次提交
  11. 07 11月, 2011 1 次提交
  12. 04 9月, 2011 1 次提交
    • J
      [media] bt8xx: Use current logging styles · 8af443e5
      Joe Perches 提交于
      This converts some messages that were emitted at
      KERN_INFO to KERN_DEBUG.  All of these messages
      were guarded by bttv_debug tests.
      
      Add pr_fmt.
      Convert printks to pr_<level>
      Convert printks without KERN_<level> to appropriate pr_<level>.
      Removed embedded prefixes when pr_fmt was added.
      Whitespace cleanups when around other conversions.
      Macros coded with if statements should be do { if... } while (0)
      so the macros can be used in other if tests.
      Use ##__VA_ARGS__ for variadic macro as well.
      Coalesce format strings.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8af443e5
  13. 28 7月, 2011 1 次提交
  14. 31 3月, 2011 1 次提交
  15. 22 3月, 2011 1 次提交
  16. 19 1月, 2011 1 次提交
  17. 22 11月, 2010 1 次提交
  18. 23 10月, 2010 1 次提交
  19. 19 5月, 2010 1 次提交
  20. 09 2月, 2010 1 次提交
  21. 19 9月, 2009 1 次提交
  22. 12 9月, 2009 1 次提交
    • M
      V4L/DVB (12585): Add remote support to cph03x bttv card · ed44f66e
      Mauro Carvalho Chehab 提交于
      Hello kernel developers.
      I found a bug report from an user in launchpad. I just copy it here. It
      includes patch.
      
      I don't own the necessary hardware to test it but the patch looks
      trivial.
      
      I'm not subscribed to this list, so please CC me. Thanks!
      
      Here is the text:
      
      """
      remote control for my tv card doesnt work
      
      I have Askey CPH03x TV Capturer.
      When I load bttv module with "card=59" option which is proper for this
      tv card,
      I can watch tv with sound but my remote control doesnt work. There is no
      ir
      event in /proc/bus/input/device .
      When bttv module is loaded with "card=137" option remote control works
      very
      well.
      
      $ cat /proc/bus/input/devices
      .......
      ........
      : Bus=0001 Vendor=109e Product=0350 Version=0001
      N: Name="bttv IR (card=137)"
      P: Phys=pci-0000:00:0d.0/ir0
      S: Sysfs=/devices/pci0000:00/0000:00:0d.0/input/input144
      U: Uniq=
      H: Handlers=kbd event6
      B: EV=100003
      B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 4400 0 ffc
      
      Unfortunately there is no sound.
      """
      
      https://bugs.launchpad.net/ubuntu/+bug/239733
      http://bugzilla.kernel.org/show_bug.cgi?id=11995
      
      --
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ed44f66e
  23. 25 7月, 2009 1 次提交
  24. 07 4月, 2009 3 次提交
  25. 30 3月, 2009 9 次提交
    • H
      V4L/DVB (11278): bttv: convert to v4l2_subdev since i2c autoprobing will disappear. · 859f0277
      Hans Verkuil 提交于
      Since i2c autoprobing will disappear bttv needs to be converted to use
      v4l2_subdev instead.
      
      Without autoprobing the autoload module option has become obsolete. A warning
      is generated if it is set, but it is otherwise ignored.
      
      Since the bttv card definitions are of questionable value a new option was
      introduced to allow the user to control which audio module is selected:
      msp3400, tda7432 or tvaudio (or none at all).
      
      By default bttv will use the card definitions and fallback on tvaudio as the
      last resort.
      
      If no audio device was found a warning is printed.
      
      The saa6588 RDS device is now also explicitly probed since it is no longer
      possible to autoprobe it. A new saa6588 module option was added to override
      the card definition since I suspect more cards have this device than one
      would guess from the card definitions.
      
      Note that the probe addresses of the i2c modules are hardcoded in this
      driver. Once all v4l drivers are converted to v4l2_subdev this will be
      cleaned up. Such data belongs in an i2c driver header.
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      859f0277
    • A
      V4L/DVB (11124): Add support for ProVideo PV-183 to bttv · dceaddb9
      Alan McIvor 提交于
      Add support for ProVideo PV-183 to bttv
      
      This patch adds support for the ProVideo PV-183 card to the bttv
      device driver. The PV-183 is a PCI card with 8 BT878 devices plus a Hint
      Corp HiNT HB4 PCI-PCI Bridge. Each BT878 has two composite input channels
      available. There are no tuners on this card.
      Signed-off-by: NAlan McIvor <alan.mcivor@reveal.co.nz>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      dceaddb9
    • H
    • R
      V4L/DVB (10944): Conceptronic CTVFMI2 PCI Id · 76ecf459
      Robert Millan 提交于
      My BTTV_BOARD_CONCEPTRONIC_CTVFMI2 card wasn't auto-detected, here's a patch
      that adds its PCI id.
      
      lspci -nnv output:
      
      05:06.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
      05:06.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)
      
      Press <break> within 3 seconds if this is wrong.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      76ecf459
    • B
      V4L/DVB (10827): Add support for GeoVision GV-800(S) · 0c5db425
      Bruno Christo 提交于
      I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
      It has 16 video inputs and 4 audio inputs, and it is almost identical
      to the GV-800, as seen on http://bttv-gallery.de .
      The only difference appears to be the analog mux, it has a CD22M3494
      in place of the MT8816AP. The card has a blue PCB, as seen in this
      picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .
      
      This card wasn't originally supported, and it was detected as
      UNKNOWN/GENERIC. The video inputs weren't working, so I tried
      "forcing" a few cards like the GeoVision GV-600, but there was still
      no video. So I made a patch to support this card, based on the Kodicom
      4400r.
      
      The GV-800(S) is identified as follows:
      
      ...
      02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
      Capture (rev 11)
      02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
      Capture (rev 11)
      02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
      Capture (rev 11)
      02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
      Capture (rev 11)
      02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
      Capture (rev 11)
      02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
      Capture (rev 11)
      02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
      Capture (rev 11)
      02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
      Capture (rev 11)
      
      ...
      02:00.0 0400: 109e:036e (rev 11)
             Subsystem: 800a:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdfff000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
             Kernel modules: bttv
      
      02:00.1 0480: 109e:0878 (rev 11)
             Subsystem: 800a:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdffe000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
      
      02:04.0 0400: 109e:036e (rev 11)
             Subsystem: 800b:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdffd000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
             Kernel modules: bttv
      
      02:04.1 0480: 109e:0878 (rev 11)
             Subsystem: 800b:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdffc000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
      
      02:08.0 0400: 109e:036e (rev 11)
             Subsystem: 800c:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdffb000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
             Kernel modules: bttv
      
      02:08.1 0480: 109e:0878 (rev 11)
             Subsystem: 800c:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdffa000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
      
      02:0c.0 0400: 109e:036e (rev 11)
             Subsystem: 800d:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdff9000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
             Kernel modules: bttv
      
      02:0c.1 0480: 109e:0878 (rev 11)
             Subsystem: 800d:763d
             Flags: bus master, medium devsel, latency 32, IRQ 10
             Memory at cdff8000 (32-bit, prefetchable) [size=4K]
             Capabilities: [44] Vital Product Data <?>
             Capabilities: [4c] Power Management version 2
      
      As you can see, the GV-800(S) card is almost identical to the GV-800
      on bttv-gallery, so this patch might also work for that card. If not,
      only a few changes should be required on the gv800s_write() function.
      
      After this patch, the video inputs work correctly on linux 2.6.24 and
      2.6.27 using the software 'motion'. The input order may seem a little
      odd, but it's the order the original software/driver uses, and I decided
      to keep that order to get the most out of the card.
      
      I tried to get the audio working with the snd-bt87x module, but I only
      get noise from every audio input, even after selecting a different mux
      with alsamixer. Also, after trying to play sound from those sources, I
      randomly get a RISC error about an invalid RISC opcode, and then that
      output stops working. I also can't change the sampling rate when
      recording. Any pointers to adding audio support are welcome.
      Signed-off-by: NBruno Christo <bchristo@inf.ufsm.br>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0c5db425
    • T
      V4L/DVB (10567): bttv: shrink muxsel data in card database · 6f98700a
      Trent Piepho 提交于
      Over half of the card database was used to store muxsel data.  64 bytes
      were used to store one 32 bit word for each of up to 16 inputs.
      
      The Bt8x8 only has two bits to control its mux, so muxsel data for 16
      inputs will fit into a single 32 bit word.  There were a couple cards that
      had special muxsel data that didn't fit in two bits, but I cleaned them up
      in earlier patches.
      
      Unfortunately, C doesn't allow us to have an array of bit fields.  This
      makes initializing the structure more of a pain.  But with some cpp magic,
      we can do it by changing:
      	.muxsel = { 2, 3, 0, 1 },
      	.muxsel = { 2, 2, 2, 2, 3, 3, 3, 3, 1, 1 },
      Into:
      	.muxsel = MUXSEL(2, 3, 0, 1),
      	.muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1),
      
      That's not so bad.  MUXSEL is a fancy macro that packs the arguments (of
      which there can be one to sixteen!) into a single word two bits at a time.
      It's a compile time constant (a variadic function wouldn't be) so we can
      use it to initialize the structure.  It's important the the arguments to
      the macro only be plain decimal integers.  Stuff like "0x01", "(2)", or
      "MUX3" won't work properly.
      
      I also created an accessor function, bttv_muxsel(btv, input), that gets the
      mux bits for the selected input.  It makes it cleaner to change the way the
      muxsel data is stored.
      
      This patch doesn't change the code size and decreases the datasegment by
      9440 bytes.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6f98700a
    • T
      V4L/DVB (10566): bttv: clean up mux code for IDS Eagle · 430390e6
      Trent Piepho 提交于
      This card apparently uses an external mux and the Bt878's mux should always
      be set to MUX2.  The values for the external mux control bits were stored
      in the muxsel field.  This meant that when changing inputs the driver would
      switch the Bt878's mux to whatever value the external mux was supposed to
      be set to, then eagle_muxsel() would switch it back to MUX2 and program the
      external mux.  This creates an unnecessary switch of the Bt878's mux.
      
      So change muxsel to be 2 for each input.  The external mux bits are just
      "input&3" so they don't really need to be stored anywhere.  This also
      eliminates the last non-standard use of the muxsel data.
      
      Cc: M G Berberich <berberic@fmi.uni-passau.de>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      430390e6
    • T
      V4L/DVB (10565): bttv: fix external mux for RemoteVision MX · 13afaefc
      Trent Piepho 提交于
      Old versions of the bttv driver would use the high nibble of an input's
      muxsel value to program the GPIO lines enabled via gpiomask2.  Apparently
      this was supposed to be for switching external audio muxes.  Anyway, the
      code that did this was removed sometime in the pre-git 2.6 series.
      
      The RemoteVision MX board used this feature to control an external video
      mux and I guess no one noticed when they removed the code.
      
      Move the extra gpio mux data out of the high nibble of muxsel and to
      rv605_muxsel(), then have that function set the gpio lines with it.
      
      From looking at the CD22M3494E datasheet, it seems like the mdelay(1) is a
      much longer delay than necessary.  It looks like only around 20 ns is
      necessary.
      
      Cc: Miguel Freitas <miguel@cetuc.puc-rio.br>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      13afaefc
    • T
      V4L/DVB (10564): bttv: fix external mux for PHYTEC VD-009 · 15f8eeb2
      Trent Piepho 提交于
      Old versions of the bttv driver would use the high nibble of an input's
      muxsel value to program the GPIO lines enabled via gpiomask2.  Apparently
      this was supposed to be for switching external audio muxes.  Anyway, the
      code that did this was removed sometime in the pre-git 2.6 series.
      
      These phytec boards used this feature to control an external video mux and
      I guess no one noticed when they removed the code.
      
      So add a muxsel_hook for these boards that does the necessary gpio setting.
      
      BTW, I doubt the needs_tvaudio setting for these cards is correct.
      
      Cc: Dirk Heer <d.heer@phytec.de>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      15f8eeb2