Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138133
b: refs/heads/master
c: 4dbf46a
h: refs/heads/master
i:
  138131: 67b502a
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 70ae618 commit b6632f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1159b7f19f324db0c61d1277987374865690ec06
refs/heads/master: 4dbf46a0485a5b0704e1c4b55a173128fbaedec9
3 changes: 1 addition & 2 deletions trunk/Documentation/video4linux/Zoran
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ Additional notes for software developers:
first set the correct norm. Well, it seems logically correct: TV
standard is "more constant" for current country than geometry
settings of a variety of TV capture cards which may work in ITU or
square pixel format. Remember that users now can lock the norm to
avoid any ambiguity.
square pixel format.
--
Please note that lavplay/lavrec are also included in the MJPEG-tools
(http://mjpeg.sf.net/).
Expand Down
20 changes: 0 additions & 20 deletions trunk/drivers/media/video/zoran/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ const struct zoran_format zoran_formats[] = {
};
#define NUM_FORMATS ARRAY_SIZE(zoran_formats)

static int lock_norm; /* 0 = default 1 = Don't change TV standard (norm) */
module_param(lock_norm, int, 0644);
MODULE_PARM_DESC(lock_norm, "Prevent norm changes (1 = ignore, >1 = fail)");

/* small helper function for calculating buffersizes for v4l2
* we calculate the nearest higher power-of-two, which
* will be the recommended buffersize */
Expand Down Expand Up @@ -1483,22 +1479,6 @@ zoran_set_norm (struct zoran *zr,
return -EBUSY;
}

if (lock_norm && norm != zr->norm) {
if (lock_norm > 1) {
dprintk(1,
KERN_WARNING
"%s: set_norm() - TV standard is locked, can not switch norm\n",
ZR_DEVNAME(zr));
return -EPERM;
} else {
dprintk(1,
KERN_WARNING
"%s: set_norm() - TV standard is locked, norm was not changed\n",
ZR_DEVNAME(zr));
norm = zr->norm;
}
}

if (!(norm & zr->card.norms)) {
dprintk(1,
KERN_ERR "%s: set_norm() - unsupported norm %llx\n",
Expand Down

0 comments on commit b6632f0

Please sign in to comment.