Skip to content

Commit

Permalink
[media] cx25821: drop cx25821-video-upstream-ch2.c/h
Browse files Browse the repository at this point in the history
cx25821-video-upstream_ch2.c/h is practically identical to cx25821-video-upstream.c/h
so add support for ch2 into cx25821-video-upstream.c instead.
After this we can replace the custom ioctls with a proper write() interface.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 16, 2013
1 parent e90878a commit 7087d31
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 1,195 deletions.
1 change: 0 additions & 1 deletion drivers/media/pci/cx25821/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cx25821-y := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
cx25821-gpio.o cx25821-medusa-video.o \
cx25821-video.o cx25821-video-upstream.o \
cx25821-video-upstream-ch2.o \
cx25821-audio-upstream.o

obj-$(CONFIG_VIDEO_CX25821) += cx25821.o
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/pci/cx25821/cx25821-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,15 +963,15 @@ void cx25821_dev_unregister(struct cx25821_dev *dev)
if (!dev->base_io_addr)
return;

cx25821_free_mem_upstream_ch1(dev);
cx25821_free_mem_upstream_ch2(dev);
cx25821_free_mem_upstream_audio(dev);

release_mem_region(dev->base_io_addr, pci_resource_len(dev->pci, 0));

for (i = 0; i < MAX_VID_CHANNEL_NUM - 1; i++) {
if (i == SRAM_CH08) /* audio channel */
continue;
if (i == SRAM_CH09 || i == SRAM_CH10)
cx25821_free_mem_upstream(&dev->channels[i]);
cx25821_video_unregister(dev, i);
}

Expand Down
Loading

0 comments on commit 7087d31

Please sign in to comment.