1. 25 7月, 2009 1 次提交
  2. 30 3月, 2009 12 次提交
    • 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
      74fc7bd9
    • M
    • 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 (10562): bttv: rework the way digital inputs are indicated · 5221e21e
      Trent Piepho 提交于
      The code was using a muxsel value of -1U to indicate a digital input.  A
      couple places in were checking of muxsel < 0 to detect this, which doesn't
      work of course because muxsel is unsigned and can't be negative.
      
      Only a couple cards had digital inputs and it was always the last one, so
      for the card database create a one bit field that indicates the last input
      is digital.  On init, this is used to set a new field in the bttv struct to
      the digital input's number or UNSET for none.  This makes it easier to
      check if the current input is digital.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5221e21e
    • T
      V4L/DVB (10561): bttv: store card database more efficiently · 4c548d4b
      Trent Piepho 提交于
      The bttv card database is quite large and the data structure used to store
      it wasn't very efficient.  Most of the field are only used at card
      initialization time so it doesn't matter if they aren't efficient to
      access.
      
      Overall the changes reduce code size by 60 bytes in ia32.  The data size is
      decreased by 5024 byes.  It is probably even more for 64-bit kernels.
      
      Move the fields in the struct around to be sorted from largest to smallest.
      This saves on padding space used for alignment.
      
      Get rid of the unused digital_mode field.  Leave the setting as a comment
      in the few cards entries that set it, in case someone ever writes the code.
      
      Get rid of the unused audio_inputs field.  Leave the values in the card
      entries in case someone ever writes code that might use it.
      
      Get ride of the unused radio_addr field.  No card entries even set it to
      anything interesting so it's not left as comments.  All the code that used
      it was removed in commit v2.6.14-3466-g291d1d73 from Nov 8th 2005.
      
      Reduce video_inputs to u8 as no card has more than 255 inputs (the most is
      16).
      
      Change tuner_addr to u8.  I2C addresses are only seven bits and 255 means
      ADDR_UNSET, so everything fits.
      
      Make has_radio a one bit flag.
      
      Make the pll setting a two bit field.
      
      Reduce svhs to four bits as no card has an s-video input above 9.  Change
      the value for no s-video input from UNSET (which is -1U and out of range of
      four bits) to NO_SVHS (which is now 15).
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4c548d4b
    • T
      V4L/DVB (10560): bttv: make tuner card info more consistent · abb0362f
      Trent Piepho 提交于
      The bttv card database structure had a "tuner" field that was the input
      number of the tuner input or UNSET for no tuner.  However, the only values
      it could ever be are 0 and UNSET.  Having a tuner on an input other than 0
      didn't work and was never used.
      
      There is also a "tuner_type" field that can be set to TUNER_ABSENT to
      indicate no tuner, which makes "tuner = UNSET" redundant.  In many cases,
      tuner_type was set to UNSET when there was no tuner, which isn't quite
      correct.  tuner_type == UNSET is supposed to mean the tuner type isn't yet
      known.
      
      So, I changed cards where "tuner == UNSET" to always have tuner_type of
      TUNER_ABSENT.  At this point the tuner field is redundant, so I deleted it.
      
      I have the card setup code set the card's tuner_type (not the card type's
      tuner_type!) to TUNER_ABSENT if it hasn't yet been set at the end of the
      setup code.  Various places that check if the card has a tuner will now
      look for this instead of checking the card type's "tuner" field.
      
      Also autoload the tuner module before issuing the TUNER_SET_TYPE_ADDR I2C
      client call instead of after issuing it.
      
      Overall, on ia32 this decreases compiled code size by about 24 bytes and
      reduces the data size by 640 bytes.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      abb0362f
    • T
      V4L/DVB (10559): bttv: Fix TDA9880 norm setting code · 72134a6d
      Trent Piepho 提交于
      The code to set the norm for the TDA9880 analog demod was comparing
      btv->norm, an index into the bttv driver's norm array, to V4L2_STD_NTSC,
      which is a bit flag that's part of the V4L2 API.  This doesn't work of
      course and results in the PAL path always being taken.
      
      What's more, it modified the bttv_tvcards[] entries for cards using the
      TDA9880.  This is wrong because changing the norm on one card will also
      affect other cards of the same type.  Writing to bttv_tvcards is also bad
      because it should be read-only or even devinitdata.
      
      Changing the norm would also cause the audio to become unmuted.
      
      Have the code get called for both norm setting and audio input setting
      (which where the gpios are set) to avoid needed to modify bttv_tvcards.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      72134a6d
    • T
      V4L/DVB (10558): bttv: norm value should be unsigned · 4ef2ccc2
      Trent Piepho 提交于
      The norm value in the driver is an index into an array and the the driver
      doesn't allow it to be negative or otherwise invalid.  It should be
      unsigned but wasn't in all places.
      
      Fix some structs and functions to have the norm be unsigned.  Get rid of
      useless checks for "< 0".  Most of the driver code can't handle a norm
      value that's out of range, so change some ">= BTTV_TVNORMS" checks to
      BUG_ON().  There's no point in silently ignoring invalid driver state just
      to crash because of it later.
      Reported-by: NRoel Kluin <roel.kluin@gmail.com>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4ef2ccc2
    • D
      V4L/DVB (10299): bttv: Add support for IVCE-8784 support for V4L2 bttv driver · ade0815c
      Douglas Kosovic 提交于
      It's a quad Bt878 PCI-e x1 capture board that's basically the same as the
      IVC-200 (quad Bt878 PCI) capture board that's currently supported in
      the V4L2 bttv driver.
      
      Manufacturer's web page for IVCE-8784 with photo and info:
        http://www.iei.com.tw/en/product_IPC.asp?model=IVCE-8784Signed-off-by: NDouglas Kosovic <douglask@itee.uq.edu.au>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ade0815c
  3. 30 12月, 2008 2 次提交
    • D
      V4L/DVB (9677): bttv: fix some entries on Phytec boards and add missing ones · 05583625
      Dirk Heer 提交于
      This Patch does modify the bttv-cards.c and bttc.h so that the driver
      supports VD-011, VD-012, VD-012-X1 and VD-012-X2 Framegrabber from
      Phytec Messtechnik GmbH.
      Signed-off-by: NDirk Heer <d.heer@phytec.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      05583625
    • K
      V4L/DVB (9521): V4L: struct device - replace bus_id with dev_name(), dev_set_name() · af128a10
      Kay Sievers 提交于
      This patch is part of a larger patch series which will remove
      the "char bus_id[20]" name string from struct device. The device
      name is managed in the kobject anyway, and without any size
      limitation, and just needlessly copied into "struct device".
      
      To set and read the device name dev_name(dev) and dev_set_name(dev)
      must be used. If your code uses static kobjects, which it shouldn't
      do, "const char *init_name" can be used to statically provide the
      name the registered device should have. At registration time, the
      init_name field is cleared, to enforce the use of dev_name(dev) to
      access the device name at a later time.
      
      We need to get rid of all occurrences of bus_id in the entire tree
      to be able to enable the new interface. Please apply this patch,
      and possibly convert any remaining remaining occurrences of bus_id.
      
      We want to submit a patch to -next, which will remove bus_id from
      "struct device", to find the remaining pieces to convert, and finally
      switch over to the new api, which will remove the 20 bytes array
      and does no longer have a size limitation.
      
      Thanks,
      Kay
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      af128a10
  4. 12 10月, 2008 1 次提交
  5. 20 7月, 2008 1 次提交
  6. 25 4月, 2008 3 次提交
    • M
      V4L/DVB (7411): use tuner-simple for Philips FCV1236D digital tuning support · 967be9a9
      Michael Krufky 提交于
      Convert dvb-bt8xx to use tuner-simple instead of dvb-pll for Philips FCV1236D
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      967be9a9
    • M
    • E
      V4L/DVB (7366): Support for a 16-channel bt878 card · 97275ac5
      Ernesto Hernández-Novich 提交于
      I have what looks like a Geovision GV-600 (or 650) card. It has a large
      chip in the middle labeled
      
      CONEXANT
      FUSION 878A
      25878-13
      E345881.1
      0312 TAIWAN
      
      It has an audio connector coming out from a chip labeled
      
      ATMEL
      0242
      AT89C2051-24PI
      
      It is identified as follows on my Debian GNU/Linux Etch (kernel 2.6.18)
      
      ...
      01:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
      01:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
      ...
      01:0a.0 0400: 109e:036e (rev 11)
              Subsystem: 008a:763c
              Flags: bus master, medium devsel, latency 64, IRQ 58
              Memory at dfffe000 (32-bit, prefetchable) [size=4K]
              Capabilities: [44] Vital Product Data
              Capabilities: [4c] Power Management version 2
      
      01:0a.1 0480: 109e:0878 (rev 11)
              Subsystem: 008a:763c
              Flags: bus master, medium devsel, latency 64, IRQ 58
              Memory at dffff000 (32-bit, prefetchable) [size=4K]
              Capabilities: [44] Vital Product Data
              Capabilities: [4c] Power Management version 2
      
      It was being detected as a GENERIC UNKNOWN CARD both by the 2.6.18
      kernel and the latest v4l-dvb drivers, but it did not work at all. The
      card has sixteen (16) BNC video inputs, four of them on the board itself
      and twelve on three daughter-cards. It has a single bt878 chip, no tuner
      and what looks like and audio input. After doing some research I managed
      to get only eight channels working by forcing card=125 and those DID NOT
      match channels 0-7 on the card, and no audio.
      
      Based on what was working for card=125, I added the card definition
      block, added a specific muxsel routine and got the card working fully
      with xawtv, where the sixteen channels show up as Composite0 to
      Composite15, matching the channel labels in the card and daughter-cards.
      I have made no efforts yet to get audio working, but would appreciate
      any pointers.
      Signed-off-by: NErnesto Hernández-Novich <emhn@usb.ve>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      97275ac5
  7. 26 1月, 2008 2 次提交
  8. 10 10月, 2007 1 次提交
  9. 19 7月, 2007 2 次提交
  10. 28 4月, 2007 2 次提交
  11. 21 2月, 2007 1 次提交
  12. 25 6月, 2006 1 次提交
  13. 25 3月, 2006 3 次提交
  14. 14 1月, 2006 1 次提交
  15. 12 1月, 2006 1 次提交
  16. 10 1月, 2006 2 次提交
  17. 14 11月, 2005 2 次提交
  18. 09 11月, 2005 2 次提交