6 years agoAdd missing header
Domenico Andreoli [Thu, 3 May 2012 15:53:15 +0000 (17:53 +0200)]
Add missing header

6 years agogit ignore debian/* 2
Andrey Nikitin [Sat, 17 Dec 2011 10:06:13 +0000 (14:06 +0400)]
git ignore debian/*

6 years agodkms.comf has been added
Andrey Nikitin [Sat, 17 Dec 2011 09:37:27 +0000 (13:37 +0400)]
dkms.comf has been added

6 years agoTW6816 decoder support now available, bump version to 0.0.5
Andrey Nikitin [Sat, 17 Dec 2011 09:16:36 +0000 (13:16 +0400)]
TW6816 decoder support now available, bump version to 0.0.5

Passed on HW-216Q9 and HW-108Q9 cctv cards.

6 years ago.gitignore has been added
Andrey Nikitin [Sat, 17 Dec 2011 08:59:20 +0000 (12:59 +0400)]
.gitignore has been added

6 years agocosmetic, move local #include after system
Andrey Nikitin [Sat, 17 Dec 2011 08:51:55 +0000 (12:51 +0400)]
cosmetic, move local #include after system

6 years agoremove potentially segfault code (dprintk() with undefined dev)
Andrey Nikitin [Sat, 17 Dec 2011 08:50:10 +0000 (12:50 +0400)]
remove potentially segfault code (dprintk() with undefined dev)

6 years agodisable IR only for >= 3.1.0 kernels, correct 6f7c068e2
Andrey Nikitin [Sat, 17 Dec 2011 08:45:15 +0000 (12:45 +0400)]
disable IR only for >= 3.1.0 kernels, correct 6f7c068e2

6 years agocorrect 5bc4e05 and 07d78e3 commits for kernel < 2.6.37
Andrey Nikitin [Sat, 17 Dec 2011 08:20:26 +0000 (12:20 +0400)]
correct 5bc4e05 and 07d78e3 commits for kernel < 2.6.37

7 years agodrop IR stubs, they do not build on 3.1-rc9 (kernel switched to Remote Controller...
Domenico Andreoli [Thu, 13 Oct 2011 11:30:28 +0000 (13:30 +0200)]
drop IR stubs, they do not build on 3.1-rc9 (kernel switched to Remote Controller in the meanwhile)

7 years agoDMA_32BIT_MASK is gone in favour of DMA_BIT_MASK(32)
Domenico Andreoli [Thu, 13 Oct 2011 11:16:15 +0000 (13:16 +0200)]
DMA_32BIT_MASK is gone in favour of DMA_BIT_MASK(32)

7 years agoupdated to the new videobuf_waiton() of 2.6.37
Domenico Andreoli [Thu, 13 Jan 2011 20:20:03 +0000 (21:20 +0100)]
updated to the new videobuf_waiton() of 2.6.37

7 years agoupdated to the new videobuf_queue_sg_init() of 2.6.37
Domenico Andreoli [Thu, 13 Jan 2011 20:19:43 +0000 (21:19 +0100)]
updated to the new videobuf_queue_sg_init() of 2.6.37

8 years agoEnhance for v4l2 changes in kernels 2.6.35 and 2.6.36
bill [Mon, 23 Aug 2010 08:00:23 +0000 (16:00 +0800)]
Enhance for v4l2 changes in kernels 2.6.35 and 2.6.36

For tw68-video.c, changed second parameter in calls to v4l2_prio_check
and v4l2_prio_close to be enum instead of pointer to enum.
For tw68-core.c, changed first parameter in call to videobuf_dma_unmap
to be pointer to device structure instead of pointer to video buff.
Surrounded by change by #if for kernel version so it should work for
older kernels as well as more recent ones.

8 years agoAdjust SYNCT value, debug flags in Makefile
William M. Brack [Thu, 1 Apr 2010 05:36:11 +0000 (22:36 -0700)]
Adjust SYNCT value, debug flags in Makefile

8 years agoUpdated address for FSF in GPL
bill [Sat, 20 Feb 2010 22:03:21 +0000 (14:03 -0800)]
Updated address for FSF in GPL

8 years agoFix loss of sync under heavy load
bill [Sat, 20 Feb 2010 19:55:19 +0000 (11:55 -0800)]
Fix loss of sync under heavy load

8 years agoMerge branch 'master' of git://
William M. Brack [Tue, 16 Feb 2010 05:30:52 +0000 (21:30 -0800)]
Merge branch 'master' of git://

8 years agoFix TW6800 FDMIS interrupt
root [Tue, 16 Feb 2010 05:16:22 +0000 (21:16 -0800)]
Fix TW6800 FDMIS interrupt

8 years agomatch TW68_NORMS mask with current tvnorms
Domenico Andreoli [Sun, 31 Jan 2010 16:45:17 +0000 (17:45 +0100)]
match TW68_NORMS mask with current tvnorms

TW68_NORMS is a mask and is passed down to __video_do_ioctl() which
manages VIDIOC_ENUMSTD ioctl for us. It was left out of sync.

Added:   V4L2_STD_SECAM_LC, V4L2_STD_525_60, V4L2_STD_625_50
Removed: V4L2_STD_NTSC_M, V4L2_STD_NTSC_M_JP, V4L2_STD_NTSC_443,

8 years agoFixes for making the TW6800 work - version bump to 0.0.4
William M. Brack [Fri, 22 Jan 2010 14:22:09 +0000 (22:22 +0800)]
Fixes for making the TW6800 work - version bump to 0.0.4

With great assistance from Robby Cerantola, found and fixed the major
spot that was preventing the TW6800 from synchronizing and starting its
display. This was the fact that the VLOCK and HLOCK bits in the
interrupt register are handled differently in the TW6800.

Added code to save the chip type in the device structure, and to use it
for setting up registers differently for the different Techwell chip
types.  Also did a little cleanup in the interrupt handling code. Entered
different value in tvnorm array for the different chip types. Added
code within the tw68_set_scale routine to set different register values
depending upon the chip type (for now, the only register different is

Bumped version number to 0.0.4.

8 years agoChanged version number in tw68.h to show 0.0.3
William M. Brack [Tue, 19 Jan 2010 15:20:40 +0000 (23:20 +0800)]
Changed version number in tw68.h to show 0.0.3

8 years agoChange handling of mux switching, update Version Number to 0.0.3
William M. Brack [Tue, 19 Jan 2010 15:03:04 +0000 (23:03 +0800)]
Change handling of mux switching, update Version Number to 0.0.3

Changed handling of input (mux) switching, so that the actual switch is done
during interrupt processing at the end of a frame.
Corrected some minor errors.

8 years agoBrought file up to date
William M. Brack [Tue, 12 Jan 2010 06:42:03 +0000 (14:42 +0800)]
Brought file up to date

8 years agoFixed sync problem for multi-camera/chip boards plus some minor changes.
William M. Brack [Tue, 12 Jan 2010 06:37:45 +0000 (14:37 +0800)]
Fixed sync problem for multi-camera/chip boards plus some minor changes.

Suppressed error message from 'make insmod'
Set DETV in VCNTL1 to fix sync problem.
Changed set_tvnorm to only set if changed.
Removed initialisation of TW68-RESERV2

8 years agoMerge branch 'master' of
William M. Brack [Sat, 9 Jan 2010 15:04:40 +0000 (23:04 +0800)]
Merge branch 'master' of

8 years agoMinor change to aid in i2c development. No change to logic.
William M. Brack [Sat, 9 Jan 2010 14:57:48 +0000 (22:57 +0800)]
Minor change to aid in i2c development.  No change to logic.

8 years agoAdd PCI-ID for TW6800; Fix "ghosting" on some cards
Bill Brack [Sat, 9 Jan 2010 14:43:04 +0000 (22:43 +0800)]
Add PCI-ID for TW6800; Fix "ghosting" on some cards

Added in a PCI-ID for the TW6800.  It's likely that it won't work,
but at least users can test the driver and report where the problems are.
Added code to initialise the GPIO register in order to produce correct
control signals for some inexpensive cards.

8 years agoFixed warning in tw68-risc.c
William M. Brack [Fri, 8 Jan 2010 04:42:55 +0000 (12:42 +0800)]
Fixed warning in tw68-risc.c

8 years agoEnhance Makefile adding 'make install' and TW68_TEST
wbrack [Fri, 8 Jan 2010 03:53:34 +0000 (11:53 +0800)]
Enhance Makefile adding 'make install' and TW68_TEST

8 years ago(should have been on previous commit)
wbrack [Sun, 3 Jan 2010 04:40:09 +0000 (12:40 +0800)]
(should have been on previous commit)

8 years agoVersion 0.0.2 - further cleanup, enhance initialisation, tune NTSC settings
wbrack [Sun, 3 Jan 2010 04:23:04 +0000 (12:23 +0800)]
Version 0.0.2 - further cleanup, enhance initialisation, tune NTSC settings

Removed source module tw68-ioctls.c.
Cleaned up all messages from
Adjusted debug levels for better granularity.
Worked on control register initialisations.
Tuned settings for NORM_525_60 (NTSC).
Bumped Version Number to 0.0.2.

8 years agoDeleted tw68-controls.c, tw68-fileops.c and tw68-input.c
wbrack [Thu, 31 Dec 2009 06:02:06 +0000 (14:02 +0800)]
Deleted tw68-controls.c, tw68-fileops.c and tw68-input.c

8 years agoRemove "Overlay" mode, enhance cropping and debug
wbrack [Tue, 29 Dec 2009 08:21:16 +0000 (16:21 +0800)]
Remove "Overlay" mode, enhance cropping and debug

Removed all code trying to implement overlay mode.  Changed capabilities
to show V4L2_CAP_VIDEO_OVERLAY not present.
Removed source modules tw68-controls.c, tw68-fileops.c and tw68-input.c.
Enhanced code for cropping, as well as tw68_set_scale. Adjusted the
values in tw68-video's NORM_625_50 to improve xawtv's display.
Changed debug prints in tw68-video.c to provide better granularity.

8 years agoSmall enhancement to Makefile for 'make insmod'
William M. Brack [Tue, 29 Dec 2009 02:08:05 +0000 (10:08 +0800)]
Small enhancement to Makefile for 'make insmod'

Added some modprobes for required modules.
Suppressed some (expected) error messages

9 years agoAddition of README file
William M. Brack [Sun, 13 Sep 2009 02:36:23 +0000 (10:36 +0800)]
Addition of README file

9 years agoBeginning addition of overlay mode
William M. Brack [Sat, 12 Sep 2009 02:12:02 +0000 (10:12 +0800)]
Beginning addition of overlay mode

Added some code to tw68-video.c to cater for clipping and scaling.
Also enhanced the video standard settings.  Enhanced a small
potential problem with the risc code generation.

9 years agoEnhance module initialisation
William M. Brack [Sat, 12 Sep 2009 02:00:09 +0000 (10:00 +0800)]
Enhance module initialisation

Some changes to register values for initialisation.  Comments
from Cavok retained.

9 years agorun target now runs v4l2ucp and mplayer
Domenico Andreoli [Thu, 11 Jun 2009 15:21:06 +0000 (17:21 +0200)]
run target now runs v4l2ucp and mplayer

9 years agoreviewed tw68_reset()
Domenico Andreoli [Wed, 10 Jun 2009 10:03:43 +0000 (12:03 +0200)]
reviewed tw68_reset()

- added registers' addresses to ease the specs lookup
- added annotations about reset values differing from my specs

9 years agobetter separation of in-kernel and out-of-kernel rules
Domenico Andreoli [Wed, 10 Jun 2009 09:42:25 +0000 (11:42 +0200)]
better separation of in-kernel and out-of-kernel rules

9 years agoWIP
Domenico Andreoli [Wed, 3 Jun 2009 22:40:22 +0000 (00:40 +0200)]

9 years agoRemove some debugging code, general cleanup, improve controls.
William M. Brack [Tue, 3 Mar 2009 14:22:20 +0000 (06:22 -0800)]
Remove some debugging code, general cleanup, improve controls.

tw68-cards.c - trivial changes.
tw68-core.c - mostly cleanup, small change to tw68_wakeup.
tw68-video.c - general cleanup, fixed brightness control

9 years agoFix norm constants for VL2_STD_PAL
William M. Brack [Wed, 18 Feb 2009 04:10:07 +0000 (20:10 -0800)]
Fix norm constants for VL2_STD_PAL

Changed the constants in the norm table in tw68-video.c for V4L2_STD_PAL
to be those present in the Techwell patch set.  Fixes the display shown
by xawtv, using a PAL camera, to be quite reasonable.

9 years agoEnhancement and cleanup of video processing
William M. Brack [Tue, 17 Feb 2009 05:55:42 +0000 (21:55 -0800)]
Enhancement and cleanup of video processing

Added some additional register definitions.
Added initialisation of all key registers, following the code which
was in the original Techwell bttv patches.
Changed norm data to be table-based, with a table for each of the
norms that we handle.
Fixed serious error in the risc code generation.  With this change,
program can now display a picture with xawtv (but apparently the
norm constants are not correct, and need further work, so there is still
a lot of room for improvement).

9 years agoEnhancement and cleanup of video processing
William M. Brack [Mon, 16 Feb 2009 04:40:54 +0000 (20:40 -0800)]
Enhancement and cleanup of video processing

Moved inline functions out of tw68.h into tw68-video.c.
Moved video handling functions out of tw68-core.c into tw68-video.c.
Added some (temporary) debugging code to dump all the registers.
Added tw68-i2c (currently just a dummy) to the driver.

9 years agoAdded interrupt enabling of other DMAPI-related stuff and reporting if they occur
William M. Brack [Mon, 9 Feb 2009 08:03:26 +0000 (00:03 -0800)]
Added interrupt enabling of other DMAPI-related stuff and reporting if they occur
Did some enhancement/cleanup of general interrupt handling, now enabling error bits (but not doing much more than log and disable).
Cleaned up "stopper" routine, put in check within DMAPI handling to see if we have gotten into that routine.
Removed format enum for V4L2_PIX_FMT_GREY, not present in TW6800
Fixed error in tw68_video_mux, input selection should now work.
Removed references to "shadow" registers
Enhanced handling of pixel formatting of data going to FIFO.

9 years agoInitial commit - 5 Feb 2009 20:12 PST
William M. Brack [Fri, 6 Feb 2009 04:11:55 +0000 (20:11 -0800)]
Initial commit - 5 Feb 2009 20:12 PST