Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2008 00:39:00 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        swell.k@gmail.com
Cc:        freebsd-multimedia@FreeBSD.org
Subject:   Re: snd_hda UAA patch second preview
Message-ID:  <48B71AF4.80700@FreeBSD.org>
In-Reply-To: <86iqtlra3p.fsf@gmail.com>
References:  <48B2DD7E.6030700@FreeBSD.org> <86iqtlra3p.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48B71AF4.80700>