aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/au0828/au0828.h
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 03:00:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 12:43:25 -0300
commitf1add5b5ec2a6efaa0f5648d0dc2c56d83a3ecf8 (patch)
tree2d44c29f61576e3b6ac88219a726415d9edd3a3b /drivers/media/video/au0828/au0828.h
parent4ff5ed44f84aed6727ec226853a1c6b03c36db5e (diff)
downloadkernel_samsung_smdk4412-f1add5b5ec2a6efaa0f5648d0dc2c56d83a3ecf8.zip
kernel_samsung_smdk4412-f1add5b5ec2a6efaa0f5648d0dc2c56d83a3ecf8.tar.gz
kernel_samsung_smdk4412-f1add5b5ec2a6efaa0f5648d0dc2c56d83a3ecf8.tar.bz2
V4L/DVB (11070): au0828: Rework the way the analog video binding occurs
Rework the way boards are managed so that we can change the board description based on the Hauppauge eeprom (modeled after cx88-cards.c). Also, make sure that we don't load the analog stack if there are no analog inputs defined in the board profile. Thanks to Michael Krufky <mkrufky@linuxtv.org> for providing information on the various ways different Hauppauge boards can be configured. Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/au0828/au0828.h')
-rw-r--r--drivers/media/video/au0828/au0828.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/au0828/au0828.h b/drivers/media/video/au0828/au0828.h
index 3b8e3e9..2f48ec2 100644
--- a/drivers/media/video/au0828/au0828.h
+++ b/drivers/media/video/au0828/au0828.h
@@ -83,6 +83,8 @@ struct au0828_input {
struct au0828_board {
char *name;
+ unsigned int tuner_type;
+ unsigned char tuner_addr;
struct au0828_input input[AU0828_MAX_INPUT];
};
@@ -105,7 +107,7 @@ enum au0828_stream_state {
STREAM_ON
};
-#define AUVI_INPUT(nr) (&au0828_boards[dev->board].input[nr])
+#define AUVI_INPUT(nr) (dev->board.input[nr])
/* device state */
enum au0828_dev_state {
@@ -179,7 +181,8 @@ struct au0828_dmaqueue {
struct au0828_dev {
struct mutex mutex;
struct usb_device *usbdev;
- int board;
+ int boardnr;
+ struct au0828_board board;
u8 ctrlmsg[64];
/* I2C */