packages: TiMidity++/TiMidity++.spec, TiMidity++/TiMidity++-stop_polling.pa...

evil evil at pld-linux.org
Thu Dec 16 13:38:29 CET 2010


Author: evil                         Date: Thu Dec 16 12:38:29 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added patch to alsaseq server interace that stops in loop polling(saves power/battery) even when idle(constant 99.9 wakeups per second), not its less than 0.1(invisible in powertop) when idle, and goes up to 32 wakeups when playing JazzJackrabbit midis using aplaymidi.

---- Files affected:
packages/TiMidity++:
   TiMidity++.spec (1.89 -> 1.90) , TiMidity++-stop_polling.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/TiMidity++/TiMidity++.spec
diff -u packages/TiMidity++/TiMidity++.spec:1.89 packages/TiMidity++/TiMidity++.spec:1.90
--- packages/TiMidity++/TiMidity++.spec:1.89	Tue Dec  2 14:46:24 2008
+++ packages/TiMidity++/TiMidity++.spec	Thu Dec 16 13:38:24 2010
@@ -16,7 +16,7 @@
 Summary(uk.UTF-8):	Програвач MIDI-файлів та конвертор їх в WAV формат
 Name:		TiMidity++
 Version:	2.13.2
-Release:	5
+Release:	6
 License:	GPL
 Group:		Applications/Sound
 Source0:	http://dl.sourceforge.net/timidity/%{name}-%{version}.tar.bz2
@@ -33,6 +33,7 @@
 Patch0:		%{name}-detach.patch
 Patch1:		%{name}-gcc4.patch
 Patch2:		%{name}-configure.patch
+Patch3:		%{name}-stop_polling.patch
 URL:		http://timidity.sourceforge.net/
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
 %{?with_arts:BuildRequires:	arts-devel}
@@ -234,6 +235,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p0
+%patch3 -p1
 
 for f in doc/ja_JP.eucJP/README*; do
 	mv -f $f ${f}.ja
@@ -411,6 +413,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.90  2010/12/16 12:38:24  evil
+- added patch to alsaseq server interace that stops in loop polling(saves power/battery) even when idle(constant 99.9 wakeups per second), not its less than 0.1(invisible in powertop) when idle, and goes up to 32 wakeups when playing JazzJackrabbit midis using aplaymidi.
+
 Revision 1.89  2008/12/02 13:46:24  hawk
 - release 5
 

================================================================
Index: packages/TiMidity++/TiMidity++-stop_polling.patch
diff -u /dev/null packages/TiMidity++/TiMidity++-stop_polling.patch:1.1
--- /dev/null	Thu Dec 16 13:38:29 2010
+++ packages/TiMidity++/TiMidity++-stop_polling.patch	Thu Dec 16 13:38:24 2010
@@ -0,0 +1,34 @@
+--- TiMidity++-2.13.2/interface/alsaseq_c.c.orig	2010-12-16 13:26:54.000000000 +0100
++++ TiMidity++-2.13.2/interface/alsaseq_c.c	2010-12-16 14:15:24.486618509 +0100
+@@ -505,6 +505,8 @@
+ 
+ static void doit(struct seq_context *ctxp)
+ {
++	fd_set rfds;
++	struct timeval timeout;
+ 	for (;;) {
+ 		while (snd_seq_event_input_pending(ctxp->handle, 1)) {
+ 			if (do_sequencer(ctxp))
+@@ -532,15 +534,17 @@
+ 			play_event(&ev);
+ 			aq_fill_nonblocking();
+ 		}
+-		if (! ctxp->active || ! IS_STREAM_TRACE) {
+-			fd_set rfds;
+-			struct timeval timeout;
+-			FD_ZERO(&rfds);
+-			FD_SET(ctxp->fd, &rfds);
++		
++		FD_ZERO(&rfds);
++		FD_SET(ctxp->fd, &rfds);
++		if (ctxp->active) {
+ 			timeout.tv_sec = 0;
+ 			timeout.tv_usec = 10000; /* 10ms */
+ 			if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0)
+ 				goto __done;
++		} else {
++			if (select(ctxp->fd + 1, &rfds, NULL, NULL, NULL) < 0)
++				goto __done;
+ 		}
+ 	}
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/TiMidity++/TiMidity++.spec?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list