diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/caiaq/caiaq-audio.c | 8 | ||||
-rw-r--r-- | sound/usb/caiaq/caiaq-device.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sound/usb/caiaq/caiaq-audio.c b/sound/usb/caiaq/caiaq-audio.c index ebf32818a16d..24970a5c888f 100644 --- a/sound/usb/caiaq/caiaq-audio.c +++ b/sound/usb/caiaq/caiaq-audio.c | |||
@@ -39,7 +39,8 @@ | |||
39 | #define BYTES_PER_SAMPLE 3 | 39 | #define BYTES_PER_SAMPLE 3 |
40 | #define BYTES_PER_SAMPLE_USB 4 | 40 | #define BYTES_PER_SAMPLE_USB 4 |
41 | #define MAX_BUFFER_SIZE (128*1024) | 41 | #define MAX_BUFFER_SIZE (128*1024) |
42 | 42 | #define MAX_ENDPOINT_SIZE 512 | |
43 | |||
43 | #define ENDPOINT_CAPTURE 2 | 44 | #define ENDPOINT_CAPTURE 2 |
44 | #define ENDPOINT_PLAYBACK 6 | 45 | #define ENDPOINT_PLAYBACK 6 |
45 | 46 | ||
@@ -221,7 +222,10 @@ static int snd_usb_caiaq_pcm_prepare(struct snd_pcm_substream *substream) | |||
221 | 222 | ||
222 | bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) | 223 | bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) |
223 | * bytes_per_sample * CHANNELS_PER_STREAM * dev->n_streams; | 224 | * bytes_per_sample * CHANNELS_PER_STREAM * dev->n_streams; |
224 | 225 | ||
226 | if (bpp > MAX_ENDPOINT_SIZE) | ||
227 | bpp = MAX_ENDPOINT_SIZE; | ||
228 | |||
225 | ret = snd_usb_caiaq_set_audio_params(dev, runtime->rate, | 229 | ret = snd_usb_caiaq_set_audio_params(dev, runtime->rate, |
226 | runtime->sample_bits, bpp); | 230 | runtime->sample_bits, bpp); |
227 | if (ret) | 231 | if (ret) |
diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c index 379e6082756f..e97d8b2ac16a 100644 --- a/sound/usb/caiaq/caiaq-device.c +++ b/sound/usb/caiaq/caiaq-device.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 44 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
45 | MODULE_DESCRIPTION("caiaq USB audio, version 1.3.5"); | 45 | MODULE_DESCRIPTION("caiaq USB audio, version 1.3.6"); |
46 | MODULE_LICENSE("GPL"); | 46 | MODULE_LICENSE("GPL"); |
47 | MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2}," | 47 | MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2}," |
48 | "{Native Instruments, RigKontrol3}," | 48 | "{Native Instruments, RigKontrol3}," |