From owner-freebsd-multimedia@FreeBSD.ORG Tue Aug 26 09:29:47 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 AF7CA1065770 for ; Tue, 26 Aug 2008 09:29:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0418FC5C for ; Tue, 26 Aug 2008 09:29:46 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 208379752; Tue, 26 Aug 2008 12:29:31 +0300 Message-ID: <48B3CCFA.6010505@FreeBSD.org> Date: Tue, 26 Aug 2008 12:29:30 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Vladimir Grebenschikov References: <48B2DD7E.6030700@FreeBSD.org> <1219740496.2209.9.camel@localhost> In-Reply-To: <1219740496.2209.9.camel@localhost> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit 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:29:47 -0000 Vladimir Grebenschikov wrote: > On Mon, 2008-08-25 at 19:27 +0300, Alexander Motin wrote: > 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 > # That's very strange. I haven't touched codec interface part and haven't seen such problem. Is it repeatable? Does it happened with original driver? > 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. /dev/dsp1 must use some other pins. It can go to the front panel connector or SPDIF output or internal motherboard connector or even possibly nowhere. Some more information could be found from system boot verbose log messages. > # 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. Some mixers may have low precision, even be mute-only. What exactly each mixer does could be found from system boot verbose log messages Could you repeat your test and send me verbose output? -- Alexander Motin