From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 12 12:57:00 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93CE0106566C for ; Thu, 12 Jan 2012 12:57:00 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) by mx1.freebsd.org (Postfix) with ESMTP id 25C038FC08 for ; Thu, 12 Jan 2012 12:57:00 +0000 (UTC) Received: from pd951c176.dip.t-dialin.net ([217.81.193.118] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1RlJnx-0003Jq-KY; Thu, 12 Jan 2012 13:30:53 +0100 Message-ID: <4F0ED27A.8070600@gwdg.de> Date: Thu, 12 Jan 2012 13:30:50 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Alexander Motin References: <4F0DE3FD.2020203@FreeBSD.org> <20120112115220.1c32b3e2@ernst.jennejohn.org> <4F0EC17B.8040908@FreeBSD.org> In-Reply-To: <4F0EC17B.8040908@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-multimedia@FreeBSD.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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: Thu, 12 Jan 2012 12:57:00 -0000 On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: > On 01/12/12 12:52, Gary Jennejohn wrote: >> On Wed, 11 Jan 2012 21:33:17 +0200 >> Alexander Motin wrote: >>> I would like request for testing of my work on further HDA sound driver >>> improvement. >> >> [big snip] >> >>> 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. >> >> The patch doesn't apply cleanly to r230008; hdac.c.rej is 15661 bytes >> in size (mostly the section which deletes all the manufacturer-specific >> defines at the top of the file). > > That is probably because of $FreeBSD$ macro resolution. Here is version > with present value from 10-CURRENT SVN (sources from CVS or STABLE will > need that patch line modified respectively) and some minor additional > improvements like CODEC ODs and some more sysctls: > http://people.freebsd.org/~mav/hda.rewrite2.patch I just patched 10.0-CURRENT (amd64) r230009 against hda.rewrite2.patch. All went fine so far. My box is now running again with following messages: 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 20,22,23,21 and 24,26 on hdaa4 pcm5: at nid 27 and 25 on hdaa4 pcm6: at nid 30 on hdaa4 pcm7: at nid 17 on hdaa4 I am using pcm4 with 5.1 surround sound and pulseaudio. All seems to work fine :-) The mainboard is an Asus M4A88TD-V EVO/USB3, the graphics card is a NVidia GeForce GTS 450. The Realtek ALC892 is regocnized by the driver, the NVidia HDMI sound device is not. I am looking forward to the commit of this patch! >> After fixing that per hand I was able to make a kernel with which sound >> still works. Here the relevant bits from dmesg: >> >> hdac0: mem 0xfcffc000-0xfcffffff irq >> 18 at device 0.1 on pci1 >> hdac1: mem 0xfe024000-0xfe027fff irq 16 at >> device 20.2 on pci0 >> 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 >> 20,22,21,23 and 24,26 on hdaa4 >> pcm5: at nid 27 and 25 >> on hdaa4 >> pcm6: at nid 30 and 31 >> on hdaa4 >> >> I particularly like that the messages now show which jack corresponds to >> which pcm - makes deciding which jack to use much simpler. > > Thank you for the report. >