From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 22 20:54:35 2006 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5D9F16A403 for ; Fri, 22 Dec 2006 20:54:35 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 912B113C41A for ; Fri, 22 Dec 2006 20:54:35 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so876986ana for ; Fri, 22 Dec 2006 12:54:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GVRG5+lE0D0l+RAQAzdoqBu2HIRLQ+cwoosM1CBRhf4n95r9GnFISQCh8Qst3Dky/Qzh/PcZq658BK/0L4Kwq++zoZzAUnXIed7Vi/1rWp7yCJh6X8q2nFDtQmALleNhA81CB4HQZ0+OS2viLwv2lAFwT0vnM5HHcwCWvXE/ORo= Received: by 10.78.183.15 with SMTP id g15mr1420861huf.1166820870944; Fri, 22 Dec 2006 12:54:30 -0800 (PST) Received: by 10.78.167.16 with HTTP; Fri, 22 Dec 2006 12:54:30 -0800 (PST) Message-ID: Date: Fri, 22 Dec 2006 23:54:30 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Ariff Abdullah" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061212010805.3b1b3dff.ariff@FreeBSD.org> <20061212033104.051a7d0f.ariff@FreeBSD.org> <20061220011231.4ae3ca6b.ariff@FreeBSD.org> X-Google-Sender-Auth: 5740f0f06f6caed6 Cc: multimedia@freebsd.org Subject: Re: snd_hda: loud distorted sound with NVidia MCP51 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2006 20:54:36 -0000 On 12/22/06, Andrew Pantyukhin wrote: > On 12/19/06, Ariff Abdullah wrote: > > On Mon, 18 Dec 2006 23:57:00 +0300 > > "Andrew Pantyukhin" wrote: > > > On 12/18/06, Hiroharu Tamaru wrote: > > > > This is already commited. So look for this line > > > > if (subvendor == 0x81cb1043) { > > > > and replace it with > > > > if (subvendor == 0x81cb1043 || subvendor == > > > > 0x10b81734) { > > > > and have a try. > > > > > > This actually works very well! Thank you very much! > > > > Fix committed > > I confirm that -current works great. Thank you! > > > > Ariff, I'll provide additional testing as needed. > > > > > > Also there's another problem, independent of the > > > patch. Sometimes the card starts playing, but > > > just as about half a second passes the output > > > stops (mpg123 exits) and kernel says this: > > > > > > pcm0:virtual:0:dsp0.v0: play interrupt timeout, channel dead > > > > Could you try this patch (attached). snd_hda supports polling mode > > instead of interrupt, so you might give it a try as well, _after_ > > the given patch failed to address this issue. sysctl > > dev.pcm.0.polling. > > I'm still trying to find a way to reproduce it. I > could hardly do it a couple of times since the first > one. When I'm sure I can cause it, I'll try the fix > and tell you. So. I applied the patch and the error disappeared. But, it feels like some glitch is still there. In the rare situations when I would expect the error - when the laptop has just booted and I have just kldloaded snd_hda - instead of an error I get a 2-10 sec delay when I start mpg123 before I hear any output. The output starts from the beginning, i.e. nothing is lost, there's just a delay. A delay is much better than an error, as mpg123 does not exit. Thanks! I'm ready to do further testing.