NetBSD Problem Report #53028
From www@NetBSD.org Wed Feb 14 14:12:56 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1561B7A1BC
for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Feb 2018 14:12:56 +0000 (UTC)
Message-Id: <20180214141255.424E47A222@mollari.NetBSD.org>
Date: Wed, 14 Feb 2018 14:12:55 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: hdaudio default latency too high, mpv spins at 100% CPU playing audio
X-Send-Pr-Version: www-1.0
>Number: 53028
>Category: kern
>Synopsis: hdaudio default latency too high, mpv spins at 100% CPU playing audio
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: isaki
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 14 14:15:00 +0000 2018
>Closed-Date: Thu Jun 20 12:52:21 +0000 2019
>Last-Modified: Thu Jun 20 12:52:21 +0000 2019
>Originator: coypu
>Release: NetBSD 8.99.12
>Organization:
>Environment:
NetBSD planets 8.99.12 NetBSD 8.99.12 (GENERIC) #0: Thu Feb 8 00:38:03 IST 2018 fly@planets:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
playing s32 audio on mpv, it spins the CPU at 100%.
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdafg0 at hdaudio0: vendor 111d product 7605
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack]
hdafg0: ADC02 2ch: Mic In [Built-In]
hdafg0: 2ch/2ch 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
hdafg0: Latency: 128 milliseconds
>How-To-Repeat:
>Fix:
from nat@:
using:
- lowering hw.hdafg0.latency a lot
or,
- mpv --audio-format=s16
fixes the problem.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->isaki
Responsible-Changed-By: isaki@NetBSD.org
Responsible-Changed-When: Thu, 31 Jan 2019 14:03:39 +0000
Responsible-Changed-Why:
I take it.
From: Tetsuya Isaki <isaki@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/53028: hdaudio default latency too high, mpv spins at 100% CPU playing audio
Date: Thu, 31 Jan 2019 23:03:06 +0900
mpv issue is fixed at src/lib/libossaudio/ossaudio.c,v 1.35
and submitter confirmed it.
I also take the latency issue.
---
Tetsuya Isaki <isaki@pastel-flower.jp / isaki@NetBSD.org>
From: matthew green <mrg@eterna.com.au>
To: Tetsuya Isaki <isaki@NetBSD.org>
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, gnats-bugs@NetBSD.org
Subject: re: kern/53028: hdaudio default latency too high, mpv spins at 100% CPU playing audio
Date: Fri, 01 Feb 2019 20:48:03 +1100
Tetsuya Isaki writes:
> mpv issue is fixed at src/lib/libossaudio/ossaudio.c,v 1.35
> and submitter confirmed it.
>
> I also take the latency issue.
thanks! i've also confirmed it helps my setup. actually, i've
applied the fix to netbsd-8 and tested there.
.mrg.
From: Tetsuya Isaki <isaki@pastel-flower.jp>
To: matthew green <mrg@eterna.com.au>
Cc: kern-bug-people@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org,
gnats-bugs@NetBSD.org
Subject: Re: kern/53028: hdaudio default latency too high, mpv spins at 100% CPU playing audio
Date: Sat, 09 Feb 2019 14:17:17 +0900
At Fri, 01 Feb 2019 20:48:03 +1100,
matthew green wrote:
> > mpv issue is fixed at src/lib/libossaudio/ossaudio.c,v 1.35
> > and submitter confirmed it.
>
> thanks! i've also confirmed it helps my setup. actually, i've
> applied the fix to netbsd-8 and tested there.
Thank you. I sent pullup request.
---
Tetsuya Isaki <isaki@pastel-flower.jp / isaki@NetBSD.org>
State-Changed-From-To: open->closed
State-Changed-By: isaki@NetBSD.org
State-Changed-When: Thu, 20 Jun 2019 12:52:21 +0000
State-Changed-Why:
The audio implementation was completely changed.
Previous latency issue is gone.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.