diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-09 15:21:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 15:21:32 -0500 |
commit | 7560d7a4f9add362d60d4513033cf522c37adeea (patch) | |
tree | ca408b9b374f641373f57650bd5f462a64b810fe /drivers/media/video/msp3400.h | |
parent | 3d7d027a9bf41437aa93baf14a1aada521ad9b12 (diff) |
V4L/DVB (3317): msp3400: use v4l2_std_id and determine chip capabilities.
- Replace old norm by the v4l2_std_id values.
- Add code to correctly detect the various capabilities of the
various msp chips. It's not yet used, that's going to be the next step.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/msp3400.h')
-rw-r--r-- | drivers/media/video/msp3400.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/drivers/media/video/msp3400.h b/drivers/media/video/msp3400.h index a88a22e37e64..70327506f895 100644 --- a/drivers/media/video/msp3400.h +++ b/drivers/media/video/msp3400.h | |||
@@ -57,10 +57,21 @@ extern int stereo_threshold; | |||
57 | 57 | ||
58 | struct msp_state { | 58 | struct msp_state { |
59 | int rev1, rev2; | 59 | int rev1, rev2; |
60 | 60 | int has_nicam; | |
61 | int has_radio; | ||
62 | int has_headphones; | ||
63 | int has_ntsc_jp_d_k3; | ||
64 | int has_scart4; | ||
65 | int has_scart23_in_scart2_out; | ||
66 | int has_subwoofer; | ||
67 | int has_sound_processing; | ||
68 | int has_virtual_dolby_surround; | ||
69 | int has_dolby_pro_logic; | ||
70 | |||
71 | int radio; | ||
61 | int opmode; | 72 | int opmode; |
62 | int mode; | 73 | int mode; |
63 | int norm; | 74 | v4l2_std_id std; |
64 | int stereo; | 75 | int stereo; |
65 | int nicam_on; | 76 | int nicam_on; |
66 | int acb; | 77 | int acb; |
@@ -85,11 +96,6 @@ struct msp_state { | |||
85 | int watch_stereo:1; | 96 | int watch_stereo:1; |
86 | }; | 97 | }; |
87 | 98 | ||
88 | #define VIDEO_MODE_RADIO 16 /* norm magic for radio mode */ | ||
89 | |||
90 | #define HAVE_NICAM(state) (((state->rev2 >> 8) & 0xff) != 0) | ||
91 | #define HAVE_RADIO(state) ((state->rev1 & 0x0f) >= 'G'-'@') | ||
92 | |||
93 | /* msp3400-driver.c */ | 99 | /* msp3400-driver.c */ |
94 | int msp_write_dem(struct i2c_client *client, int addr, int val); | 100 | int msp_write_dem(struct i2c_client *client, int addr, int val); |
95 | int msp_write_dsp(struct i2c_client *client, int addr, int val); | 101 | int msp_write_dsp(struct i2c_client *client, int addr, int val); |
@@ -99,8 +105,7 @@ int msp_reset(struct i2c_client *client); | |||
99 | void msp_set_scart(struct i2c_client *client, int in, int out); | 105 | void msp_set_scart(struct i2c_client *client, int in, int out); |
100 | void msp_set_mute(struct i2c_client *client); | 106 | void msp_set_mute(struct i2c_client *client); |
101 | void msp_set_audio(struct i2c_client *client); | 107 | void msp_set_audio(struct i2c_client *client); |
102 | int msp_modus(struct i2c_client *client, int norm); | 108 | int msp_modus(struct i2c_client *client); |
103 | int msp_standard(int norm); | ||
104 | int msp_sleep(struct msp_state *state, int timeout); | 109 | int msp_sleep(struct msp_state *state, int timeout); |
105 | 110 | ||
106 | /* msp3400-kthreads.c */ | 111 | /* msp3400-kthreads.c */ |