summaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/playback.c
diff options
context:
space:
mode:
authorAndrej Krutak <dev@andree.sk>2016-09-18 20:59:22 +0200
committerTakashi Iwai <tiwai@suse.de>2016-09-19 22:58:50 +0200
commit79faa2b048b23f28a24a7b232d8933cb53df95b7 (patch)
tree0195ebdcd10c70f6e4171fda0aa225c4b6dc7b33 /sound/usb/line6/playback.c
parentALSA: line6: Enable different number of URBs for frame transfers (diff)
downloadlinux-79faa2b048b23f28a24a7b232d8933cb53df95b7.tar.xz
linux-79faa2b048b23f28a24a7b232d8933cb53df95b7.zip
ALSA: line6: Add high-speed USB support
This has two parts: * intervals_per_second setup (high speed needs 8000, instead of 1000) * iso_buffers setup (count of iso buffers depends on USB speed, 2 is not enough for high speed) Signed-off-by: Andrej Krutak <dev@andree.sk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/playback.c')
-rw-r--r--sound/usb/line6/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/playback.c b/sound/usb/line6/playback.c
index 1380facda427..6048d0fe4068 100644
--- a/sound/usb/line6/playback.c
+++ b/sound/usb/line6/playback.c
@@ -151,7 +151,7 @@ static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm)
line6pcm->properties->rates.rats[0].num_min;
const int frame_factor =
line6pcm->properties->rates.rats[0].den *
- (USB_INTERVALS_PER_SECOND / LINE6_ISO_INTERVAL);
+ (line6pcm->line6->intervals_per_second / LINE6_ISO_INTERVAL);
struct urb *urb_out;
index = find_first_zero_bit(&line6pcm->out.active_urbs,