summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-08-10 17:00:20 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-08-10 17:00:20 +0000
commit13b0451e74c15685fd30e0f8efdb86604986aa66 (patch)
treeba636b40812024a7f2d7bfc8995e8ecc31fed950 /linux/drivers
parentccdcb6d699ce367adaf8f48a71c497aefca23edd (diff)
downloadmediapointer-dvb-s2-13b0451e74c15685fd30e0f8efdb86604986aa66.tar.gz
mediapointer-dvb-s2-13b0451e74c15685fd30e0f8efdb86604986aa66.tar.bz2
* cx88-video.c:
- Added some comments about DMA stuff. - Removed obsolete code. * tea5761.c: - Removed an incorrect comment that cames from tea5767.c file. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c30
-rw-r--r--linux/drivers/media/video/tea5761.c4
2 files changed, 11 insertions, 23 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 050c24b92..de13d398c 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-video.c,v 1.82 2005/07/22 05:13:34 mkrufky Exp $
+ * $Id: cx88-video.c,v 1.83 2005/08/10 17:00:20 mchehab Exp $
*
* device driver for Conexant 2388x based TV cards
* video4linux video interface
@@ -439,6 +439,14 @@ static int start_video_dma(struct cx8800_dev *dev,
/* enable irqs */
cx_set(MO_PCI_INTMSK, core->pci_irqmask | 0x01);
+
+ /* Enables corresponding bits at PCI_INT_STAT:
+ bits 0 to 4: video, audio, transport stream, VIP, Host
+ bit 7: timer
+ bits 8 and 9: DMA complete for: SRC, DST
+ bits 10 and 11: BERR signal asserted for RISC: RD, WR
+ bits 12 to 15: BERR signal asserted for: BRDG, SRC, DST, IPB
+ */
cx_set(MO_VID_INTMSK, 0x0f0011);
/* enable capture */
@@ -446,7 +454,7 @@ static int start_video_dma(struct cx8800_dev *dev,
/* start dma */
cx_set(MO_DEV_CNTRL2, (1<<5));
- cx_set(MO_VID_DMACNTRL, 0x11);
+ cx_set(MO_VID_DMACNTRL, 0x11); /* Planar Y and packed FIFO and RISC enable */
return 0;
}
@@ -2114,25 +2122,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
request_module("tuner");
if (core->tda9887_conf)
request_module("tda9887");
-#if 0 /* cx88-i2c has already this function */
- if (core->radio_type != UNSET) {
- tun_setup.mode_mask = T_RADIO;
- tun_setup.type = core->radio_type;
- tun_setup.addr = core->radio_addr;
- cx88_call_i2c_clients (dev->core, TUNER_SET_TYPE_ADDR, &tun_setup);
- }
- if (core->tuner_type != UNSET) {
- tun_setup.mode_mask = T_ANALOG_TV;
- tun_setup.type = core->tuner_type;
- tun_setup.addr = core->tuner_addr;
-
- cx88_call_i2c_clients(dev->core, TUNER_SET_TYPE_ADDR, &tun_setup);
- }
-
- if (core->tda9887_conf)
- cx88_call_i2c_clients(dev->core,TDA9887_SET_CONFIG,&core->tda9887_conf);
-#endif
/* register v4l devices */
dev->video_dev = cx88_vdev_init(core,dev->pci,
&cx8800_video_template,"video");
diff --git a/linux/drivers/media/video/tea5761.c b/linux/drivers/media/video/tea5761.c
index f93980538..3d021a0c5 100644
--- a/linux/drivers/media/video/tea5761.c
+++ b/linux/drivers/media/video/tea5761.c
@@ -2,13 +2,11 @@
* For Philips TEA5761 FM Chip
* I2C address is allways 0x20 (0x10 at 7-bit mode).
*
- * $Id: tea5761.c,v 1.2 2005/07/15 21:44:14 mchehab Exp $
+ * $Id: tea5761.c,v 1.3 2005/08/10 17:00:20 mchehab Exp $
*
* Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@brturbo.com.br)
* This code is placed under the terms of the GNU General Public License
*
- * tea5761 autodetection thanks to Torsten Seeboth and Atsushi Nakagawa
- * from their contributions on DScaler.
*/
#include "compat.h"