Age | Commit message (Collapse) | Author |
|
From: Mike Isely <isely@pobox.com>
It has been discovered that newer PVR USB2 needs incompatibly
different FX2 firmware. The driver therefore needs to make the file
name a function of which firmware flavor is required. This rename is
part of that work.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
The pvrusb2 driver as part of its initialization might have to load
the FX2's firmware image. We must only do this when it is actually
needed. The previous method just detected this requirement by
noticing something unusual about the USB configuration of the device.
Unfortunately with newer PVR USB2 devices this method no longer works.
What we do now is also attempt a simple non-destructive endpoint 1
transaction; failure of that transfer will indicate a need to load the
firmware.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Also fixed a missing ; at the end of a function
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Duncan Sands <duncan.sands@math.u-psud.fr>
This patch fixes the strange crashes I was seeing after using
bttv card, caused by a buffer overflow in bttv_risc_packed.
The instruction buffer size calculation contains two errors:
(a) a non-zero padding value can push the start of the next bpl
section to just before a page border, leading to more scanline
splits and thus additional instructions.
(b) the first DMA region can be smaller than one page, so there can
be a scanline split even if bpl*lines is smaller than PAGE_SIZE.
For example, consider the case where offset is 0, bpl is 2, padding
is 4094, lines is smaller than 2048, the first DMA region has size 1
and all others have size PAGE_SIZE, assumed to equal 4096. Then
all bpl regions cross page borders and the number of instructions
written is 2*lines+2, rather than lines+2 (the current estimate).
With this patch the number of instructions for this example is
estimated to be 2*lines+3.
Also, the BUG_ON that was supposed to catch buffer overflows contained
a thinko causing it fire only if the buffer was overrun by a factor of
16 or more, so it fixes the the BUG_ON's (using sizeof rather than "4").
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mike Isely <isely@pobox.com>
The wire protocol to the PVR USB2 hardware limits the total size of an
I2C write transfer (among other things). The driver detects this case
and fails the transfer; this change also logs the message. We need
this in order to catch V4L modules which might be attempting such
transfers and deal with them on a case-by-case basis.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Ian Pickworth <ian@pickworth.me.uk>
- fix temporary debug code by changing printk to dprintk at level 1.
- move CORE_IOCTL messages from level 1 to level 2.
- this should help with selective debugging,
while not filling people's logs up during normal use.
Signed-off-by: Ian Pickworth <ian@pickworth.me.uk>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
From: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Thanks to Edgar Toerning
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Thanks to Edgar Toernig
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Thanks to Edgar Toernig
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
- removed 'make pvrusb2' merge command
- created in-kernel Makefile, Kconfig not yet done.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
- moved out of v4l_experimental
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Mike Isely <isely@pobox.com>
This implements a module option which may be used to pause
initialization of the driver right after the point where the hardware
is reset. The idea here is to provide a means for the driver to stay
out of the way until the hardware has finished initializating itself.
The default delay is zero, which disables it (at the moment I don't
think the delay is needed but it's worth leaving the logic in place to
do it).
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
- killed I2C_ALGO_BIT
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
merge:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
merge:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
merge:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
merge:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mattias Nordstrom <nordstrom@realnode.com>
I have a TT C1500 card (saa7146, STV0297) which had problems tuning
channels at QAM128 (like the ones in the Finnish HTV / Welho network).
A fix which seems to work perfectly so far is to change the delay for
QAM128 to the same values as for QAM256 in stv0297_set_frontend(),
Signed-off-by: Mattias Nordstrom <nordstrom@realnode.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Alan Cox <alan@redhat.com>
There has been a CPIA2 driver out of kernel for a long time and it has
been pretty clean for some time too. This is an import of the
sourceforge driver which has been stripped of
- 2.4 back compatibility
- 2.4 old style MJPEG ioctls
A couple of functions have been made static and the docs have been
repackaged into Documentation/video4linux. The rvmalloc/free functions now
match the cpia driver again. Other than that this is the code as is.
Tested on x86-64 with a QX5 microscope.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Thilo Berger <thilo_berger@gmx.net>
Support for Satelco EasyWatch DVB-S light.
Signed-off-by: Thilo Berger <thilo_berger@gmx.net>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
|
|
From: Mike Isely <isely@pobox.com>
Modify the I2C adapter implementation in pvrusb2 such that
I2C_FUNC_I2C is advertised to clients; this allows cx25840 to attach.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
Implement VIDIOC_LOG_STATUS ioctl() to the application. Implement
generation of VIDIOC_LOG_STATUS to the modules. Implement trigger of
VIDIOC_LOG_STATUS from sysfs when user cats a few key files, to help
with debugging.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
Newer PVR USB2 hardware uses a larger eeprom. These changes allow the
driver to detect and handle the different eeprom.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
The FX2 firmware in the PVR USB2 device can report the I2C address of
the resident eeprom device. Implement code to retrieve this information.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Mike Isely <isely@pobox.com>
The $Id$ keywords present in the pvrusb2 driver reflect information
from the old SCM, useless here. For now, undo all the expansions.
Signed-off-by: Mike Isely <isely@pobox.com>
|
|
From: Nico Sabbi <nsabbi@tiscali.it>
This patch adds DVB-T support, no DVB-S yet
Signed-off-by: Nico Sabbi <nsabbi@tiscali.it>
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
- fixed tda9886 port 2 setting
- turned remote control receiver off via saa7134 GPIO to avoid i2c hangs
- modified tda9886 client calls to direct i2c access to allow proper return
to analog mode
- allow mode change to V4L2_TUNER_DIGITAL_TV in tuner VIDIOC_S_FREQUENCY
client call
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
The probing code for tda8290 changes the state of the tda9887 GP ports.
The patch assumes that if probing for tda8290 failed, this must be a
tda9887 and restores its power on defaults.
This should solve the module load order issue with some pinnacle cards.
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
This ensures that ivtv-svnversion.h and the ivtv symlinks are present,
in case 'make clean' was run prior to 'make ivtv-update'
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
On 2/17/06, Darren Salt <linux@youmustbejoking.demon.co.uk> wrote:
> + u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
> Shouldn't buffer be declared static const?
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Peter Beutner <p.beutner@gmx.net>
The field "dvr" in struct dmxdev is competely unused. Remove
it and code which allocates, initializes and frees it.
Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
|
|
From: Andreas Oberritter <obi@linuxtv.org>
Add two new ioctls to read the 33 bit presentation time stamp from audio
and video devices as defined in ITU T-REC-H.222.0 and ISO/IEC 13818-1.
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Acked-by: Johannes Stezenbach <js@linuxtv.org>
|
|
From: Johannes Stezenbach <js@linuxtv.org>
use __devinit/__devexit/__devexit_p() where appropriate
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Some cleanup on printing enum names.
v4l2_memory now translated also to name.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Adds field and type name to debug message.
Also prints now format for type=capture.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Previously, only NTSC and PAL/M were associated to 30fps and
525 lines, so, PAL/60 were not handled properly.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
Add debug to ioctl arguments.
Added a new function that allows printing ioctl arguments.
This makes easier to include debug code under v4l ioctl
handling.
Also fixed some declarations on internal ioctl.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
Some small updates in the comments for KWorld HardwareMpegTV XPert.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
This tree contains all of the patchsets in relation to Kworld ATSC 110.
This is ready to be merged into master now.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
Added a command, 'make ivtv' that will retrieve the latest ivtv
sources from ivtvdriver.org using subversion, and build the driver along
with the rest of the v4l-dvb tree.
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Rudo Thomas <rudo@matfyz.cz>
The remote controller on the LifeView FlyDVB-T Duo card work flawlessly
with the same settings as the LifeView FlyDVB-T LR301 card.
Signed-off-by: Rudo Thomas <rudo@matfyz.cz>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Curt Meyers <cmeyers@boilerbots.com>
- Enable the tuv1236 tuner on the Kworld-ATSC110 card so that the
tuner can be identified when tuners.ko loads.
- With this change it is no longer necessary to remove and reload
the tuner module in order to get the tuv1236 identified.
- This code was copied from the ATI HDTV Wonder init routine (in cx88-cards.c)
which also uses the TUV1236D.
Signed-off-by: Curt Meyers <cmeyers@boilerbots.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
The symlink commands in the Makefile used to look like:
@find ../linux/drivers/media -name '*.[c,h]' -type f -exec ln -sf '{}' . \;
the ',' should not be there. The correct command is:
@find ../linux/drivers/media -name '*.[ch]' -type f -exec ln -sf '{}' . \;
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|