From owner-freebsd-multimedia@FreeBSD.ORG Thu Aug 28 21:39:15 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 3BB711065672 for ; Thu, 28 Aug 2008 21:39:15 +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 ADE048FC0A for ; Thu, 28 Aug 2008 21:39:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 211683621; Fri, 29 Aug 2008 00:39:13 +0300 Message-ID: <48B71AF4.80700@FreeBSD.org> Date: Fri, 29 Aug 2008 00:39:00 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: swell.k@gmail.com References: <48B2DD7E.6030700@FreeBSD.org> <86iqtlra3p.fsf@gmail.com> In-Reply-To: <86iqtlra3p.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Thu, 28 Aug 2008 21:39:15 -0000 swell.k@gmail.com wrote: > % sysctl dev.hdac.0.polling=1 > % mplayer /path/to/someFile > (quit or kill it) > % mplayer /path/to/someFile > (quit) > % sysctl dev.hdac.0.polling=0 > dev.hdac.0.polling: 1 > sysctl: dev.hdac.0.polling: Device busy > % fstat /dev/dsp* > USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME > > The second invocation of mplayer gives no sound and eats up all cpu at start > throttling to nothing (100% idle). After that the only way I know to restore > sound is reboot. Can someone reproduce? Is it known problem? Haven't tested > without the patch, but IIRC es137x doesn't exhibit such a behavior. > > On the console I have nothing useful: > hdac0: PCMDIR_PLAY: Stream setup fmt=10000010 speed=48000 > hdac0: PCMDIR_PLAY: Stream setup nid=2: fmt=0x0011, dfmt=0x0001 > hdac0: hdac_stream_start: pollticks 1000000 -> 1 > hdac0: PCMDIR_PLAY: Stream setup fmt=10000010 speed=48000 > hdac0: PCMDIR_PLAY: Stream setup nid=2: fmt=0x0011, dfmt=0x0001 > > Yep, I'm using latest hda.20080827.patch, the problem also exists > in previous patch. You was the first who tested polling in my patch. Fixed in new version. > BTW, this latest patch gives me [GIANT] in /dev/sndstat. dmesg is > here http://pastebin.com/m7cb8b669 if it's of any interest. > Is it expected to have it? Actually latest patch should give [MPSAFE]. I have actually just fixed that. Are you sure you have [GIANT] now? -- Alexander Motin