Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92209
b: refs/heads/master
c: 6e9fc6b
h: refs/heads/master
i:
  92207: 7ebeb85
v: v3
  • Loading branch information
Daniel Mack authored and Takashi Iwai committed Apr 24, 2008
1 parent eb40f6f commit 757a493
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6849d49c48718def95cf1b74154b9b0aee617c7e
refs/heads/master: 6e9fc6bd5db34a6580e1917bd0fea4b0754c7de8
8 changes: 6 additions & 2 deletions trunk/sound/usb/caiaq/caiaq-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
#define BYTES_PER_SAMPLE 3
#define BYTES_PER_SAMPLE_USB 4
#define MAX_BUFFER_SIZE (128*1024)

#define MAX_ENDPOINT_SIZE 512

#define ENDPOINT_CAPTURE 2
#define ENDPOINT_PLAYBACK 6

Expand Down Expand Up @@ -221,7 +222,10 @@ static int snd_usb_caiaq_pcm_prepare(struct snd_pcm_substream *substream)

bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE)
* bytes_per_sample * CHANNELS_PER_STREAM * dev->n_streams;


if (bpp > MAX_ENDPOINT_SIZE)
bpp = MAX_ENDPOINT_SIZE;

ret = snd_usb_caiaq_set_audio_params(dev, runtime->rate,
runtime->sample_bits, bpp);
if (ret)
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/usb/caiaq/caiaq-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#endif

MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
MODULE_DESCRIPTION("caiaq USB audio, version 1.3.5");
MODULE_DESCRIPTION("caiaq USB audio, version 1.3.6");
MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2},"
"{Native Instruments, RigKontrol3},"
Expand Down

0 comments on commit 757a493

Please sign in to comment.