From owner-freebsd-multimedia Mon Mar 10 8:29:46 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34EA537B401; Mon, 10 Mar 2003 08:29:44 -0800 (PST) Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4127543F3F; Mon, 10 Mar 2003 08:29:39 -0800 (PST) (envelope-from nospam@hiltonbsd.com) Received: from [209.224.32.137] (helo=daggar.sbgnet.net) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 18sQ9h-0002R3-00; Mon, 10 Mar 2003 10:29:37 -0600 Date: Mon, 10 Mar 2003 10:29:52 -0600 From: Stephen Hilton To: Mario Sergio Fujikawa Ferreira Cc: freebsd-multimedia@FreeBSD.ORG, eta@lclark.edu Subject: Re: XFree86 4.3.0 and Ogle problems (SOLVED) Message-Id: <20030310102952.4f90bfae.nospam@hiltonbsd.com> In-Reply-To: <20030309224827.83555.qmail@exxodus.fedaykin.here> References: <20030307115331.60e8c169.nospam@hiltonbsd.com> <20030307132513.1daa8d8b.nospam@hiltonbsd.com> <20030308155929.5fc8fb17.nospam@hiltonbsd.com> <20030309161912.5407.qmail@exxodus.fedaykin.here> <20030309142855.4decdf61.nospam@hiltonbsd.com> <20030309224827.83555.qmail@exxodus.fedaykin.here> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 9 Mar 2003 19:48:05 -0300 Mario Sergio Fujikawa Ferreira wrote: > Hi, > > I worked with Ogle developer Bjrn Englund about this. > > On Sun, Mar 09, 2003 at 02:28:33PM -0600, Stephen Hilton wrote: > > [snip] > > > #!!#!!#!!#!!!display: frame rate: 29.207 fps > > !display: frame rate: 29.531 fps > > +SNDCTL_DSP_SETFRAGMENT: Invalid argument > > SNDCTL_DSP_SETFMT: Invalid argument > > FATAL[ogle_audio]: ogle_ao_init: ----!#!#!!#!!#!!#!!#-!!#!!#!!#!-!#!!#!-!#!!#!!#!!--#!!#!!-!!#!!#!!#!!-#!!!!#!!-#-!!#!!#!!#!!#!!#!!!-!#!!#!!#!!!!#-!!#!!!!#!!#!-!!!#!!#!!--#!!#!!!!#!!#!!#!!--##!!!!#!!#!!#!!#-!!#!!#!!#!!###!!#!!#!!#!!#!!##!!#-!!#!!#!!-#!!#!-!#-!!#!!#!!#!!#-!!#!!#!!#!!#!!#!!#!!-#!!#!!-#!!#!-!#!!#!-!#!!#!!-###!!#!!#-!!#!!##!!-#!!#!!#!!#-!!#!!#!!-#-!!#!!#!!#--!!#!!#!!-!!#!!#!--!#!!#!!#!!#!!#-!!###!-!-!#!--#---!!##!!#!!#!!#SNDCTL_DSP_SETFRAGMENT: Invalid argument > > [snip] > > You were very fortunate (or, unfortunate hehe) that I have > the exact same audio chipset. I was able to reproduce the problem > with a DVD. We tracked this down to a audio driver problem from the > audio/aureal-kmod port. We're blaming the driver since no one else > complained about this. The audio driver should be the best person > to let us know what is wrong. > > Diagnostic. Both SNDCTL_DSP_SETFRAGMENT and SNDCTL_DSP_SETFMT > are due to a fail from the aureal audio driver to reinitialize the > driver after a SNDCTL_DSP_SYNC call. Instead of using that call, I > replaced it with a workaround: closing then opening again the audio > device. This fixed it but there are some issues with this approach. > Therefore, we should investigate if the driver author can work around > this. > > I've attached a patch that should fix this problem temporarily. > Furthermore, it adds a lot of debug output. > > 1) copy the ogle port somewhere > > # cp -Rp /usr/ports/multimedia/ogle /tmp > > 2) copy the patch to this temporary port copy > > # cp patch-libogleao::oss_audio.c /tmp/ogle/files > > 3) uninstall ogle > > 4) install the temporary ogle port copy > > # cd /tmp/ogle && make install > > > Let me know how this works out. > > Regards, > > -- > Mario S F Ferreira - DF - Brazil - "I guess this is a signature." > Computer Science Undergraduate | FreeBSD Committer | CS Developer > flames to beloved devnull@someotherworldbeloworabove.org > feature, n: a documented bug | bug, n: an undocumented feature > Mario, The patch has fixed the problem with my Aureal Vortex 2 audio and ogle 9.0 :-) Thanks to Bjrn Englund and yourself for the help on this! Regards, Stephen Hilton nospam@hiltonbsd.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message