20 Dec, 2011
2 commits
-
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
31 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 -
This removes comment tags intended for emacs configuration from
67 files in the Media API DocBook. Such comments are not really
helpful and violate the coding style rules.Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab -
This a bus repeater for it913x devices. Commands usually fail because of other
activity on the USB bus.Bulk failures that report -ETIMEDOUT or -EBUSY are repeated.
Enpoints that return actlen not equal len request -EAGAIN.
The retry is set at 10.
Signed-off-by: Malcolm Priestley
Signed-off-by: Mauro Carvalho Chehab -
Changes to extract firmware for it913x devices
./get_dvb_firmware it9135
extracts
dvb-usb-it9135-01.fw
dvb-usb-it9135-02.fw./get_dvb_firmware it9137
extracts
dvb-usb-it9137-01.fwSigned-off-by: Malcolm Priestley
Signed-off-by: Mauro Carvalho Chehab -
Support add for IT9135 9005 devices
With this patch IT9135 devices now move to using
dvb-usb-it9135-01.fw firmware
IT9137 remain on previous firmware.IT9135 devices seem more stable on this firmware.
If the user wishes to remain on it9137 firmware they can change
back using firmware=1 module option.Signed-off-by: Malcolm Priestley
Signed-off-by: Mauro Carvalho Chehab -
Multi firmware loader
This uses scatter write firmware headers
The firmware must start with 03 XX 00
and be the extract firmware length.I have tried all available firmwares with this loader.
Signed-off-by: Malcolm Priestley
Signed-off-by: Mauro Carvalho Chehab