[oss-devel] Need help with OSS application and syncing

Timur Tabi timur at freescale.com
Thu May 22 18:24:48 EEST 2008


Hannu Savolainen wrote:

> SNDCTL_DSP_SYNC and SNDCTL_DSP_RESET are likely to cause problems with 
> emulations. Many applications use these calls in wrong situations "just 
> to make sure" which causes many kind of problems. OSS emulations may 
> also do whatever they see necessary instead of doing just the right thing.

Thanks everyone.  I figured out the problem.  It turns out to be a bug in the
driver.

When the application called sync, ALSA re-initialized my driver.  This caused my
driver to re-program the DMA controller, and for some reason it didn't like that
(even though it was reprogrammed with the same values).

I modified the driver's programming sequence, and everything works now.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the oss-devel mailing list