diff options
author | Michael Hunold <devnull@localhost> | 2003-03-28 09:38:08 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-03-28 09:38:08 +0000 |
commit | 991678667ab5da02f1999db4ae4ece46070a0cd4 (patch) | |
tree | 0e3ed4fdd3ee0b7d4130c666877c21e5260bce32 /linux/drivers/media/common | |
parent | 5c0a833c3a721eb50a47d5882ce392fdc1a06115 (diff) | |
download | mediapointer-dvb-s2-991678667ab5da02f1999db4ae4ece46070a0cd4.tar.gz mediapointer-dvb-s2-991678667ab5da02f1999db4ae4ece46070a0cd4.tar.bz2 |
A whole bunch of small changes all over the place:
makelinks: adjust the script for the upcoming kernel patches
driver.mxb: prevent the tuner module from probing unnecessary i2c addresses
getlinks: put symlinks for the header files to the right place(TM)
videodev.c: add a verbose error message just for the case that a user
has compiled the v4l module into the kernel
media/Kconfig: the dpc driver does not the tuner module
saa7146_hlp.c: honour the swapped field order for av7110 based cards
in capture mode, too
saa7146_video.c: add some verbose messages for the v4l2 controls
mxb.c: hopefully fix the detection and initialization of the sound arena module
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r-- | linux/drivers/media/common/saa7146_core.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/common/saa7146_hlp.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/common/saa7146_video.c | 9 |
3 files changed, 15 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/common/saa7146_core.c index 1a2b1886d..385757bab 100644 --- a/linux/drivers/media/common/saa7146_core.c +++ b/linux/drivers/media/common/saa7146_core.c @@ -278,7 +278,7 @@ int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent) memset(dev, 0x0, sizeof(struct saa7146_dev)); DEB_EE(("pci:%p\n",pci)); - + if (pci_enable_device(pci)) { ERR(("pci_enable_device() failed.\n")); err = -EIO; diff --git a/linux/drivers/media/common/saa7146_hlp.c b/linux/drivers/media/common/saa7146_hlp.c index 2659d1cba..a5f374915 100644 --- a/linux/drivers/media/common/saa7146_hlp.c +++ b/linux/drivers/media/common/saa7146_hlp.c @@ -962,6 +962,12 @@ void program_capture_engine(struct saa7146_dev *dev, int planar) unsigned long e_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_E_FID_A : CMD_E_FID_B; unsigned long o_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_O_FID_A : CMD_O_FID_B; + if( 0 != (dev->ext->ext_vv_data->flags & SAA7146_EXT_SWAP_ODD_EVEN)) { + unsigned long tmp = e_wait; + e_wait = o_wait; + o_wait = tmp; + } + /* write beginning of rps-program */ count = 0; diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c index 92a76b8d4..eb090eeeb 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/common/saa7146_video.c @@ -434,20 +434,25 @@ int get_control(struct saa7146_fh *fh, struct v4l2_control *c) case V4L2_CID_BRIGHTNESS: value = saa7146_read(dev, BCS_CTRL); c->value = 0xff & (value >> 24); + DEB_D(("V4L2_CID_BRIGHTNESS: %d\n",c->value)); break; case V4L2_CID_CONTRAST: value = saa7146_read(dev, BCS_CTRL); c->value = 0x7f & (value >> 16); + DEB_D(("V4L2_CID_CONTRAST: %d\n",c->value)); break; case V4L2_CID_SATURATION: value = saa7146_read(dev, BCS_CTRL); c->value = 0x7f & (value >> 0); + DEB_D(("V4L2_CID_SATURATION: %d\n",c->value)); break; case V4L2_CID_VFLIP: c->value = vv->vflip; + DEB_D(("V4L2_CID_VFLIP: %d\n",c->value)); break; case V4L2_CID_HFLIP: c->value = vv->hflip; + DEB_D(("V4L2_CID_HFLIP: %d\n",c->value)); break; default: return -EINVAL; @@ -876,7 +881,7 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int return -EINVAL; } - DEB_EE(("VIDIOC_ENUMSTD: type:%d, index:%d\n",f->type,f->index)); + DEB_EE(("VIDIOC_ENUM_FMT: type:%d, index:%d\n",f->type,f->index)); return 0; } case VIDIOC_QUERYCTRL: @@ -974,6 +979,8 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int struct saa7146_fh *ov_fh = NULL; + DEB_EE(("VIDIOC_S_STD\n")); + if( 0 != vv->streaming ) { return -EBUSY; } |