diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-05-02 06:09:48 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-05-11 10:56:13 -0400 |
commit | 6b9fa70a73e8627c2823ee95e7c55d77e0716f1c (patch) | |
tree | e8c9e348a63e9282f9ab48021b2b38e01543cd7b /sound | |
parent | 27fe0f4b985d8427d93ff6c9457e198ab8ffe035 (diff) |
[ALSA] usb-audio - Fix the minimum period size per transfer mode
The minimal period size is 125us for high-speed mode while
1ms for full-speed mode.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/usbaudio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index b6d886373bb0..78efcffce8d1 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -1879,7 +1879,9 @@ static int setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substre | |||
1879 | 1879 | ||
1880 | /* set the period time minimum 1ms */ | 1880 | /* set the period time minimum 1ms */ |
1881 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, | 1881 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, |
1882 | 1000 * MIN_PACKS_URB, | 1882 | snd_usb_get_speed(subs->dev) == USB_SPEED_FULL ? |
1883 | |||
1884 | 1000 * MIN_PACKS_URB : 125 * MIN_PACKS_URB, | ||
1883 | /*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX); | 1885 | /*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX); |
1884 | 1886 | ||
1885 | if (check_hw_params_convention(subs)) { | 1887 | if (check_hw_params_convention(subs)) { |