mbox series

[v2,00/13] bttv: convert to vb2

Message ID cover.1682995256.git.deborah.brouwer@collabora.com
Headers show
Series bttv: convert to vb2 | expand

Message

Deborah Brouwer May 2, 2023, 3:27 a.m. UTC
This series converts the bttv driver to vb2.

Compliance test results are the same as in v1:
https://lore.kernel.org/linux-media/cover.1682379348.git.deborah.brouwer@collabora.com/

Changes since v1:
- revised commit messages in patches 04/13 and 05/13
to clearly explain treatment of format/width/height and
certain vbi fields

- In patch "media: bttv: refactor bttv_set_dma()": drop superfluous
parentheses and rename the argument 'override' as 'start_capture'
to be more descriptive of its function.

- In patch "media: bttv: convert to vb2":
  - use BT848_CAP_CTL_* when calling bttv_set_dma()
  - fix compiler warning that vb2_queue may be uninitialized
  - fix vbi sequence counter to avoid incrementing it twice
if both video and vbi are streaming

Deborah Brouwer (13):
  media: bttv: use video_drvdata to get bttv
  media: bttv: replace BUG with WARN_ON
  media: bttv: radio use v4l2_fh instead of bttv_fh
  media: bttv: copy vid fmt/width/height from fh
  media: bttv: copy vbi_fmt from bttv_fh
  media: bttv: move do_crop flag out of bttv_fh
  media: bttv: remove format field from bttv_buffer
  media: bttv: remove tvnorm field from bttv_buffer
  media: bttv: remove crop info from bttv_buffer
  media: bttv: move vbi_skip/vbi_count out of buffer
  media: bttv: refactor bttv_set_dma()
  media: bttv: use audio defaults for winfast2000
  media: bttv: convert to vb2

 drivers/media/pci/bt8xx/Kconfig           |   2 +-
 drivers/media/pci/bt8xx/bttv-audio-hook.c |  10 +-
 drivers/media/pci/bt8xx/bttv-driver.c     | 994 +++++++---------------
 drivers/media/pci/bt8xx/bttv-risc.c       | 414 +++++----
 drivers/media/pci/bt8xx/bttv-vbi.c        | 267 +++---
 drivers/media/pci/bt8xx/bttvp.h           |  78 +-
 6 files changed, 683 insertions(+), 1082 deletions(-)