Hello,
I am trying to use several OSS audio libraries but all of them have
problems with Davinci OSS drivers.
The PortAudio API have two big problems with Davinci OSS driver:
1. The PortAudio API use nonblocking and blocking modes. And Davinci
OSS driver not work correctly in nonblocking mode...it must return
error when no buffers on write or none data on read.
/* Looks like we have to turn off blocking before we try this, but if
we don't fill the buffer
* OSS will complain. */
PA_ENSURE( ModifyBlocking( stream->playback->fd, 0 ) );
while (1)
{
if( write( stream->playback->fd, stream->playback->buffer, bufSz )
< 0 )
break;
}
PA_ENSURE( ModifyBlocking( stream->playback->fd, 1 ) );
This loop must break when there are no write buffers but it never break.
To check read buffers the PortAudio use SNDCTL_DSP_GETISPACE and it
ALWAYS return available buffers and when application read this buffer
then it read same data without error.
2. Davinci OSS driver don't work correctly in mono mode and driver
still return two samples per tick.
--
Regards,
DDV mailto:[EMAIL PROTECTED]
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source