aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/msp3400.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-09 15:21:37 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 15:21:37 -0500
commit5af0c8f6a09534ebc6c56b4e5d79d0d521364750 (patch)
treeabc3f4ed2281d5113c053997b1fa2e6b44283b38 /drivers/media/video/msp3400.h
parent5b0fa4fff17d944b6a0d4cb35d8e8b5ad0ac3669 (diff)
V4L/DVB (3326): Fix stereo and standard reporting of msp3400 (esp. for radio)
- Add VIDIOC_LOG_STATUS to the radio device ioctl list. - Reduce the confusion between modes and standards - Fix stereo reporting for radio. - Don't set i2c configuration if the chip doesn't support it. - Fix reporting of current standard for radio. 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.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/drivers/media/video/msp3400.h b/drivers/media/video/msp3400.h
index fb44eef5d513..8a05cf500a8c 100644
--- a/drivers/media/video/msp3400.h
+++ b/drivers/media/video/msp3400.h
@@ -57,22 +57,24 @@ extern int stereo_threshold;
57 57
58struct msp_state { 58struct msp_state {
59 int rev1, rev2; 59 int rev1, rev2;
60 int has_nicam; 60 u8 has_nicam;
61 int has_radio; 61 u8 has_radio;
62 int has_headphones; 62 u8 has_headphones;
63 int has_ntsc_jp_d_k3; 63 u8 has_ntsc_jp_d_k3;
64 int has_scart4; 64 u8 has_scart4;
65 int has_scart23_in_scart2_out; 65 u8 has_scart23_in_scart2_out;
66 int has_scart2_out_volume; 66 u8 has_scart2_out_volume;
67 int has_subwoofer; 67 u8 has_i2s_conf;
68 int has_sound_processing; 68 u8 has_subwoofer;
69 int has_virtual_dolby_surround; 69 u8 has_sound_processing;
70 int has_dolby_pro_logic; 70 u8 has_virtual_dolby_surround;
71 u8 has_dolby_pro_logic;
71 72
72 int radio; 73 int radio;
73 int opmode; 74 int opmode;
75 int std;
74 int mode; 76 int mode;
75 v4l2_std_id std; 77 v4l2_std_id v4l2_std;
76 int nicam_on; 78 int nicam_on;
77 int acb; 79 int acb;
78 int in_scart; 80 int in_scart;
@@ -109,7 +111,7 @@ int msp_modus(struct i2c_client *client);
109int msp_sleep(struct msp_state *state, int timeout); 111int msp_sleep(struct msp_state *state, int timeout);
110 112
111/* msp3400-kthreads.c */ 113/* msp3400-kthreads.c */
112const char *msp_standard_mode_name(int mode); 114const char *msp_standard_std_name(int std);
113void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2); 115void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2);
114void msp3400c_setmode(struct i2c_client *client, int type); 116void msp3400c_setmode(struct i2c_client *client, int type);
115void msp3400c_setstereo(struct i2c_client *client, int mode); 117void msp3400c_setstereo(struct i2c_client *client, int mode);