20 Dec, 2011
7 commits
-
This patch adds the driver for the as3645a LED flash controller. This
controller supports a high power led in flash and torch modes and an
indicator light, sometimes also called privacy light.Signed-off-by: Laurent Pinchart
Signed-off-by: Andy Shevchenko
Signed-off-by: Nayden Kanchev
Signed-off-by: Tuukka Toivonen
Signed-off-by: Antti Koskipaa
Signed-off-by: Stanimir Varbanov
Signed-off-by: Vimarsh Zutshi
Signed-off-by: Sakari Ailus
Signed-off-by: Ivan T. Ivanov
Signed-off-by: Mika Westerberg
Signed-off-by: David Cohen
Signed-off-by: Mauro Carvalho Chehab -
Flash controllers can report over-current and indicator fault
conditions. Define flash fault control bits for them.Signed-off-by: Laurent Pinchart
Acked-by: Andy Shevchenko
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
When enumerating an entity, assign the entire entity specification
instead of only the first two words. (This requires giving the
specification union a name.)So far, no driver actually uses more than two words, but this will
be needed for ALSA entities.Signed-off-by: Clemens Ladisch
[laurent.pinchart@ideasonboard.com: Rename specification to info]
Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
The field is used to select the polarity of the pixel clock signal.
"Inverted" and "non inverted" are bad descriptions, specify instead on
which clock edge the signals are sampled.Signed-off-by: Laurent Pinchart
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
The HS/VS interrupt handler needs to access the pipeline object. It
erronously tries to get it from the CCDC output video node, which isn't
necessarily included in the pipeline. This leads to a NULL pointer
dereference.Fix the bug by getting the pipeline object from the CCDC subdev entity.
Reported-by: Gary Thomas
Signed-off-by: Laurent Pinchart
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
The maximum preview engine output size depends on the ISP revision, not
the OMAP revision. Rename the macros accordingly.Signed-off-by: Laurent Pinchart
Acked-by: Sakari Ailus
Signed-off-by: Mauro Carvalho Chehab -
absorb ".size_of_priv = sizeof(struct mxl111sf_adap_state)"
into *_STREAMING_CONFIG macrosSigned-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab
18 Dec, 2011
1 commit
-
Hauppauge RC-5 tables require the full scancodes. The code at budget-ci
handles it right, however, it request the rc-code to mask them with 0xff,
breaking support for some remote controllers.Fix it by not selecting a scancode mask when the driver is on full_rc5 mode.
Reported-by: Brian May
Tested-by: Brian May
Signed-off-by: Mauro Carvalho Chehab
13 Dec, 2011
6 commits
-
Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.Signed-off-by: Manu Abraham
Signed-off-by: Mauro Carvalho Chehab -
Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.Signed-off-by: Manu Abraham
Signed-off-by: Mauro Carvalho Chehab -
Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.Signed-off-by: Manu Abraham
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Manu Abraham
Signed-off-by: Mauro Carvalho Chehab -
Currently, for any multi-standard frontend it is assumed that it just
has a single standard capability. This is fine in some cases, but
makes things hard when there are incompatible standards in conjuction.
Eg: DVB-S can be seen as a subset of DVB-S2, but the same doesn't hold
the same for DSS. This is not specific to any driver as it is, but a
generic issue. This was handled correctly in the multiproto tree,
while such functionality is missing from the v5 API update.http://www.linuxtv.org/pipermail/vdr/2008-November/018417.html
Later on a FE_CAN_2G_MODULATION was added as a hack to workaround this
issue in the v5 API, but that hack is incapable of addressing the
issue, as it can be used to simply distinguish between DVB-S and
DVB-S2 alone, or another X vs X2 modulation. If there are more systems,
then you have a potential issue.An application needs to query the device capabilities before requesting
any operation from the device.Signed-off-by: Manu Abraham
Acked-by: Andreas Oberritter
Acked-by: Oliver Endriss
Signed-off-by: Mauro Carvalho Chehab -
The advantage of kcalloc is, that will prevent integer overflows which could
result from the multiplication of number of elements and size and it is also
a bit nicer to read.The semantic patch that makes this change is available
in https://lkml.org/lkml/2011/11/25/107Signed-off-by: Thomas Meyer
Acked-By: Mike Isely
Signed-off-by: Mauro Carvalho Chehab
11 Dec, 2011
26 commits
-
drivers/media/video/tm6000/tm6000-input.c: In function ‘tm6000_ir_int_start’:
drivers/media/video/tm6000/tm6000-input.c:381:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Kamil Debski
Signed-off-by: Kyungmin Park
Signed-off-by: Mauro Carvalho Chehab -
There is a potential integer overflow in uvc_ioctl_ctrl_map(). When a
large xmap->menu_count is passed from the userspace, the subsequent call
to kmalloc() will allocate a buffer smaller than expected.
map->menu_count and map->menu_info would later be used in a loop (e.g.
in uvc_query_v4l2_ctrl), which leads to out-of-bound access.The patch checks the ioctl argument and returns -EINVAL for zero or too
large values in xmap->menu_count.Signed-off-by: Haogang Chen
[laurent.pinchart@ideasonboard.com Prevent excessive memory consumption]
Signed-off-by: Laurent Pinchart
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab -
UVC devices transmit a device timestamp along with video frames. Convert
the timestamp to a host timestamp and use it to fill the V4L2 buffer
timestamp field.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Export the statistics through debugfs.
Signed-off-by: Alexey Fisher
Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Create a debugfs entry per UVC stream. This will be used to export
stream statistics.Signed-off-by: Alexey Fisher
Signed-off-by: Laurent Pinchart
[mchehab@redhat.com: add incude to avoid compilation breakage]
Signed-off-by: Mauro Carvalho Chehab -
GET_RES request support is mandatory for extension units, but some
cameras still choke on it (one example is the Logitech QuickCam PTZ that
returns a single byte for the PTZ relative control instead of four).Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Instead of skipping the payload completely, which would make the
resulting image corrupted anyway, store the payload normally and mark
the buffer as erroneous. If the no_drop module parameter is set to 1 the
buffer will then be passed to userspace, and tt will then be up to the
application to decide what to do with the buffer.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
The function is not used outside of its compilation unit. Make it
static.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
The camera requires the PROBE_MINMAX quirk. Add a corresponding entry in
the device IDs list.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
The macros are defined in both drivers/media/video/uvc/uvc_video.c and
include/linux/usb/video.h. Remove definitions from the former.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Turn streaming off (by selecting alternate setting 0) and disable the
video buffers queue in the uvc_video_enable() error path.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Replace the current video buffers queue implementation with
videobuf2-vmalloc.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Add mem, length and bytesused fields to the uvc_buffer structure and use
them instead of accessing the uvc_buffer::buf m.offset, length and
bytesused fields directly. This prepares the driver to the conversion to
videobuf2.Signed-off-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Checking for &dev->int_in is useless because it returns the address of
the embedded struct tm6000_endpoint, which will always be positive and
therefore true.Signed-off-by: Thierry Reding
Signed-off-by: Mauro Carvalho Chehab -
Function parameters on subsequent lines should never be aligned with the
function name but rather be indented.Signed-off-by: Thierry Reding
Signed-off-by: Mauro Carvalho Chehab -
The original patch used the fast USB quirk to enable fast access to
registers in the tm6000_read_write_usb(). The applied patch moved the
check to the tm6000_reset(), probably due to some merge conflicts.Signed-off-by: Thierry Reding
Signed-off-by: Mauro Carvalho Chehab -
Improve the use of the WARN_ON() macro and use a local variable, instead
of reduntantly dereferencing a pointer in v4l2-dev.cSigned-off-by: Guennadi Liakhovetski
Acked-by: Laurent Pinchart
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
The topro webcams don't support 30fps in 640x480 mode.
Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
Adjustment of the colors by the po2030n is finer than by the bridge controls.
Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
The 'open-drain' mode was not reset when starting the webcams.
This problem was introduced by commit 0e4d413af1a9d and
its exact effects are unknown.Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
As the alternate settings are now sorted in gspca main,
the variable 'nbalt' is no more useful.Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
The alternate settings are now sorted in gspca main, so the flag
'reverse_alts' is no more useful.Signed-off-by: Jean-François Moine
Signed-off-by: Mauro Carvalho Chehab -
If there are two or more different it913x devices on the system they share the same
ite_config and over write its settings.To over come this, the ite_config is copied to the priv area.
Signed-off-by: Malcolm Priestley
Signed-off-by: Mauro Carvalho Chehab