[alsa-devel] [PATCH 5/6] compress: add the core file

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Mon Dec 5 16:19:05 CET 2011

> > > > +	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...

More information about the Alsa-devel mailing list