snd_hda UAA patch second preview
Alexander Motin
mav at FreeBSD.org
Thu Aug 28 21:39:15 UTC 2008
swell.k at 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
More information about the freebsd-multimedia
mailing list