5 Dec
2011
5 Dec
'11
5:19 p.m.
- if (stream->runtime->state == SNDRV_PCM_STATE_SETUP) {
stream->runtime->state = SNDRV_PCM_STATE_PREPARED;
Can we implement kind of start threshold similar to PCM path here
to
initiate the playback?
You already know how much is copied into buffer
You expect the user space to explicitly invoke START. Is it right? If threshold is implemented, the user space does not require to track the bytes_written/read.
The notion of a START threshold isn't self-explanatory for compressed data. The decoder may or may not have enough data available for specific values of the threshold, and the behavior would be decoder/implementation specific. Besides, this was never implemented in the proprietary Intel API we've been using for 2+ years and no one complained... -Pierre