From owner-freebsd-current@FreeBSD.ORG Thu Jan 12 11:18:24 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 E78EE106566C; Thu, 12 Jan 2012 11:18:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4C98F8FC15; Thu, 12 Jan 2012 11:18:22 +0000 (UTC) Received: by eeke53 with SMTP id e53so156829eek.13 for ; Thu, 12 Jan 2012 03:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jmkz0hG+B0QSP0D2wyS/xBXQ17syS9jWsKt9l06CGjc=; b=FRCuokj7ONTQ3d28xad212Mpl3ZO6vj5sUFw5l96ibwDi/ZKDbMfLWgErZleLayPwD xiPBxXMUNxzWsedxsGdlu/G4dHwXLAmqSQ145bae+sv6NOllQ8cHekqNa/STiA8VkgHY 3d7N+InGbpk+aJeJW5rzdyEEDwwEB22oFuEGA= Received: by 10.14.47.79 with SMTP id s55mr1235952eeb.69.1326367102212; Thu, 12 Jan 2012 03:18:22 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id u53sm18279360eeu.6.2012.01.12.03.18.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 03:18:21 -0800 (PST) Sender: Alexander Motin Message-ID: <4F0EC17B.8040908@FreeBSD.org> Date: Thu, 12 Jan 2012 13:18:19 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: gljennjohn@googlemail.com References: <4F0DE3FD.2020203@FreeBSD.org> <20120112115220.1c32b3e2@ernst.jennejohn.org> In-Reply-To: <20120112115220.1c32b3e2@ernst.jennejohn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org, FreeBSD current 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: Thu, 12 Jan 2012 11:18:24 -0000 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 > 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. -- Alexander Motin