Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 15:32:09 -0400 (EDT)
From:      michael johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        riggs@rrr.de
Subject:    ports/67134: [PATCH] multimedia/mplayer: [add knob for WITH_KERN_HZ]
Message-ID:  <20040524193209.9299F68D8@ahze.ahze.net>
Resent-Message-ID: <200405241940.i4OJeMkJ090395@freefall.freebsd.org>

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

>Number:         67134
>Category:       ports
>Synopsis:       [PATCH] multimedia/mplayer: [add knob for WITH_KERN_HZ]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 24 12:40:21 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #45: Mon May  3 05:09:04 EDT
>Description:
- add knob for WITH_KERN_HZ
  this can be useful if you have a slower processor when using RTC. 

Port maintainer (riggs@rrr.de) is cc'd.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- mplayer-0.92.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/mplayer/Makefile,v
retrieving revision 1.91
diff -u -r1.91 Makefile
--- Makefile	16 Apr 2004 20:24:22 -0000	1.91
+++ Makefile	24 May 2004 19:08:08 -0000
@@ -89,6 +89,13 @@
 # defaulting to usleep() timing. This can improve cpu load as well
 # as run-time accuracy.
 #
+# WITH_KERN_HZ
+# default: 1024
+# This option allows you to control the default kern.hz when using RTC support.
+# If you have a older/slower processor you may want to lower the default level.
+# ie. 512 seems to produce better quality video on a PII 400MHz than 1024 does
+# CAUTION: lower than 512 may produce jerky video.
+#
 # Feature options:
 # These options influence, which libraries mplayer is linked to.
 # Note: The libraries are needed to play the particular files under
@@ -567,6 +574,12 @@
 .endif
 .endif
 
+.if defined(WITH_KERN_HZ)
+DEFAULT_KERN_HZ=${WITH_KERN_HZ}
+.else
+DEFAULT_KERN_HZ=1024
+.endif
+
 # "enable" build for other archs
 .if ${ARCH} == "i386"
 .if !defined(WITHOUT_RUNTIME_CPUDETECTION)
@@ -648,6 +661,9 @@
 	@${REINPLACE_CMD} -e \
 		's|rtc_fd|rtc|' \
 		${WRKSRC}/mplayer.c
+	@${REINPLACE_CMD} -e \
+		's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \
+		${WRKSRC}/mplayer.c
 .endif
 
 pre-configure:
--- mplayer-0.92.1_1.patch ends here ---

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



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