[PATCH] [UBUNTU:sound/usb/] usb-audio: increase number of packets per URB
crimsun at fungus.sh.nu
crimsun at fungus.sh.nu
Sat Sep 30 04:00:37 UTC 2006
From 9561f0014461a0956e1f6ddc010f94680ac82f8b Mon Sep 17 00:00:00 2001
From: Daniel T. Chen <crimsun at garnish.localdomain>
Date: Fri, 29 Sep 2006 20:47:37 -0400
Subject: [PATCH] [UBUNTU:sound/usb/] usb-audio: increase number of packets per URB
UpstreamStatus: Added in upstream alsa-kernel hg changeset:
[31e98242d803] http://hg-mirror.alsa-project.org/alsa-kernel?cmd=changeset;node=31e98242d8031218ed3ed7fa62595a88fc8036ca;style=raw
This patch from Clemens Ladisch decreases the USB interrupts rate by
increasing both the default and the maximum number of packets per URB.
Suitable for application to both Dapper and Edgy linux-source.
Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>
---
sound/usb/usbaudio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 6de5b6d..c0b78ce 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -67,7 +67,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEF
static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */
static int vid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; /* Vendor ID for this card */
static int pid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; /* Product ID for this card */
-static int nrpacks = 4; /* max. number of packets per urb */
+static int nrpacks = 8; /* max. number of packets per urb */
static int async_unlink = 1;
module_param_array(index, int, NULL, 0444);
@@ -96,7 +96,7 @@ MODULE_PARM_DESC(async_unlink, "Use asyn
*
*/
-#define MAX_PACKS 10
+#define MAX_PACKS 20
#define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */
#define MAX_URBS 8
#define SYNC_URBS 4 /* always four urbs for sync */
--
1.4.1
--
Daniel T. Chen crimsun at ubuntu.com
GPG key: 0xC88ABDA3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060929/23c6cabf/attachment.sig>
More information about the kernel-team
mailing list