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

Vinod Koul vinod.koul at linux.intel.com
Fri Dec 2 07:44:34 CET 2011

On Thu, 2011-12-01 at 18:58 +0530, Nallasellan, Singaravelan wrote:
> > 
> > > A general note: it's not necessarily to split playback and capture
> > > devices.  For example, rawmidi has a single device for full-duplex.
> > > In the case of PCM, we had to split them because of mmap.  The mmap
> > > for the capture was supposed not to be read-only, some apps may want
> > > to add mark on the buffer.
> > 
> > Beats me why an app would want to write anything into the capture ring buffer.
> > Do you have an example of this use case? Maybe there's a similar need for
> > compressed data. Thanks!
> > -Pierre
> > 
> There was a requirement to add the timestamp at the beginning of each block or frame 
> if the encoded data is in RAW format. If the encoder does add the timestamp or marker, 
> then we don't need the write option. 
Who needs this information, or where is this requirement coming from.
If you already get raw encoded data on frame basis, apps can take that
data with current timestamp...


More information about the Alsa-devel mailing list