diff options
author | Steven Toth <stoth@hauppauge.com> | 2006-01-09 12:25:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:25:16 -0500 |
commit | e64a86ee2b5ef5e23ccda2cc8981a22a8111a3b3 (patch) | |
tree | ab39f44bff991d45b4fd99bfdfc47ac71fd858b4 | |
parent | 39e8f40da20a803a17e16304e73fd31050b1871c (diff) |
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: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r-- | drivers/media/video/tveeprom.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c index 8ac4cb82a459..a26ce7515dfa 100644 --- a/drivers/media/video/tveeprom.c +++ b/drivers/media/video/tveeprom.c | |||
@@ -63,10 +63,10 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); | |||
63 | printk(KERN_INFO "tveeprom %d-%04x: " fmt, \ | 63 | printk(KERN_INFO "tveeprom %d-%04x: " fmt, \ |
64 | c->adapter->nr, c->addr , ##arg); } while (0) | 64 | c->adapter->nr, c->addr , ##arg); } while (0) |
65 | 65 | ||
66 | 66 | /* | |
67 | /* ----------------------------------------------------------------------- */ | 67 | * The Hauppauge eeprom uses an 8bit field to determine which |
68 | /* some hauppauge specific stuff */ | 68 | * tuner formats the tuner supports. |
69 | 69 | */ | |
70 | static struct HAUPPAUGE_TUNER_FMT | 70 | static struct HAUPPAUGE_TUNER_FMT |
71 | { | 71 | { |
72 | int id; | 72 | int id; |
@@ -74,14 +74,14 @@ static struct HAUPPAUGE_TUNER_FMT | |||
74 | } | 74 | } |
75 | hauppauge_tuner_fmt[] = | 75 | hauppauge_tuner_fmt[] = |
76 | { | 76 | { |
77 | { 0x00000000, " unknown1" }, | 77 | { V4L2_STD_UNKNOWN," UNKNOWN" }, |
78 | { 0x00000000, " unknown2" }, | 78 | { V4L2_STD_UNKNOWN," FM" }, |
79 | { 0x00000007, " PAL(B/G)" }, | 79 | { V4L2_STD_PAL_BG, " PAL(B/G)" }, |
80 | { 0x00001000, " NTSC(M)" }, | 80 | { V4L2_STD_NTSC_M, " NTSC(M)" }, |
81 | { 0x00000010, " PAL(I)" }, | 81 | { V4L2_STD_PAL_I, " PAL(I)" }, |
82 | { 0x00400000, " SECAM(L/L')" }, | 82 | { V4L2_STD_SECAM_L," SECAM(L/L')" }, |
83 | { 0x00000e00, " PAL(D/K)" }, | 83 | { V4L2_STD_PAL_DK, " PAL(D/D1/K)" }, |
84 | { 0x03000000, " ATSC/DVB Digital" }, | 84 | { V4L2_STD_ATSC, " ATSC/DVB Digital" }, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | /* This is the full list of possible tuners. Many thanks to Hauppauge for | 87 | /* This is the full list of possible tuners. Many thanks to Hauppauge for |