Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55232 - SAA7134 v4l2 driver with md5044 card misses PAL-60 mode, which is fully supported on Windows (Using composite in)
Summary: SAA7134 v4l2 driver with md5044 card misses PAL-60 mode, which is fully suppo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 06:46 UTC by Rutger
Modified: 2006-06-04 09:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rutger 2004-06-26 06:46:39 UTC
When I run xawtv, I can't select PAL-60. If I select it in LiveTV, it just gives a messy picture. If I run MPlayer with the -tv option, I can only select 
0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-M; 4 = PAL-Nc; 
as the supported norms. v4lctl returns 
norm       | choice | (null)  | PAL     | PAL NTSC SECAM PAL-M PAL-Nc

The card is setup with the correct modprobe option (card = 9). From dmesg:
Linux video capture interface: v1.00
saa7130/34: v4l2 driver version 0.2.12 loaded
saa7134[0]: found at 0000:01:06.0, rev: 1, irq: 9, latency: 64, mmio: 0xfe9edc00saa7134[0]: subsystem: 1131:0000, board: Medion 5044 [card=9,insmod option]
saa7134[0]: board init: gpio is 10020
saa7134[0]: Huh, no eeprom present (err=-5)?
tuner: chip found at addr 0xc0 i2c-bus saa7134[0]
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by saa7134[0]
tda9885/6/7: chip found @ 0x86
saa7134[0]: registered device video0 [v4l2]
saa7134[0]: registered device vbi0
saa7134[0]: registered device radio0

However, when I use this card on Windows, Pal-60 is available and works like a charm.

Reproducible: Always
Steps to Reproduce:
1. Run livetv/xawtv/mplayer -tv
2.
3.

Actual Results:  
When using PAL-60 on the composite in, I can't select PAL-60 on the video modes

Expected Results:  
Enable PAL-60 mode for selection

Emerge info:
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Celeron(R) CPU 2.20GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome
gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang
spell ssl svga tcpd truetype v4l v4l2 x86 xml2 xmms xv zlib"
Comment 1 Phil Richards 2005-02-25 01:41:47 UTC
I've submitted a patch to the maintainer of the driver, which has been merged into CVS. In the meantime, the following patch will work against the saa7134-video.c file in the 2.6.10 kernel.

173,181d172
< #define NORM_625_60                   \
<               .h_start       = 0,     \
<               .h_stop        = 719,   \
<               .video_v_start = 22,    \
<               .video_v_stop  = 22+239, \
<               .vbi_v_start   = 10,  \
<               .vbi_v_stop    = 21,  \
<               .src_timing    = 1
<
279,289d269
<       },{
<               .name          = "PAL-60",
<               .id            = V4L2_STD_PAL_60,
<               NORM_625_60,
<
<               .sync_control  = 0x18,
<               .luma_control  = 0x40,
<               .chroma_ctrl1  = 0x81,
<               .chroma_gain   = 0x2a,
<               .chroma_ctrl2  = 0x06,
<               .vgate_misc    = 0x1c, 


Cheers, Phil
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-04 09:47:29 UTC
(In reply to comment #1)
> I've submitted a patch to the maintainer of the driver, which has been merged
> into CVS.

Marking UPSTREAM, thanks. Closing a stale bug.