Commit e64a86ee authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (3108): tveeprom cleanup of hardcoded tuner format values.

- 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: default avatarSteven Toth <stoth@hauppauge.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent 39e8f40d
...@@ -63,10 +63,10 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); ...@@ -63,10 +63,10 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
printk(KERN_INFO "tveeprom %d-%04x: " fmt, \ printk(KERN_INFO "tveeprom %d-%04x: " fmt, \
c->adapter->nr, c->addr , ##arg); } while (0) c->adapter->nr, c->addr , ##arg); } while (0)
/*
/* ----------------------------------------------------------------------- */ * The Hauppauge eeprom uses an 8bit field to determine which
/* some hauppauge specific stuff */ * tuner formats the tuner supports.
*/
static struct HAUPPAUGE_TUNER_FMT static struct HAUPPAUGE_TUNER_FMT
{ {
int id; int id;
...@@ -74,14 +74,14 @@ static struct HAUPPAUGE_TUNER_FMT ...@@ -74,14 +74,14 @@ static struct HAUPPAUGE_TUNER_FMT
} }
hauppauge_tuner_fmt[] = hauppauge_tuner_fmt[] =
{ {
{ 0x00000000, " unknown1" }, { V4L2_STD_UNKNOWN," UNKNOWN" },
{ 0x00000000, " unknown2" }, { V4L2_STD_UNKNOWN," FM" },
{ 0x00000007, " PAL(B/G)" }, { V4L2_STD_PAL_BG, " PAL(B/G)" },
{ 0x00001000, " NTSC(M)" }, { V4L2_STD_NTSC_M, " NTSC(M)" },
{ 0x00000010, " PAL(I)" }, { V4L2_STD_PAL_I, " PAL(I)" },
{ 0x00400000, " SECAM(L/L')" }, { V4L2_STD_SECAM_L," SECAM(L/L')" },
{ 0x00000e00, " PAL(D/K)" }, { V4L2_STD_PAL_DK, " PAL(D/D1/K)" },
{ 0x03000000, " ATSC/DVB Digital" }, { V4L2_STD_ATSC, " ATSC/DVB Digital" },
}; };
/* This is the full list of possible tuners. Many thanks to Hauppauge for /* This is the full list of possible tuners. Many thanks to Hauppauge for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment