diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-09 15:21:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 15:21:37 -0500 |
commit | 5af0c8f6a09534ebc6c56b4e5d79d0d521364750 (patch) | |
tree | abc3f4ed2281d5113c053997b1fa2e6b44283b38 /drivers/media/video/msp3400.h | |
parent | 5b0fa4fff17d944b6a0d4cb35d8e8b5ad0ac3669 (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.h | 28 |
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 | ||
58 | struct msp_state { | 58 | struct 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); | |||
109 | int msp_sleep(struct msp_state *state, int timeout); | 111 | int msp_sleep(struct msp_state *state, int timeout); |
110 | 112 | ||
111 | /* msp3400-kthreads.c */ | 113 | /* msp3400-kthreads.c */ |
112 | const char *msp_standard_mode_name(int mode); | 114 | const char *msp_standard_std_name(int std); |
113 | void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2); | 115 | void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2); |
114 | void msp3400c_setmode(struct i2c_client *client, int type); | 116 | void msp3400c_setmode(struct i2c_client *client, int type); |
115 | void msp3400c_setstereo(struct i2c_client *client, int mode); | 117 | void msp3400c_setstereo(struct i2c_client *client, int mode); |