From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 16 00:00:09 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 73632106568F; Mon, 16 Jan 2012 00:00:09 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1E0A88FC0A; Mon, 16 Jan 2012 00:00:08 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so486036obc.13 for ; Sun, 15 Jan 2012 16:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UHbw0GOVPxNfeDksZAzIDRC/eFlfEmObR/EfHBMEVSI=; b=Oq5Vhza+UU09OaoL2fvdbkFV7p3CJaMFtCwo5T/JuYxr63jhzTlXHLOsX1cDLogGuo dX5FeRnMZP+597yXn9P9NfW8zXj5Bn/RlsWm6I799Mo90+iWpQqsRwfV8B4C0i3WVbBS u4giRVk3oSWJdoSdeCYvAk/YgUohTkeFkzl48= MIME-Version: 1.0 Received: by 10.182.117.97 with SMTP id kd1mr8926993obb.50.1326670598054; Sun, 15 Jan 2012 15:36:38 -0800 (PST) Received: by 10.182.121.104 with HTTP; Sun, 15 Jan 2012 15:36:37 -0800 (PST) In-Reply-To: <4F12D66C.4080202@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <4F12D66C.4080202@FreeBSD.org> Date: Sun, 15 Jan 2012 21:36:37 -0200 Message-ID: From: Marcel Bonnet To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Mon, 16 Jan 2012 00:00:09 -0000 On 15 January 2012 11:36, Alexander Motin wrote: > On 01/11/12 21:33, 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. >> >> Special thanks to iXsystems, Inc. for supporting this work. >> >> Comments and tests results are welcome! >> > > Big thanks to everybody who tried it! As soon as no regressions were > found, I've just committed slightly updated code into the HEAD branch. I > plan to merge it down to 8/9-STABLE in about two months. > > Congratulations for this great work. I cvsup(-ed) the 9-STABLE in January 11 and installed today. Until now (from 7.1) I never had my on board HDA Audio working. With your patch it just works and very well. I've got sound from speakers or headphones when playing music. I could record with audacity using internal mic or external mic jack. I did not test the line input. I did not upgrade the ports yet, like oss and others, but until now everything is great. $ cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: on hdaa0 (1p:1v/1r:1v) default pcm1: on hdaa0 (1p:1v/0r:0v) $ sysctl -a | grep hda device snd_hda dev.hdac.0.%desc: VIA VT8251/8237A HDA Controller dev.hdac.0.%driver: hdac dev.hdac.0.%location: slot=1 function=0 handle=\_SB_.PCI0.P2PE.AZAC dev.hdac.0.%pnpinfo: vendor=0x1106 device=0x3288 subvendor=0x1509 subdevice=0x1d42 class=0x040300 dev.hdac.0.%parent: pci4 dev.hdac.0.wake: 0 dev.hdac.0.pindump: 0 dev.hdacc.0.%desc: Realtek ALC268 HDA CODEC dev.hdacc.0.%driver: hdacc dev.hdacc.0.%location: cad=0 dev.hdacc.0.%pnpinfo: vendor=0x10ec device=0x0268 revision=0x00 stepping=0x03 dev.hdacc.0.%parent: hdac0 dev.hdacc.1.%desc: Unknown CODEC HDA CODEC dev.hdacc.1.%driver: hdacc dev.hdacc.1.%location: cad=1 dev.hdacc.1.%pnpinfo: vendor=0x1057 device=0x3055 revision=0x07 stepping=0x00 dev.hdacc.1.%parent: hdac0 dev.hdaa.0.%desc: Realtek ALC268 HDA CODEC Audio Function Group dev.hdaa.0.%driver: hdaa dev.hdaa.0.%location: nid=1 dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x15091d42 dev.hdaa.0.%parent: hdacc0 dev.hdaa.0.nid18_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid18_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid19_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid19_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid20_config: 0x99130110 as=1 seq=0 device=Speaker conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=1 dev.hdaa.0.nid20_original: 0x99130110 as=1 seq=0 device=Speaker conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=1 dev.hdaa.0.nid21_config: 0x0121401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Rear color=Green misc=0 dev.hdaa.0.nid21_original: 0x0121401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Rear color=Green misc=0 dev.hdaa.0.nid22_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid22_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid24_config: 0x01a19c40 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=12 dev.hdaa.0.nid24_original: 0x01a19c40 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=12 dev.hdaa.0.nid25_config: 0x99a30941 as=4 seq=1 device=Mic conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=9 dev.hdaa.0.nid25_original: 0x99a30941 as=4 seq=1 device=Mic conn=Fixed ctype=ATAPI loc=Onboard color=Unknown misc=9 dev.hdaa.0.nid26_config: 0x01813c4e as=4 seq=14 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=12 dev.hdaa.0.nid26_original: 0x01813c4e as=4 seq=14 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=12 dev.hdaa.0.nid28_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid28_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid29_config: 0x40048605 as=0 seq=5 device=Line-out conn=None ctype=RCA loc=0x00 color=Purple misc=6 dev.hdaa.0.nid29_original: 0x40048605 as=0 seq=5 device=Line-out conn=None ctype=RCA loc=0x00 color=Purple misc=6 dev.hdaa.0.nid30_config: 0x01454130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Green misc=1 dev.hdaa.0.nid30_original: 0x01454130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Green misc=1 dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref dev.hdaa.0.gpio_config: 0=keep 1=keep 2=keep 3=keep dev.hdaa.0.reconfig: 0 dev.pcm.0.%parent: hdaa0 dev.pcm.1.%parent: hdaa0