From owner-freebsd-current@FreeBSD.ORG Thu Apr 5 22:24:31 2012 Return-Path: <owner-freebsd-current@FreeBSD.ORG> 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 CC151106564A; Thu, 5 Apr 2012 22:24:31 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 13DFE8FC0C; Thu, 5 Apr 2012 22:24:30 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so1718807wgb.31 for <multiple recipients>; Thu, 05 Apr 2012 15:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=KA2JQurgdF44NiMIByQGjXaDXbj8w+msyq/ac87Q2a0=; b=X+U0bgzw4J+ZpHfpwBKmykzmTlsywDOYHZzTDaj3+UcF5VOqo9CqROPyKqMq+kZhqc xSlgYr3/OIM5UmBx/tfabMuk6+AJznIO9qkLU0AZxtuf/J2CUFSWZP88dbw1sqFcHsqT 73qwvxgT5d/jXiZksiaAuA+gHCoofeS173TfiWqyuS8fkMxQNilB6Paf1QpvhGJAyrIR f0eQOwQLJ+hbNwS/S571pYG9b9rQ3X3g9BHyhZULTnLhPDsnbVS5dlZkjSD4SActyHmA BBNDG2hDCuq53XII3gZVP0LzTispYYQxKCAfBhHVUvva1NvRRGEIPTjETMWQF/psyMoC S11g== Received: by 10.216.225.216 with SMTP id z66mr2635816wep.71.1333664669915; Thu, 05 Apr 2012 15:24:29 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id n15sm955037wiw.6.2012.04.05.15.24.17 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 15:24:28 -0700 (PDT) Sender: Alexander Motin <mavbsd@gmail.com> Message-ID: <4F7E1B88.3040200@FreeBSD.org> Date: Fri, 06 Apr 2012 01:24:08 +0300 From: Alexander Motin <mav@FreeBSD.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: Jaroslav Suchanek <jaroslav.suchanek@avg.com> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <20120112130404.GD1429@procyon.xvoid.org> <4F16ED05.4060604@FreeBSD.org> <20120123180547.GB13410@sirius.xvoid.org> <1333660807.8137.81.camel@jardell> In-Reply-To: <1333660807.8137.81.camel@jardell> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Yuri Pankov <yuri.pankov@gmail.com>, freebsd-multimedia@freebsd.org, FreeBSD current <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 <freebsd-current.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 05 Apr 2012 22:24:31 -0000 On 06.04.2012 00:20, Jaroslav Suchanek wrote: > On Mon, 2012-01-23 at 22:05 +0400, Yuri Pankov wrote: >> On Wed, Jan 18, 2012 at 06:02:13PM +0200, Alexander Motin wrote: >>> On 01/12/12 15:04, 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:<NVidia GT220 HDA CODEC> at cad 0 on hdac0 >>>>>> hdaa0:<NVidia GT220 HDA CODEC Audio Function Group> at nid 1 on hdacc0 >>>>>> pcm0:<NVidia GT220 HDA CODEC PCM (DisplayPort 8ch)> at nid 5 on hdaa0 >>>>>> hdacc1:<NVidia GT220 HDA CODEC> at cad 1 on hdac0 >>>>>> hdaa1:<NVidia GT220 HDA CODEC Audio Function Group> at nid 1 on hdacc1 >>>>>> pcm1:<NVidia GT220 HDA CODEC PCM (DisplayPort 8ch)> at nid 5 on hdaa1 >>>>>> hdacc2:<NVidia GT220 HDA CODEC> at cad 2 on hdac0 >>>>>> hdaa2:<NVidia GT220 HDA CODEC Audio Function Group> at nid 1 on hdacc2 >>>>>> pcm2:<NVidia GT220 HDA CODEC PCM (DisplayPort 8ch)> at nid 5 on hdaa2 >>>>>> hdacc3:<NVidia GT220 HDA CODEC> at cad 3 on hdac0 >>>>>> hdaa3:<NVidia GT220 HDA CODEC Audio Function Group> at nid 1 on hdacc3 >>>>>> pcm3:<NVidia GT220 HDA CODEC PCM (DisplayPort 8ch)> at nid 5 on hdaa3 >>>>>> hdacc4:<IDT 92HD75BX HDA CODEC> at cad 0 on hdac1 >>>>>> hdaa4:<IDT 92HD75BX HDA CODEC Audio Function Group> at nid 1 on hdacc4 >>>>>> pcm4:<IDT 92HD75BX HDA CODEC PCM (Analog)> at nid 13 and 11 on hdaa4 >>>>>> pcm5:<IDT 92HD75BX HDA CODEC PCM (Analog)> at nid 15 and 24 on hdaa4 >>>>>> pcm6:<IDT 92HD75BX HDA CODEC PCM (Front Digital)> 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). >>> >>> I've reproduced it on NVidia GT210. It seems there is some problem with >>> MSI generation. Switching to legacy PCI interrupts fixes problem for me. >>> Linux HDA driver disables MSI for all NVidia controllers. >>> >>> Try to add hint.hdac.0.msi=0 into the /boot/loader.conf. >> >> Sorry for delay. Indeed, setting hint.hdac.0.msi=0 helped. > > I tried the same trick but without success. I am attaching output of > dmesg, sysctl, uname, sndstat and pciconf. I am using FreeBSD > 9.0-RELEASE with MAV's recent patches. > > The chipset is NVidia ION. I am also using NVidia's drivers 295.33. The > box is connected to receiver over HDMI. It does not work even with X > server running. But the analog output works just fine. > > Any idea is appreciated. dmesg you've provided is not verbose and so quite useless for HDA diagnosing. From what I can see here, it looks more alike to older GeForce 8300 based board (ASUS M4N78 PRO) I have, then to newer cards. Unluckily, I've tried all I could from the HDA side and still unable to make HDMI audio work on that my board. So either it is X11 video driver problem not initializing audio path properly on this chip, or I am missing some chip-specific clues. -- Alexander Motin