1. 07 7月, 2012 2 次提交
  2. 27 8月, 2011 1 次提交
  3. 28 7月, 2011 2 次提交
  4. 21 10月, 2010 3 次提交
  5. 03 8月, 2010 1 次提交
  6. 19 5月, 2010 1 次提交
  7. 04 12月, 2009 1 次提交
  8. 17 6月, 2009 2 次提交
  9. 07 4月, 2009 1 次提交
  10. 30 3月, 2009 2 次提交
  11. 30 12月, 2008 1 次提交
  12. 18 10月, 2008 1 次提交
  13. 24 7月, 2008 2 次提交
  14. 05 6月, 2008 1 次提交
  15. 25 4月, 2008 5 次提交
  16. 26 1月, 2008 1 次提交
  17. 11 10月, 2007 1 次提交
  18. 10 10月, 2007 9 次提交
    • M
      V4L/DVB (6252): Adapt drivers to use the newer videobuf modules · c1accaa2
      Mauro Carvalho Chehab 提交于
      PCI-dependent videobuf_foo methods were renamed as videobuf_pci_foo.
      
      Also, videobuf_dmabuf is now part of videobuf-dma-sg private struct.
      So, to access it, a subroutine call is needed.
      
      This patch renames all occurences of those function calls to be
      consistent with the video-buf split.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by: NRicardo Cerqueira <v4l@cerqueira.org>
      c1accaa2
    • M
      V4L/DVB (6247): Fix bug #8689: Fixes IR stop/start during suspend/resume · 13595a51
      Mauro Carvalho Chehab 提交于
      IR workqueue should be disabled during suspend. This avoids some troubles, like
      the one reported on bug #8689:
      
      "The Hauppauge HVR 1100 ir-remote control does not work after resume from
      suspend to ram or disk."
      
      This patch disables IR before suspending, re-enabling it after resume.
      
      Thanks to Peter Poklop <Peter.Poklop@gmx.at> for reporting it and helping with
      the fix.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      Reviewed-by: NPeter Poklop <Peter.Poklop@gmx.at>
      13595a51
    • T
      V4L/DVB (6083): cx88-alsa: Rework buffer handling · 05b27233
      Trent Piepho 提交于
      Rework the way the DMA buffer is handled and IRQs are generated.
      
      ALSA uses a ring-buffer of multiple periods.  Each period is supposed to
      corrispond to one IRQ.
      
      The existing driver was generating one interrupt per ring-buffer, as opposed
      to per period.  This meant that as soon as the IRQ was generated, the hardware
      was already starting to re-write the beginning of the buffer.  Since the DMA
      happens on a per-line basis, there was only a narrow window to copy the data
      out before the buffer was overwritten.
      
      The cx88 core RISC program generator is modified so that it can set the IRQ
      and counter flags to count every X lines of DMA transfer.  This way we can
      generate an interrupt every period instead of every full ring-buffer.  Right
      now only period of one line are supported, but it should be possible to
      support longer periods.  Note that a WRITE instruction generates an IRQ when
      it starts, not when the transfer is finished.  Thus to generate an IRQ when
      line X is done, one must set the IRQ flag on the instruction that starts line
      X+1, not the one that ends line X.
      
      Change the line size so that there are four lines in the SRAM FIFO.  If there
      are not four lines, the analog output from the cx88's internal DACs is full of
      clicks and pops.
      
      Try to handle FIFO sync errors.  Sometimes the chip generates many of these
      errors before audio data starts.  Up to 50 sync errors will be ignored and the
      counter reset.
      
      Have the IRQ handler save the RISC counter to the chip struct, and then have
      the pointer callback use this to calculate the pointer position.  We could
      read the counter from the pointer callback, but sometimes the sync errors on
      start up cause the counter to go crazy.  ALSA sees this and thinks there has
      been an overrun.  The IRQ hander can avoid saving the counter position on
      sync errors.
      
      The chip "opened" flag wasn't necessary.  ALSA won't try to open the same
      substream multiple times.  Probably this code was cut&pasted from the bt87x
      driver, which has multiple sub-streams for one chip.
      
      Do error checking for the videobuf mapping functions.
      
      snd_card_cx88_runtime_free() is useless and can be deleted.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      05b27233
    • T
      V4L/DVB (6082): cx88: Improve risc instruction printing in sram channel dump · 16cf1d0c
      Trent Piepho 提交于
      When the risc instrunctions from the CMDS were printed, instruction arguments
      weren't taken into account.
      
      This changes output like:
      cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
      cx88[0]:   risc1: 0x0cac2800 [ INVALID sol eol 23 21 19 18 13 count=2048 ]
      cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
      cx88[0]:   risc3: 0x0cac2c00 [ INVALID sol eol 23 21 19 18 13 count=3072 ]
      
      cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
      cx88[0]:   risc1: 0x0cac2800 [ arg #1 ]
      cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
      cx88[0]:   risc3: 0x0cac2c00 [ arg #1 ]
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      16cf1d0c
    • M
      V4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files · 9c12224a
      Mauro Carvalho Chehab 提交于
      Since at least kernel 2.6.12-rc2, module.h includes moduleparm.h. This
      patch removes all occurences of moduleparm.h from drivers/media files.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      9c12224a
    • T
      V4L/DVB (6064): cx88: Add symbolic names for the PCI interrupt bits · 8ddac9ee
      Trent Piepho 提交于
      Used for the PCI_INTMSK and PCI_INT_STAT registers.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      8ddac9ee
    • T
      V4L/DVB (6022): cx88: Move card core creation from cx88-core.c to cx88-cards.c · bbc83597
      Trent Piepho 提交于
      A lot of code in cx88-cards.c was only used by cx88-core.c when the core state
      is first allocated and initialized.  Moving that task to cx88-cards makes the
      driver simpler and the files more self contained.
      
      - Module parameters tuner, radio, card, and latency move to cx88-cards.c
      - cx88_boards is made static
      - cx88_subids is made static and const
      - cx88_bcount is eliminated
      - cx88_idcount is eliminated
      - cx88_card_list() is made static
      - cx88_card_setup_pre_i2c() is made static
      - cx88_card_setup() is made static
      - cx88_pci_quirks() is moved from cx88-core to cx88-cards
        The function argument "char *name" is made const too
      - get_ressources() is moved from cx88-core to cx88-cards, and renamed to
        cx88_get_resources()
      - The code to allocate and initialize the core state struct and the chip is
        moved out of cx88-core.c:cx88_get_core() and into a new function in
        cx88-cards.c, cx88_core_create().  This makes both functions simpler.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      bbc83597
    • T
      V4L/DVB (6021): cx88: Copy board information into card state · 6a59d64c
      Trent Piepho 提交于
      The cx88 driver state stored the ID of the board type in core->board.  Every
      time the driver need to get some information about the board configuration, it
      uses the board number as an index into board configuration array.
      
      This patch changes it so that the board number is in core->boardnr, and
      core->board is a copy of the board configuration information.  This allows
      access to board information without the extra indirection.  e.g.
      cx88_boards[core->board].mpeg becomes core->board.mpeg.
      
      This has a number of advantages:
      - The code is simpler to write.
      
      - It compiles to be smaller and faster, without needing the extra array lookup
        to get at the board information.
      
      - The cx88_boards array no longer needs to be exported to all cx88 modules.
      
      - The boards array can be made const
      
      - It should be possible to avoid keeping the (large) cx88_boards array around
        after the module is loaded.
      
      - If module parameters or eeprom info override some board configuration
        setting, it's not necessary to modify the boards array, which would
        affect all boards of the same type.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      6a59d64c
    • T
      V4L/DVB (6020): cx88: Fix use of uninitialized variable · b09a79f5
      Trent Piepho 提交于
      An error message for PCI resource allocation failure used the board type
      before it was set.  Just get rid of the error message, as get_ressources()
      [sic] already prints one.  Format that error message better, and add the pci
      function and subsystem information to better associate the error with what
      caused it.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      b09a79f5
  19. 28 4月, 2007 1 次提交
  20. 21 2月, 2007 2 次提交