diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-07 09:18:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:42 -0400 |
commit | 1b8dac150a01e2312d8e3fedd6462a0ec34c96d0 (patch) | |
tree | ba8fd678a4afb4bd72960e1737f857991fd00a19 /drivers/media/video/tea6420.h | |
parent | d30e21ddcdc948ecedfb46a0ed021d57f310a6f3 (diff) |
V4L/DVB (10499): saa7146: convert saa7146 and mxb in particular to v4l2_subdev.
Modified mxb to load the i2c modules through v4l2_subdev. So no more probing.
Modified tea6415c and tea6420 to use the standard routing ops to do the
routing, rather than using private commands. Dropped the private commands
from tda9840 (they were never used except during initialization of the
module).
Added saa7146 support for VIDIOC_DBG_G_CHIP_IDENT.
Converted saa5246a and saa5249 to v4l2_subdev.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tea6420.h')
-rw-r--r-- | drivers/media/video/tea6420.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/drivers/media/video/tea6420.h b/drivers/media/video/tea6420.h index 5ef7c18e0c54..4aa3edb3e193 100644 --- a/drivers/media/video/tea6420.h +++ b/drivers/media/video/tea6420.h | |||
@@ -1,17 +1,24 @@ | |||
1 | #ifndef __INCLUDED_TEA6420__ | 1 | #ifndef __INCLUDED_TEA6420__ |
2 | #define __INCLUDED_TEA6420__ | 2 | #define __INCLUDED_TEA6420__ |
3 | 3 | ||
4 | /* possible addresses */ | 4 | /* input pins */ |
5 | #define I2C_ADDR_TEA6420_1 0x4c | 5 | #define TEA6420_OUTPUT1 1 |
6 | #define I2C_ADDR_TEA6420_2 0x4d | 6 | #define TEA6420_OUTPUT2 2 |
7 | #define TEA6420_OUTPUT3 3 | ||
8 | #define TEA6420_OUTPUT4 4 | ||
7 | 9 | ||
8 | struct tea6420_multiplex | 10 | /* output pins */ |
9 | { | 11 | #define TEA6420_INPUT1 1 |
10 | int in; /* input of audio switch */ | 12 | #define TEA6420_INPUT2 2 |
11 | int out; /* output of audio switch */ | 13 | #define TEA6420_INPUT3 3 |
12 | int gain; /* gain of connection */ | 14 | #define TEA6420_INPUT4 4 |
13 | }; | 15 | #define TEA6420_INPUT5 5 |
16 | #define TEA6420_INPUT6 6 | ||
14 | 17 | ||
15 | #define TEA6420_SWITCH _IOW('v',1,struct tea6420_multiplex) | 18 | /* gain on the output pins, ORed with the output pin */ |
19 | #define TEA6420_GAIN0 0x00 | ||
20 | #define TEA6420_GAIN2 0x20 | ||
21 | #define TEA6420_GAIN4 0x40 | ||
22 | #define TEA6420_GAIN6 0x60 | ||
16 | 23 | ||
17 | #endif | 24 | #endif |