NetBSD Problem Report #35961
From www@NetBSD.org Fri Mar 9 13:57:37 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id E656D63BA19; Fri, 9 Mar 2007 13:57:37 +0000 (UTC)
Message-Id: <20070309135737.E656D63BA19@narn.NetBSD.org>
Date: Fri, 9 Mar 2007 13:57:37 +0000 (UTC)
From: blair.sadewitz@gmail.com
Reply-To: blair.sadewitz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: azalia_mappage() is unimplemented, applications requiring mmap() access do not work, a lot of audio drop-outs or excessive latency, etc.
X-Send-Pr-Version: www-1.0
>Number: 35961
>Category: kern
>Synopsis: azalia_mappage() is unimplemented, applications requiring mmap() access do not work, a lot of audio drop-outs or excessive latency, etc.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 09 14:00:00 +0000 2007
>Closed-Date: Tue Oct 14 15:59:04 +0000 2014
>Last-Modified: Tue Oct 14 15:59:04 +0000 2014
>Originator: Blair Sadewitz
>Release: 4.99.13
>Organization:
>Environment:
NetBSD dexamyl 4.99.13 NetBSD 4.99.13 (DEXAMYL) #0: Fri Mar 9 02:01:15 EST 2007 blair@dexamyl:/usr/src/sys/arch/amd64/compile/DEXAMYL amd64
>Description:
azalia(4) seems to be one of the only audio drivers that do not support mmap() of the DMA buffer. This results in poor audio performance even under moderate system load. I have a Pentium D 3GHz processor with 1GB of RAM, and using both cores--even running processes with pri +20--will result in a buffer underrun and/or other errors that lead to the stream stuttering indefinitely until the stream is restarted.
Also, some audio applications need this functionality to work properly.
>How-To-Repeat:
Try using audio/jack or playing audio under moderate-heavy system load or during disk I/O.
>Fix:
Implement azalia_mappage(). What is different about azalia(4) that makes this difficult? I wouldn't mind if there were only one standard mmap sample rate. It would be nice if the mmap-related ioctl()s (buffer position, etc) were available, though.
Thank you for your attention to this, it is appreciated. Not a high priority, but IMHO it is important.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 07 Sep 2009 18:58:54 +0000
State-Changed-Why:
please try the new hdaudio(4) in current :-)
State-Changed-From-To: feedback->suspended
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Mon, 07 Sep 2009 22:47:00 +0000
State-Changed-Why:
The hdaudio(4) driver has code in place to support this, but AUDIO_PROP_MMAP
capability is not reported as it will not work until port-i386/42010 is
resolved.
From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/35961 CVS commit: src/sys/dev/pci/hdaudio
Date: Fri, 9 May 2014 20:10:49 +0000
Module Name: src
Committed By: jakllsch
Date: Fri May 9 20:10:49 UTC 2014
Modified Files:
src/sys/dev/pci/hdaudio: hdafg.c
Log Message:
Enable AUDIO_PROP_MMAP in hdafg(4).
Addresses PR#48792 and PR#35961.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/hdaudio/hdafg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: suspended->feedback
State-Changed-By: jakllsch@NetBSD.org
State-Changed-When: Fri, 09 May 2014 20:19:06 +0000
State-Changed-Why:
azalia(4) is deprecated, and the replacement hdafg(4) driver should now support mmap
From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: "gnats-bugs" <gnats-bugs@netbsd.org>
Cc:
Subject: Re: kern/35961
Date: Sun, 21 Sep 2014 22:01:45 +1000
Hi,
I have a hdafg supported hdaudio controller.
When using a recent kernel from NetBSD-current kernel from 201409 and
I've found that pulseaudio-5.0 from pkgsrc prefers to use memory mapped
audio.
However I had to disable this in the pulseaudio configuration as the sound
would just loop over the same small samples of the audio I was playing.
So I can say that the mmap changes don't work for me.
Regards,
Nat.
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 14 Oct 2014 15:55:32 +0000
State-Changed-Why:
feedback received
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 14 Oct 2014 15:59:04 +0000
State-Changed-Why:
however, at this point I think this has become a duplicate of 48792.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.