Gitweb:
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=81c4899f7ef3675fdc574de2671ff9fa45996cc5
Commit: 81c4899f7ef3675fdc574de2671ff9fa45996cc5
Parent: 4d69d756d19a4f457749f3667ad7fc8984bba15c
Author: Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Thu May 3 12:26:14 2007 +0200
Committer: Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Fri May 11 16:56:14 2007 +0200
[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 <[EMAIL PROTECTED]>
Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
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 78efcff..8ebc1ad 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
}
/* set the period time minimum 1ms */
+ /* FIXME: high-speed mode allows 125us minimum period, but many parts
+ * in the current code assume the 1ms period.
+ */
snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME,
- snd_usb_get_speed(subs->dev) ==
USB_SPEED_FULL ?
-
- 1000 * MIN_PACKS_URB : 125 * MIN_PACKS_URB,
+ 1000 * MIN_PACKS_URB,
/*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX);
if (check_hw_params_convention(subs)) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html