Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Cannot get SIO_STANDARD mode audio streaming to work on OMAP-L137

$
0
0

There are two parts to this question, the first is a general question about using SIO_STANDARD streaming in DSP/BIOS with dynamically allocated buffers. According to the documentation for SIO_create:


If the stream is being opened in SIO_STANDARD mode, SIO_create
allocates buffers of size bufsize for use by the stream. Initially these
buffers are placed on the device todevice queue for input streams, and
the device fromdevice queue for output streams.

What the documentation does not say is how to retrieve the one of these buffers for the first call to SIO_put (or SIO_get for input streams, but my example currently only does output). Since these functions do an exchange of buffers, it seems that there needs to be something to exchange with. Here are the various things I have tried:

  1. Call SIO_put with a NULL buffer (ie no exchange). This doesn't work.
  2. Call SIO_reclaim (even though the documentation says not to). SIO_reclaim just blocks in this case.
  3. Example code for SIO_STANDARD uses static buffers and retrieves the first buffer with SIO_staticbuf, attempting to do this without a static buffer does not work.
  4. Ignore the fact that SIO_create is documented to automatically allocate buffers and allocate my own. This works initially, but then fails.

Having failed to get anything working with dynamic buffers, I have tried to get something working with static buffers. However, this also fails. I have attached the code for the example that I am using, the DSP/BIOS configuration is in build/sine_standard.tcf and build/sine_standard.tci. When I try to run the program it does not reach main and gets stuck somewhere in the driver configuration.

I would be grateful if someone could take a look at the configuration and suggest why this might be happening.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>