Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 22:09:42 -0400 (EDT)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38720: audio/grip: MAINTAINER UPDATE poll for CD every 10 seconds to cut annoying kernel messages from driver
Message-ID:  <200205300209.g4U29gPU011281@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         38720
>Category:       ports
>Synopsis:       audio/grip: MAINTAINER UPDATE poll for CD every 10 seconds to cut annoying kernel messages from driver
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 29 19:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.6-RC i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.6-RC FreeBSD 4.6-RC #1: Sun May 26 13:08:49 EDT 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386

>Description:

Normally grip polls every second to see if you fed it a cd. This means lots of annoying kernel messages. Patch reduces this to every 10 seconds, thus cutting kernel messages by an order of magnitude with little user inconvenience.

>How-To-Repeat:
>Fix:

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: audio/grip/Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/grip/Makefile,v
retrieving revision 1.12
diff -u -3 -r1.12 Makefile
--- audio/grip/Makefile	20 Apr 2002 15:32:40 -0000	1.12
+++ audio/grip/Makefile	30 May 2002 01:52:14 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	grip
 PORTVERSION=	3.0.0
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=grip
Index: audio/grip/files/patch-src-grip.c
===================================================================
RCS file: /home/ncvs/ports/audio/grip/files/patch-src-grip.c,v
retrieving revision 1.1
diff -u -3 -r1.1 patch-src-grip.c
--- audio/grip/files/patch-src-grip.c	2 May 2002 01:37:47 -0000	1.1
+++ audio/grip/files/patch-src-grip.c	30 May 2002 01:58:07 -0000
@@ -1,5 +1,5 @@
---- src/grip.c.orig	Wed May  1 18:30:22 2002
-+++ src/grip.c	Wed May  1 18:30:33 2002
+--- src/grip.c.orig	Sun Mar 10 21:59:44 2002
++++ src/grip.c	Wed May 29 21:57:19 2002
 @@ -144,7 +144,7 @@
  
    app=gnome_app_new(PACKAGE,_("Grip"));
@@ -9,3 +9,29 @@
  
    gtk_object_set_user_data(GTK_OBJECT(app),(gpointer)ginfo);
  
+@@ -511,8 +511,10 @@
+   if(ginfo->rewinding) Rewind(ginfo);
+ 
+ #ifdef GRIPCD
+-  if(!ginfo->have_disc)
+-    CheckNewDisc(ginfo);
++  if (!(time(0) % 10)) {
++    if(!ginfo->have_disc)
++      CheckNewDisc(ginfo);
++  }
+ 
+   if(ginfo->auto_eject_countdown && !(--ginfo->auto_eject_countdown))
+     EjectDisc(&(ginfo->disc));
+@@ -522,8 +524,10 @@
+   if(ginfo->ripping|ginfo->encoding) UpdateRipProgress(ginfo);
+ 
+   if(!ginfo->ripping) {
+-    if(!ginfo->have_disc)
+-      CheckNewDisc(ginfo);
++    if (!(time(0) % 10)) {
++      if(!ginfo->have_disc)
++	CheckNewDisc(ginfo);
++    }
+     
+     UpdateDisplay(ginfo);
+   }
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205300209.g4U29gPU011281>