saa5246a Videotext driver update
PATCH 1/1 saa5246a Videotext driver update
Hello,
I uploaded an update to the Videotext driver for the SAA5246A videotext decoder in
http://www.michaelgeng.de/linux/saa5246a-2.6.7.patch
The update only changes comments showing that the driver also works for the SAA5281 videotext decoder chip. This is not surprising because according to the data sheet of the SAA5281 it is compatible to the SAA5246A. I have tested this with a Siemens Multimedia Extension Board (MXB).
I also added MODULE_AUTHOR and MODULE_DESCRIPTION macros which were missing up to now.
Patch comment:
V4L: saa5246a driver update, supports saa5281
Michael
Quoted 5 lines · [email protected] (Michael Geng) wrote:
I uploaded an update to the Videotext driver for the SAA5246A videotext decoder in
In future, please send the patch in the body of the email - that way more people get to look at it, it gets stored in the various mailing list archives and everyone's patch-management setups are designed to work on email.
Gerd, could you please process this patch?
Quoted 6 lines · Andrew Morton
Quoted 3 lines · [email protected] (Michael Geng) wrote:
I uploaded an update to the Videotext driver for the SAA5246A videotext decoder
Gerd, could you please process this patch?
Looks perfectly fine to me. The patch updates docs, comments + strings to also mention the SAA5281 chip (which is compatible to the SAA5246A) as supported.
Gerd
==============================[ cut here ]==============================
drivers/media/video/Kconfig +3 -3
@@ -112,11 +112,11 @@ It is also available as a module (cpia_usb). config VIDEO_SAA5246A - tristate "SAA5246A Teletext processor" + tristate "SAA5246A, SAA5281 Teletext processor" depends on VIDEO_DEV && I2C help - Support for I2C bus based teletext using the SAA5246A chip. Useful - only if you live in Europe. + Support for I2C bus based teletext using the SAA5246A or SAA5281 + chip. Useful only if you live in Europe. To compile this driver as a module, choose M here: the module will be called saa5246a.
Common subdirectories: linux-2.6.7/drivers/media/video/cx88 and linux-2.6.7-saa5246a/drivers/media/video/cx88
drivers/media/video/saa5246a.c +11 -8
@@ -1,9 +1,10 @@/* -* Driver for the SAA5246A videotext decoder chip from Philips. +* Driver for the SAA5246A or SAA5281 Teletext (=Videotext) decoder chips from +* Philips. * -* Only capturing of videotext pages is tested. The SAA5246A chip also has -* a TV output but my hardware doesn't use it. For this reason this driver -* does not support changing any TV display settings. +* Only capturing of Teletext pages is tested. The videotext chips also have a +* TV output but my hardware doesn't use it. For this reason this driver does +* not support changing any TV display settings. * * Copyright (C) 2004 Michael Geng <[email protected]> *
@@ -47,6 +48,10 @@#include <linux/videodev.h> #include "saa5246a.h" +MODULE_AUTHOR ("Michael Geng <[email protected]>" ); +MODULE_DESCRIPTION ("Philips SAA5246A, SAA5281 Teletext decoder driver" ); +MODULE_LICENSE ("GPL" ); +struct saa5246a_device {u8 pgbuf[NUM_DAUS ][VTX_VIRTUALSIZE ];
@@ -764,8 +769,8 @@static int __init init_saa_5246a (void ) { -printk (KERN_INFO "SAA5246A driver (" IF_NAME -" interface) for VideoText version %d.%d\n" , +printk (KERN_INFO +"SAA5246A (or compatible) Teletext decoder driver version %d.%d\n" ,MAJOR_VERSION ,MINOR_VERSION );return i2c_add_driver (&i2c_driver_videotext); }
@@ -796,5 +801,3 @@ .release = video_device_release, .minor = -1, }; - -MODULE_LICENSE ("GPL" );
drivers/media/video/saa5246a.h +4 -2
@@ -1,5 +1,7 @@/* -Driver for the SAA5246A videotext decoder chip from Philips. +Driver for the SAA5246A or SAA5281 Teletext (=Videotext) decoder chips from +Philips. +Copyright (C) 2004 Michael Geng ([email protected]) This program is free software; you can redistribute it and/or modify
@@ -21,7 +23,7 @@#define __SAA5246A_H__#define MAJOR_VERSION 1/* driver major version number */ -#define MINOR_VERSION 6/* driver minor version number */ +#define MINOR_VERSION 7/* driver minor version number */ #define IF_NAME "SAA5246A"
Common subdirectories: linux-2.6.7/drivers/media/video/saa7134 and linux-2.6.7-saa5246a/drivers/media/video/saa7134