Skip to content

Commit

Permalink
V4L/DVB (3108): tveeprom cleanup of hardcoded tuner format values.
Browse files Browse the repository at this point in the history
- Cleaned up the structure to use the V4L2_STD_xxx definitions
rather than a one off set of hardcoded values - which could
change in the future.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 39e8f40 commit e64a86e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions drivers/media/video/tveeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,25 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
printk(KERN_INFO "tveeprom %d-%04x: " fmt, \
c->adapter->nr, c->addr , ##arg); } while (0)


/* ----------------------------------------------------------------------- */
/* some hauppauge specific stuff */

/*
* The Hauppauge eeprom uses an 8bit field to determine which
* tuner formats the tuner supports.
*/
static struct HAUPPAUGE_TUNER_FMT
{
int id;
char *name;
}
hauppauge_tuner_fmt[] =
{
{ 0x00000000, " unknown1" },
{ 0x00000000, " unknown2" },
{ 0x00000007, " PAL(B/G)" },
{ 0x00001000, " NTSC(M)" },
{ 0x00000010, " PAL(I)" },
{ 0x00400000, " SECAM(L/L')" },
{ 0x00000e00, " PAL(D/K)" },
{ 0x03000000, " ATSC/DVB Digital" },
{ V4L2_STD_UNKNOWN," UNKNOWN" },
{ V4L2_STD_UNKNOWN," FM" },
{ V4L2_STD_PAL_BG, " PAL(B/G)" },
{ V4L2_STD_NTSC_M, " NTSC(M)" },
{ V4L2_STD_PAL_I, " PAL(I)" },
{ V4L2_STD_SECAM_L," SECAM(L/L')" },
{ V4L2_STD_PAL_DK, " PAL(D/D1/K)" },
{ V4L2_STD_ATSC, " ATSC/DVB Digital" },
};

/* This is the full list of possible tuners. Many thanks to Hauppauge for
Expand Down

0 comments on commit e64a86e

Please sign in to comment.