OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Anonymous on February 25, 2004, 06:18:11 am

Title: SNDCTL_DSP_GETOPTR works?
Post by: Anonymous on February 25, 2004, 06:18:11 am
Hi, I\'m trying to port some code to a Zaurus running the X11 ROM.

The audio component of the code uses SNDCTL_DSP_GETOPTR to determine the current output position of the audio data that has been written.

On x86 linux, GETOPTR returns the expected result. With the cacko ROM, I am getting 0 at device open time, then a constant value thereafter.

I am not using MMAP\'d audio.

Should I expect GETOPTR to work, or will I have to find an alternate method?

Thanks,
-mk
Title: SNDCTL_DSP_GETOPTR works?
Post by: Anonymous on March 05, 2004, 08:14:21 pm
I\'ll answer my own question -- yes, it does, but differently from other linux implementations.
count_info.bytes gets cleared every time that ioctl(GETOPTR) is called rather than bytes being accumulated.