From owner-freebsd-current@FreeBSD.ORG Mon Jan 16 00:22:26 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5AA7106564A; Mon, 16 Jan 2012 00:22:25 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from sirius.xvoid.org (sirius.xvoid.org [IPv6:2001:470:28:4ba:20c:29ff:fe62:9a22]) by mx1.freebsd.org (Postfix) with ESMTP id 5C18E8FC14; Mon, 16 Jan 2012 00:22:25 +0000 (UTC) Received: from sirius.xvoid.org (yuri@sirius.xvoid.org [IPv6:::1]) by sirius.xvoid.org (8.14.5/8.14.5) with ESMTP id q0G0MNd0008703; Mon, 16 Jan 2012 04:22:23 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by sirius.xvoid.org (8.14.5/8.14.5/Submit) id q0G0MNvA008702; Mon, 16 Jan 2012 04:22:23 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: sirius.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Mon, 16 Jan 2012 04:22:23 +0400 From: Yuri Pankov To: Alexander Motin Message-ID: <20120116002223.GC1241@sirius.xvoid.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <20120112130404.GD1429@procyon.xvoid.org> <20120115205008.GB1241@sirius.xvoid.org> <4F136A8F.4070209@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F136A8F.4070209@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org Subject: Re: [RFT] Major snd_hda rewrite X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2012 00:22:26 -0000 On Mon, Jan 16, 2012 at 02:08:47AM +0200, Alexander Motin wrote: > On 01/15/12 22:50, Yuri Pankov wrote: > > On Thu, Jan 12, 2012 at 05:04:04PM +0400, Yuri Pankov wrote: > >> On Thu, Jan 12, 2012 at 02:57:52PM +0200, Alexander Motin wrote: > >>> On 01/12/12 14:18, Yuri Pankov wrote: > >>>> On Wed, Jan 11, 2012 at 09:33:17PM +0200, Alexander Motin wrote: > >>>>> I would like request for testing of my work on further HDA sound driver > >>>>> improvement. > >>>> [...] > >>>>> Patch can be found here: > >>>>> http://people.freebsd.org/~mav/hda.rewrite.patch > >>>>> > >>>>> Patch was generated for 10-CURRENT, but should apply to fresh 9-STABLE > >>>>> and 8-STABLE branches also. > >>>> > >>>> Patch applied cleanly to r230008 using `svn patch`. > >>>> > >>>> hdacc0: at cad 0 on hdac0 > >>>> hdaa0: at nid 1 on hdacc0 > >>>> pcm0: at nid 5 on hdaa0 > >>>> hdacc1: at cad 1 on hdac0 > >>>> hdaa1: at nid 1 on hdacc1 > >>>> pcm1: at nid 5 on hdaa1 > >>>> hdacc2: at cad 2 on hdac0 > >>>> hdaa2: at nid 1 on hdacc2 > >>>> pcm2: at nid 5 on hdaa2 > >>>> hdacc3: at cad 3 on hdac0 > >>>> hdaa3: at nid 1 on hdacc3 > >>>> pcm3: at nid 5 on hdaa3 > >>>> hdacc4: at cad 0 on hdac1 > >>>> hdaa4: at nid 1 on hdacc4 > >>>> pcm4: at nid 13 and 11 on hdaa4 > >>>> pcm5: at nid 15 and 24 on hdaa4 > >>>> pcm6: at nid 30 on hdaa4 > >>>> > >>>> pcm4 (builtin speakers) and pcm5 (headphones) seem to work fine, however > >>> > >>> Thank you. > >>> > >>>> I'm not getting anything out of pcm0-pcm3 (connected to a TV via HDMI), > >>>> mplayer just pauses at the beggining, trying to cat anything to > >>>> /dev/dsp{0-3}.0 gives: > >>>> > >>>> pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead > >>>> > >>>> It was the same with the old driver and I'm not sure if it's (most > >>>> likely) my misconfiguration or a driver problem. > >>> > >>> It sounds more like a driver problem. HDMI audio is still not very well > >>> discovered area, and, according to ALSA reading, NVidia HDMI is also not > >>> very standard. Probably I'll finally have to buy something to > >>> experiment. What card do you have? > >> > >> It's a laptop with "nVidia Corporation GT216 [GeForce GT 230M]" (as > >> identified by x11/nvidia-driver). > >> > >> The verbose dmesg is at: > >> > >> https://www.xvoid.org/stuff/spica.dmesg > > > > I'm getting the following panic as soon as I log into GNOME (wasn't > > running it before, so I'm not sure if it's a problem with new driver > > version or not, will test if needed): > > > > panic: Stop for not allocated stream (1/0) > > > > The full core.txt is at: > > > > https://www.xvoid.org/stuff/core.txt.0 > > Hmm. May be it is result of double stop. Please try this patch: > > --- hdaa.c (revision 230179) > +++ hdaa.c (working copy) > @@ -1351,6 +1351,8 @@ > struct hdaa_widget *w; > int i; > > + if ((ch->flags & HDAA_CHN_RUNNING) == 0) > + return; > ch->flags &= ~HDAA_CHN_RUNNING; > HDAC_STREAM_STOP(device_get_parent(devinfo->dev), devinfo->dev, > ch->dir == PCMDIR_PLAY ? 1 : 0, ch->sid); Thanks, that did the trick. Yuri