diff options
Diffstat (limited to 'sound/usb/usbaudio.h')
-rw-r--r-- | sound/usb/usbaudio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index 9826337c76b8..152216738cce 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h | |||
@@ -208,6 +208,16 @@ struct snd_usb_midi_endpoint_info { | |||
208 | /* | 208 | /* |
209 | */ | 209 | */ |
210 | 210 | ||
211 | /*E-mu USB samplerate control quirk*/ | ||
212 | enum { | ||
213 | EMU_QUIRK_SR_44100HZ = 0, | ||
214 | EMU_QUIRK_SR_48000HZ, | ||
215 | EMU_QUIRK_SR_88200HZ, | ||
216 | EMU_QUIRK_SR_96000HZ, | ||
217 | EMU_QUIRK_SR_176400HZ, | ||
218 | EMU_QUIRK_SR_192000HZ | ||
219 | }; | ||
220 | |||
211 | #define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) | 221 | #define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) |
212 | #define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) | 222 | #define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) |
213 | #define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) | 223 | #define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) |
@@ -233,6 +243,9 @@ void snd_usbmidi_input_stop(struct list_head* p); | |||
233 | void snd_usbmidi_input_start(struct list_head* p); | 243 | void snd_usbmidi_input_start(struct list_head* p); |
234 | void snd_usbmidi_disconnect(struct list_head *p); | 244 | void snd_usbmidi_disconnect(struct list_head *p); |
235 | 245 | ||
246 | void snd_emuusb_set_samplerate(struct snd_usb_audio *chip, | ||
247 | unsigned char samplerate_id); | ||
248 | |||
236 | /* | 249 | /* |
237 | * retrieve usb_interface descriptor from the host interface | 250 | * retrieve usb_interface descriptor from the host interface |
238 | * (conditional for compatibility with the older API) | 251 | * (conditional for compatibility with the older API) |