summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bt8xx/bttv.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-01-28 16:32:59 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2009-01-28 16:32:59 -0800
commitf030fca37c310181b3fce820ab359bb8eceed0e2 (patch)
treeeb79ddb1e871efee85a7362cc52e236eab62b921 /linux/drivers/media/video/bt8xx/bttv.h
parent4a49903c6320c8ba9dfe2c139103166f75594f49 (diff)
downloadmediapointer-dvb-s2-f030fca37c310181b3fce820ab359bb8eceed0e2.tar.gz
mediapointer-dvb-s2-f030fca37c310181b3fce820ab359bb8eceed0e2.tar.bz2
bttv: make tuner card info more consistent
From: Trent Piepho <xyzzy@speakeasy.org> The bttv card database structure had a "tuner" field that was the input number of the tuner input or UNSET for no tuner. However, the only values it could ever be are 0 and UNSET. Having a tuner on an input other than 0 didn't work and was never used. There is also a "tuner_type" field that can be set to TUNER_ABSENT to indicate no tuner, which makes "tuner = UNSET" redundant. In many cases, tuner_type was set to UNSET when there was no tuner, which isn't quite correct. tuner_type == UNSET is supposed to mean the tuner type isn't yet known. So, I changed cards where "tuner == UNSET" to always have tuner_type of TUNER_ABSENT. At this point the tuner field is redundant, so I deleted it. I have the card setup code set the card's tuner_type (not the card type's tuner_type!) to TUNER_ABSENT if it hasn't yet been set at the end of the setup code. Various places that check if the card has a tuner will now look for this instead of checking the card type's "tuner" field. Also autoload the tuner module before issuing the TUNER_SET_TYPE_ADDR I2C client call instead of after issuing it. Overall, on ia32 this decreases compiled code size by about 24 bytes and reduces the data size by 640 bytes. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/bt8xx/bttv.h')
-rw-r--r--linux/drivers/media/video/bt8xx/bttv.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv.h b/linux/drivers/media/video/bt8xx/bttv.h
index 17b2add83..1fee79c55 100644
--- a/linux/drivers/media/video/bt8xx/bttv.h
+++ b/linux/drivers/media/video/bt8xx/bttv.h
@@ -217,7 +217,6 @@ struct tvcard
char *name;
unsigned int video_inputs;
unsigned int audio_inputs;
- unsigned int tuner;
unsigned int svhs;
unsigned int digital_mode; // DIGITAL_MODE_CAMERA or DIGITAL_MODE_VIDEO
u32 gpiomask;