diff options
Diffstat (limited to 'sound/usb/line6/pcm.h')
-rw-r--r-- | sound/usb/line6/pcm.h | 57 |
1 files changed, 16 insertions, 41 deletions
diff --git a/sound/usb/line6/pcm.h b/sound/usb/line6/pcm.h index 42d3e6fc2c61..508410adbd51 100644 --- a/sound/usb/line6/pcm.h +++ b/sound/usb/line6/pcm.h | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <sound/pcm.h> | 19 | #include <sound/pcm.h> |
20 | 20 | ||
21 | #include "driver.h" | 21 | #include "driver.h" |
22 | #include "usbdefs.h" | ||
23 | 22 | ||
24 | /* number of URBs */ | 23 | /* number of URBs */ |
25 | #define LINE6_ISO_BUFFERS 2 | 24 | #define LINE6_ISO_BUFFERS 2 |
@@ -66,8 +65,8 @@ | |||
66 | the running flag indicates whether the stream is running. | 65 | the running flag indicates whether the stream is running. |
67 | 66 | ||
68 | For monitor or impulse operations, the driver needs to call | 67 | For monitor or impulse operations, the driver needs to call |
69 | snd_line6_duplex_acquire() or snd_line6_duplex_release() with the | 68 | line6_pcm_acquire() or line6_pcm_release() with the appropriate |
70 | appropriate LINE6_STREAM_* flag. | 69 | LINE6_STREAM_* flag. |
71 | */ | 70 | */ |
72 | 71 | ||
73 | /* stream types */ | 72 | /* stream types */ |
@@ -84,8 +83,8 @@ enum { | |||
84 | }; | 83 | }; |
85 | 84 | ||
86 | struct line6_pcm_properties { | 85 | struct line6_pcm_properties { |
87 | struct snd_pcm_hardware snd_line6_playback_hw, snd_line6_capture_hw; | 86 | struct snd_pcm_hardware playback_hw, capture_hw; |
88 | struct snd_pcm_hw_constraint_ratdens snd_line6_rates; | 87 | struct snd_pcm_hw_constraint_ratdens rates; |
89 | int bytes_per_frame; | 88 | int bytes_per_frame; |
90 | }; | 89 | }; |
91 | 90 | ||
@@ -139,19 +138,13 @@ struct line6_pcm_stream { | |||
139 | }; | 138 | }; |
140 | 139 | ||
141 | struct snd_line6_pcm { | 140 | struct snd_line6_pcm { |
142 | /** | 141 | /* Pointer back to the Line 6 driver data structure */ |
143 | Pointer back to the Line 6 driver data structure. | ||
144 | */ | ||
145 | struct usb_line6 *line6; | 142 | struct usb_line6 *line6; |
146 | 143 | ||
147 | /** | 144 | /* Properties. */ |
148 | Properties. | ||
149 | */ | ||
150 | struct line6_pcm_properties *properties; | 145 | struct line6_pcm_properties *properties; |
151 | 146 | ||
152 | /** | 147 | /* ALSA pcm stream */ |
153 | ALSA pcm stream | ||
154 | */ | ||
155 | struct snd_pcm *pcm; | 148 | struct snd_pcm *pcm; |
156 | 149 | ||
157 | /* protection to state changes of in/out streams */ | 150 | /* protection to state changes of in/out streams */ |
@@ -161,49 +154,31 @@ struct snd_line6_pcm { | |||
161 | struct line6_pcm_stream in; | 154 | struct line6_pcm_stream in; |
162 | struct line6_pcm_stream out; | 155 | struct line6_pcm_stream out; |
163 | 156 | ||
164 | /** | 157 | /* Previously captured frame (for software monitoring) */ |
165 | Previously captured frame (for software monitoring). | ||
166 | */ | ||
167 | unsigned char *prev_fbuf; | 158 | unsigned char *prev_fbuf; |
168 | 159 | ||
169 | /** | 160 | /* Size of previously captured frame (for software monitoring) */ |
170 | Size of previously captured frame (for software monitoring). | ||
171 | */ | ||
172 | int prev_fsize; | 161 | int prev_fsize; |
173 | 162 | ||
174 | /** | 163 | /* Maximum size of USB packet */ |
175 | Maximum size of USB packet. | ||
176 | */ | ||
177 | int max_packet_size; | 164 | int max_packet_size; |
178 | 165 | ||
179 | /** | 166 | /* PCM playback volume (left and right) */ |
180 | PCM playback volume (left and right). | ||
181 | */ | ||
182 | int volume_playback[2]; | 167 | int volume_playback[2]; |
183 | 168 | ||
184 | /** | 169 | /* PCM monitor volume */ |
185 | PCM monitor volume. | ||
186 | */ | ||
187 | int volume_monitor; | 170 | int volume_monitor; |
188 | 171 | ||
189 | /** | 172 | /* Volume of impulse response test signal (if zero, test is disabled) */ |
190 | Volume of impulse response test signal (if zero, test is disabled). | ||
191 | */ | ||
192 | int impulse_volume; | 173 | int impulse_volume; |
193 | 174 | ||
194 | /** | 175 | /* Period of impulse response test signal */ |
195 | Period of impulse response test signal. | ||
196 | */ | ||
197 | int impulse_period; | 176 | int impulse_period; |
198 | 177 | ||
199 | /** | 178 | /* Counter for impulse response test signal */ |
200 | Counter for impulse response test signal. | ||
201 | */ | ||
202 | int impulse_count; | 179 | int impulse_count; |
203 | 180 | ||
204 | /** | 181 | /* Several status bits (see LINE6_FLAG_*) */ |
205 | Several status bits (see LINE6_FLAG_*). | ||
206 | */ | ||
207 | unsigned long flags; | 182 | unsigned long flags; |
208 | }; | 183 | }; |
209 | 184 | ||