From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 12 11:20:46 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 7F4DB106566B for ; Thu, 12 Jan 2012 11:20:46 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADC68FC08 for ; Thu, 12 Jan 2012 11:20:45 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so1891551wgb.31 for ; Thu, 12 Jan 2012 03:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; bh=A8UvQIVk1IJpx76Pp1jV9PrMQnPfaSPCueTL7dsL57k=; b=NLjX9SIu6oEwdwaroSpgh4byXy9fS4+JBCNTvHbrByXHoNIy+ocsokn3Md8/h8uMNF kjAic7GA3hfjKxaprPQV7RfinkeqoM2u9RczesgyoSXuITV4YRigcitlPqsc2FAP5HqD IhJHte0C5xzEXiXUXY2/iYMQ3CSPFPGHIErnA= Received: by 10.180.109.77 with SMTP id hq13mr17230832wib.7.1326365543109; Thu, 12 Jan 2012 02:52:23 -0800 (PST) Received: from ernst.jennejohn.org (p578E3D0A.dip.t-dialin.net. [87.142.61.10]) by mx.google.com with ESMTPS id o17sm5245274wbh.19.2012.01.12.02.52.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 02:52:22 -0800 (PST) Date: Thu, 12 Jan 2012 11:52:20 +0100 From: Gary Jennejohn To: Alexander Motin Message-ID: <20120112115220.1c32b3e2@ernst.jennejohn.org> In-Reply-To: <4F0DE3FD.2020203@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gljennjohn@googlemail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 11:20:46 -0000 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] > That is how it may look now in dmesg: > > hdac0: mem > 0xf7ef4000-0xf7ef7fff irq 22 at device 27.0 on pci0 > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > hdacc1: at cad 3 on hdac0 > hdaa1: at nid 1 on hdacc1 > pcm0: at nid 28,29 and 26,30,27 > on hdaa0 > pcm1: at nid 32 on hdaa0 > pcm2: at nid 6 on hdaa1 > > 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). 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. I'm using pcm4. -- Gary Jennejohn (gj@)