From owner-freebsd-multimedia@FreeBSD.ORG Tue Aug 26 09:14:22 2008 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 990F4106564A for ; Tue, 26 Aug 2008 09:14:22 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1379C8FC23 for ; Tue, 26 Aug 2008 09:14:21 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m7Q8mHSX005560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Aug 2008 12:48:18 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KXuDp-0001A6-14; Tue, 26 Aug 2008 12:48:17 +0400 From: Vladimir Grebenschikov To: Alexander Motin In-Reply-To: <48B2DD7E.6030700@FreeBSD.org> References: <48B2DD7E.6030700@FreeBSD.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 26 Aug 2008 12:48:16 +0400 Message-Id: <1219740496.2209.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_hda UAA patch second preview 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: Tue, 26 Aug 2008 09:14:22 -0000 On Mon, 2008-08-25 at 19:27 +0300, Alexander Motin wrote: > Hi. I've tried this patch on 8-CURRENT. first, it almost freezes system with: hdac0: mem 0xee400000-0xee403fff irq 17 at device 27.0 on pci0 hdac0: hdac0: [ITHREAD] hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 ... cut ... hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0 hdac0: hdac0: pcm0: on hdac0 pcm1: on hdac0 # dmesg | fgrep hdac_command_send_internal | wc -l 258 # While these timeout messages system was unresponsive, but after (in several seconds) it looks ok. # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: at hdac0 cad 0 kld snd_hda [20080825_0100] [GIANT] (1p:1v/1r:1v channels duplex default) pcm1: at hdac0 cad 0 kld snd_hda [20080825_0100] [MPSAFE] (1p:1v/0r:0v channels) Music is plays on both /dev/dsp0 and /dev/dsp1 but goes to output only on dsp0. # mixer Mixer vol is currently set to 100:100 Mixer pcm is currently set to 75:75 Mixer cd is currently set to 62:62 Mixer rec is currently set to 70:70 Mixer ogain is currently set to 100:100 Mixer monitor is currently set to 45:45 Recording source: # mixer -f /dev/mixer1 Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 # Changing of mixer volumes for both mixer does not affects anything. any hints will be appreciated. > Here is second preview of my HDA sound driver update. As with the first > one I would be grateful for any feedback positive or negative. > > Patch for 8-CURRENT: > http://people.freebsd.org/~mav/hda.20080825.patch > Patch for 7-STABLE (mostly the same): > http://people.freebsd.org/~mav/hda.7.20080825.patch > Full driver directory archive: > http://people.freebsd.org/~mav/hda.20080825.tgz > > Main changes since first version: > - Record source selector completely rewritten. Now mixed recording and > multilevel mixed/multiplexed recording found on some codecs should work > fine. I have no possibility to test all of these on my hardware, so > feedbacks are wanted. > - Rewritten device hints parser. Now it is possible to specify names > instead of numeric codes for device type, connectivity and color. For > example: > hint.hdac.0.cad0.nid28.config="device=CD conn=Fixed color=Red" > - Sysctl that dumps current pin configuration (dev.hdac.0.pindump) > fixed. Setting it to nonzero value dumps current pin configuration and > jack detection/sensing status. It should be useful for debugging and > hints writing purposes. > - SPDIF output (may be input too, but I can't test it) implemented. > I'm not sure that it is done perfectly, completely or even correctly, > but I am able to playback both PCM and AC3 streams from mplayer on my > AD1988 codec and external audio receiver. If you will try AC3, make sure > you have disabled vchans for that dspX device with 'sysctl > dev.pcm.X.play.vchans=0'. > - Kernel verbose output improved to be more informative. > - Module unloading fixed. > - Asus MB quirk updated to work properly. Actually this quirk is not > really required as it only reconfigures codec from 5.1 output scheme to > 2.0 output + 2 input. > - Numerous other fixes... > > If you will have any questions/problems boot your system with verbose > logging. Driver prints a lot of usable information there. > > While sending me reports please attach your kernel verbose boot output, > pin dump produced by `sysctl dev.hdac.0.pindump=1` and `cat > /dev/sndstat` output to your message. > > Thanks. > -- Vladimir B. Grebenschikov vova@fbsd.ru