diff options
author | Jonathan Liu | 2018-08-14 01:07:40 +1000 |
---|---|---|
committer | Jonathan Liu | 2018-08-14 01:07:40 +1000 |
commit | 22f295204d603a32dd3cdb79b2699a4febc3a99d (patch) | |
tree | 925f6dfb82efe307800d9dbabfa67307ecc6a63e | |
parent | 25f54b5a6ebb2140772cce495f5861f7e1d3f600 (diff) | |
download | aur-22f295204d603a32dd3cdb79b2699a4febc3a99d.tar.gz |
Increase SYNC_URBS to 2
Audio can become unstable with SYNC_URBS set to 1.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | lowlatency.patch | 12 |
3 files changed, 9 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = snd-usb-audio-lowlatency-dkms pkgdesc = snd-usb-audio kernel module modified for low latency pkgver = 4.17.14 - pkgrel = 2 + pkgrel = 3 url = https://www.kernel.org/ arch = any license = GPL2 @@ -15,7 +15,7 @@ pkgbase = snd-usb-audio-lowlatency-dkms sha256sums = 9faa1dd896eaea961dc6e886697c0b3301277102e5bc976b2758f9a62d3ccd13 sha256sums = bf4d95df98dc6197024bc2a7c8a8ef5fd3b21495298c7a7a5dbd63c159ea9f17 sha256sums = 69f325c3af92c4098c9d118b2eab7de76eba691677864f714697bce5f47005e2 - sha256sums = 803a36109e3f0ee55c4f2f1ae32bb4cc27f78b05a4bf758ec52c1b455a5cb026 + sha256sums = c2b7784899d184b142c5969c1be17cc949f11f4e59fbe5b1a8ffe062a1c4a88f pkgname = snd-usb-audio-lowlatency-dkms @@ -3,7 +3,7 @@ pkgname=snd-usb-audio-lowlatency-dkms _basepkgname=snd-usb-audio-lowlatency _srcname=linux-4.17 pkgver=4.17.14 -pkgrel=2 +pkgrel=3 pkgdesc="snd-usb-audio kernel module modified for low latency" arch=('any') url="https://www.kernel.org/" @@ -22,7 +22,7 @@ validpgpkeys=( sha256sums=('9faa1dd896eaea961dc6e886697c0b3301277102e5bc976b2758f9a62d3ccd13' 'bf4d95df98dc6197024bc2a7c8a8ef5fd3b21495298c7a7a5dbd63c159ea9f17' '69f325c3af92c4098c9d118b2eab7de76eba691677864f714697bce5f47005e2' - '803a36109e3f0ee55c4f2f1ae32bb4cc27f78b05a4bf758ec52c1b455a5cb026') + 'c2b7784899d184b142c5969c1be17cc949f11f4e59fbe5b1a8ffe062a1c4a88f') prepare() { cd "${_srcname}" diff --git a/lowlatency.patch b/lowlatency.patch index 2e1d479fac14..9c3a7b603d5a 100644 --- a/lowlatency.patch +++ b/lowlatency.patch @@ -1,6 +1,6 @@ --- a/sound/usb/card.h +++ b/sound/usb/card.h -@@ -3,11 +3,11 @@ +@@ -3,10 +3,10 @@ #define __USBAUDIO_CARD_H #define MAX_NR_RATES 1024 @@ -8,12 +8,10 @@ -#define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */ -#define MAX_URBS 12 -#define SYNC_URBS 4 /* always four urbs for sync */ --#define MAX_QUEUE 18 /* try not to exceed this queue length, in ms */ +#define MAX_PACKS 1 /* per URB */ -+#define MAX_PACKS_HS (MAX_PACKS * 1) /* in high speed mode */ -+#define MAX_URBS 1 -+#define SYNC_URBS 1 /* always four urbs for sync */ -+#define MAX_QUEUE 1 /* try not to exceed this queue length, in ms */ ++#define MAX_PACKS_HS MAX_PACKS /* in high speed mode */ ++#define MAX_URBS 2 ++#define SYNC_URBS MAX_URBS + #define MAX_QUEUE 18 /* try not to exceed this queue length, in ms */ struct audioformat { - struct list_head list; |