summaryrefslogtreecommitdiff
path: root/linux/include/media/tveeprom.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-22 20:50:31 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-22 20:50:31 +0200
commit6663286ec924d58968a88f5cb07ba47bf5bb41b2 (patch)
tree26c26cee21cdd2d42f6cfffb94e7500cfe700a12 /linux/include/media/tveeprom.h
parent4af3189282424ed07479ccfa87420d4fbb01b62e (diff)
downloadmediapointer-dvb-s2-6663286ec924d58968a88f5cb07ba47bf5bb41b2.tar.gz
mediapointer-dvb-s2-6663286ec924d58968a88f5cb07ba47bf5bb41b2.tar.bz2
tveeprom/ivtv: fix usage of has_ir field
From: Hans Verkuil <hverkuil@xs4all.nl> has_ir was set to and compared to -1 in several cases, even though it is an u32. ivtv also contained a FIXME for an old kernel that could be removed. Thanks to Roel Kluin for creating an initial patch for this. Although I chose a different solution here it did help in pointing out the problem. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/tveeprom.h')
-rw-r--r--linux/include/media/tveeprom.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/include/media/tveeprom.h b/linux/include/media/tveeprom.h
index 5660ea249..a8ad75a91 100644
--- a/linux/include/media/tveeprom.h
+++ b/linux/include/media/tveeprom.h
@@ -3,7 +3,12 @@
struct tveeprom {
u32 has_radio;
- u32 has_ir; /* bit 0: IR receiver present, bit 1: IR transmitter (blaster) present. -1 == unknown */
+ /* If has_ir == 0, then it is unknown what the IR capabilities are,
+ otherwise:
+ bit 0: 1 (= IR capabilities are known)
+ bit 1: IR receiver present
+ bit 2: IR transmitter (blaster) present */
+ u32 has_ir;
u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
u32 tuner_type;