30 Mar, 2009
4 commits
-
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Devices like the saa7111 do not have this register, so check for this
before using it.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
The v4l2_ctrl_query_fill_std() function wasn't one the best idea I ever had.
It doesn't add anything valuable that cannot be expressed equally well with
v4l2_ctrl_query_fill and only adds overhead.Replace it with v4l2_ctrl_query_fill() everywhere it is used and remove it
from v4l2_common.c.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
A hue of -128 was rejected due to an incorrect range check, which was
faithfully copy-and-pasted into four drivers...Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
03 Jan, 2009
1 commit
-
Since the i2c driver ID will be removed in the near future we have to
modify the v4l2 debugging API to use the driver name instead of driver ID.Note that this API is not used in applications other than v4l2-dbg.cpp
as it is for debugging and testing only.Should anyone use the old VIDIOC_G_CHIP_IDENT, then this will be logged
with a warning that it is deprecated and will be removed in 2.6.30.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
30 Dec, 2008
1 commit
-
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
13 Oct, 2008
1 commit
-
The service_set field was used in saa7115 and cx25840 to determine
whether raw or sliced VBI was desired. This is incorrect since it is
perfectly valid to select sliced VBI with a service_set of 0.Instead these drivers should checked on VIDIOC_S_FMT whether the type
field matches the raw or sliced VBI type.Updated ivtv accordingly.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
12 Oct, 2008
1 commit
-
The saa7111 support in saa7115.c was missing some features and did not
properly take some of the differences into account. With this patch
saa7115 can be used in the mxb driver instead of saa7111.c.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
04 Sep, 2008
1 commit
-
Not a bug as such, but it looks really strange doing this before
checking whether the state structure could be allocated.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
20 Jul, 2008
2 commits
-
Having an _auto suffix is less ambiguous than a 'saa711x' identifier.
It's also used like this in the saa7127 driver.Thanks to Jean Delvare for suggesting this.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Also remove some blank lines that were used to split compat code at -devel
tree.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
19 May, 2008
1 commit
-
Update all the remaining new-style i2c drivers to use standard module
aliasing instead of the old driver_name/type driver matching scheme.Note that the tuner driver is a bit quirky at the moment, as it
overwrites i2c_client.name with arbitrary strings. We write "tuner"
back on remove, to make sure that driver cycling will work properly,
but there may still be troublesome corner cases.Signed-off-by: Jean Delvare
30 Apr, 2008
1 commit
-
Based on earlier work by Jon Smirl and Jochen Friedrich.
This patch allows new-style i2c chip drivers to have alias names using
the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
point, the old i2c driver binding scheme (driver_name/type) is still
supported.Signed-off-by: Jean Delvare
Cc: Jochen Friedrich
Cc: Jon Smirl
Cc: Kay Sievers
25 Apr, 2008
2 commits
-
Fsc 3.58 refers to Combination PAL-N (aka PAL-Nc), not to plain PAL-N (that
uses Fsc 4.43).Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */Signed-off-by: Douglas Schilling Landgraf
Signed-off-by: Mauro Carvalho Chehab
26 Jan, 2008
2 commits
-
If the chip isn't recognized, then the correct errors should be returned.
The v4l2_i2c_attach() utility function will return 0 for all errors
except -ENOMEM to provide proper compatibility support for the old I2C
probing function.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
28 Apr, 2007
2 commits
-
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
VIDIOC_G_CHIP_IDENT improves debugging of card problems: it can be
used to detect which chips are on the board and based on that information
selected register dumps can be made, making it easy to debug complicated
media chips containing tens or hundreds of registers.
This ioctl replaces the internal VIDIOC_INT_G_CHIP_IDENT ioctl.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
27 Mar, 2007
1 commit
-
Signed-off-by: Mauro Carvalho Chehab
01 Mar, 2007
1 commit
-
The chip matching in struct v4l2_register for VIDIOC_DBG_G/S_REGISTER
was rather primitive. It could not be extended to other busses besides
i2c and it lacked a way to.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
21 Feb, 2007
4 commits
-
When capturing a 60 Hz input the internal field ID is inverted. The
VIDIOC_INT_G_VBI_DATA didn't take that into account and so returned
XDS instead of CC and vice versa.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Before, root privileges were only needed to set hardware registers, not
to read them. On some hardware, reading from the wrong place at the
wrong time can hang the machine. So, to be consistent, root privileges
are required to read registers on all hardware.Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
The direct register access ioctls were defined as kernel internal only,
but they are very useful for debugging hardware from userspace and are
used as such. Officially export them.VIDIOC_INT_[SG]_REGISTER is renamed to VIDIOC_DBG_[SG]_REGISTER
Definition of ioctl and struct v4l2_register is moved from v4l2-common.h
to videodev2.h.Types used in struct v4l2_register are changed to the userspace
exportable versions (u32 -> __u32, etc).Use of VIDIOC_DBG_S_REGISTER requires CAP_SYS_ADMIN permission, so move
the check into the video_ioctl2() dispatcher so it doesn't need to be
duplicated in each driver's call-back function. CAP_SYS_ADMIN check is
added to pvrusb2 (which doesn't use video_ioctl2).Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Nexus CA needs to use a different routing on saa7115 module.
Signed-off-by: Marco Schluessler
Signed-off-by: Mauro Carvalho Chehab
10 Dec, 2006
1 commit
-
Remove coding style inconsistencies.
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
26 Nov, 2006
1 commit
-
The old code would accept any device on the same i2c address as the
saa711x chips as an saa711x. However, this fails with saa717x chips,
which use that same address and so are misdetected as a saa7111. Now
check whether the chip is really a saa711x model.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
14 Oct, 2006
1 commit
-
Without the attached trivial patch, the saa7113 is set up for PAL when SECAM
is selected and hence will see only show black and white for SECAM signals.
Tested the patch against the saa7115 module in linux-2.6.17 with a
Pinnacle 50e USB tuner (em28xx).Signed-off-by: Pádraig Brady
Signed-off-by: Mauro Carvalho Chehab
26 Sep, 2006
12 commits
-
Also sends the proper saa71111 init table.
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab
-
This repairs a problem introduced by a commit earlier applied.
Thanks-to: Hans VerkuilSigned-off-by: Mike Isely
Signed-off-by: Mauro Carvalho Chehab -
Scaling were not working fine;
Some reserved registers were wrong;
On some situations, saa7115 were not properly being initializated.
Removed some duplicated code.
Thanks-to: Hans Verkuil for co-working on this
patch.Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Mauro Carvalho Chehab
-
Without the breaks, saa7115 were not initializing PLL2.
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab
-
saa7115 module is capable of calculating the proper FIR tables.
However, there were 4 hardcoded tables for the standard resolution.Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Mauro Carvalho Chehab