]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv
authorAndy Walls <awalls@md.metrocast.net>
Sun, 2 Sep 2012 22:13:14 +0000 (19:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 Sep 2012 16:26:50 +0000 (13:26 -0300)
commit269c11fbac4f7b4ed58e77f3049b64b55a342234
tree53e01d0a8f9cd1cd488f2d3e2838a79edf1ccfe6
parent6d60805fd2e8103fafa02fcf6448446229ebd511
[media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv

This is a cut-and-paste port of the cx18-alsa driver to
create an ivtv-alsa interface module for the ivtv driver.
It is not actually hooked-up to the PCM stream DMA buffers
from the ivtv driver yet.  That will be done in a coming change,
since that portion is so very different from the cx18 driver.
This code has all or more of the bugs and shortcomings of the
cx18-alsa interface driver: inconsistent use of itvsc->slock,
ivtv-alsa-mixer.c is dead code, assumes 48 ksps regardless
of the actual setting of the audio capture, problems with
proper struct ivtv and struct ivtv_stream housekeeping,
struct ivtv_open_id.v4l2_fh abuse, and $DIETY knows what else.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 files changed:
drivers/media/pci/ivtv/Kconfig
drivers/media/pci/ivtv/Makefile
drivers/media/pci/ivtv/ivtv-alsa-main.c [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-alsa-mixer.c [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-alsa-mixer.h [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-alsa-pcm.c [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-alsa-pcm.h [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-alsa.h [new file with mode: 0644]
drivers/media/pci/ivtv/ivtv-driver.c
drivers/media/pci/ivtv/ivtv-driver.h
drivers/media/pci/ivtv/ivtv-fileops.c
drivers/media/pci/ivtv/ivtv-fileops.h
drivers/media/pci/ivtv/ivtv-streams.c