[oe-commits] Richard : jack 0.118.0: Add patch to that changes the jackd defaults for the ALSA driver to values that work when audio capture is required on the BeagleBoard .

git version control git at git.openembedded.org
Sun Aug 1 15:02:08 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4adb2744c8cdc1064b657cdffc4c0f91ff7bf442
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4adb2744c8cdc1064b657cdffc4c0f91ff7bf442

Author: Richard <richarda at x520.(none)>
Date:   Wed Jul 28 21:43:48 2010 +1000

jack 0.118.0: Add patch to that changes the jackd defaults for the ALSA driver to values that work when audio capture is required on the BeagleBoard.

---

 .../jack/files/jack_fix_TWL4030_alsa_capture.patch |   31 ++++++++++++++++++++
 recipes/jack/jack_0.118.0.bb                       |    5 ++-
 2 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/recipes/jack/files/jack_fix_TWL4030_alsa_capture.patch b/recipes/jack/files/jack_fix_TWL4030_alsa_capture.patch
new file mode 100644
index 0000000..77337ff
--- /dev/null
+++ b/recipes/jack/files/jack_fix_TWL4030_alsa_capture.patch
@@ -0,0 +1,31 @@
+--- a/drivers/alsa/alsa_driver.c	2009-05-06 06:36:08.000000000 +1000
++++ b/drivers/alsa/alsa_driver.c	2010-07-28 21:02:57.238101024 +1000
+@@ -2388,7 +2388,7 @@
+ 	strcpy (params[i].name, "period");
+ 	params[i].character  = 'p';
+ 	params[i].type       = JackDriverParamUInt;
+-	params[i].value.ui   = 1024U;
++	params[i].value.ui   = 256U;            /* TWL4030 capture. */
+ 	strcpy (params[i].short_desc, "Frames per period");
+ 	strcpy (params[i].long_desc, params[i].short_desc);
+ 
+@@ -2396,7 +2396,7 @@
+ 	strcpy (params[i].name, "nperiods");
+ 	params[i].character  = 'n';
+ 	params[i].type       = JackDriverParamUInt;
+-	params[i].value.ui   = 2U;
++	params[i].value.ui   = 4U;              /* TWL4030 capture. */
+ 	strcpy (params[i].short_desc, "Number of periods of playback latency");
+ 	strcpy (params[i].long_desc, params[i].short_desc);
+ 
+@@ -2518,8 +2518,8 @@
+ driver_initialize (jack_client_t *client, const JSList * params)
+ {
+         jack_nframes_t srate = 48000;
+-	jack_nframes_t frames_per_interrupt = 1024;
+-	unsigned long user_nperiods = 2;
++	jack_nframes_t frames_per_interrupt = 256;      /* TWL4030 needs small number of frames here. */
++	unsigned long user_nperiods = 4;                /* TWL4030 needs 4 periods to avoid XRuns. */
+ 	char *playback_pcm_name = "hw:0";
+ 	char *capture_pcm_name = "hw:0";
+ 	int hw_monitoring = FALSE;
diff --git a/recipes/jack/jack_0.118.0.bb b/recipes/jack/jack_0.118.0.bb
index b1a01e4..6752c8b 100644
--- a/recipes/jack/jack_0.118.0.bb
+++ b/recipes/jack/jack_0.118.0.bb
@@ -8,7 +8,10 @@ LICENSE = "GPLv2 LGPLv2.1"
 
 DEPENDS = "alsa-lib"
 
-SRC_URI = "http://jackaudio.org/downloads/jack-audio-connection-kit-${PV}.tar.gz"
+PR = "r1"
+
+SRC_URI = "http://jackaudio.org/downloads/jack-audio-connection-kit-${PV}.tar.gz \
+           file://jack_fix_TWL4030_alsa_capture.patch"
 SRC_URI[md5sum] = "d58e29a55f285d54e75134cec8e02a10"
 SRC_URI[sha256sum] = "6aadf38ca98104772fd675bba7adecf72d2a600e17cccfc5d1f7c50f19b722c2"
 





More information about the Openembedded-commits mailing list