diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-05-03 06:26:14 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-05-11 10:56:14 -0400 |
commit | 81c4899f7ef3675fdc574de2671ff9fa45996cc5 (patch) | |
tree | eaf295ec2f7a964588737d9c3deeefc1084bc943 | |
parent | 4d69d756d19a4f457749f3667ad7fc8984bba15c (diff) |
[ALSA] usbaudio - Revert the minimal period size fix patch
The last patch didn't really work (false report).
Although the hardware supports 125us minimum period, the current
usb-audio driver code assumes the 1ms period in many places.
Rollback the change.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r-- | sound/usb/usbaudio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index 78efcffce8d1..8ebc1adb5ed9 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -1878,10 +1878,11 @@ static int setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substre | |||
1878 | } | 1878 | } |
1879 | 1879 | ||
1880 | /* set the period time minimum 1ms */ | 1880 | /* set the period time minimum 1ms */ |
1881 | /* FIXME: high-speed mode allows 125us minimum period, but many parts | ||
1882 | * in the current code assume the 1ms period. | ||
1883 | */ | ||
1881 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, | 1884 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, |
1882 | snd_usb_get_speed(subs->dev) == USB_SPEED_FULL ? | 1885 | 1000 * MIN_PACKS_URB, |
1883 | |||
1884 | 1000 * MIN_PACKS_URB : 125 * MIN_PACKS_URB, | ||
1885 | /*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX); | 1886 | /*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX); |
1886 | 1887 | ||
1887 | if (check_hw_params_convention(subs)) { | 1888 | if (check_hw_params_convention(subs)) { |