[alsa-devel] [PATCH 5/6] compress: add the core file
pierre-louis.bossart at linux.intel.com
Tue Nov 29 22:15:01 CET 2011
> > For playback, the decoder is expected to deal with such situations on
> > own and find the block boundaries, meaning at the application level
> we can
> > just push bytes down to the decoder without worrying.
> But is this restriction guaranteed to be applicable to all possible
> hardwares in future? What happens if you'll get a hardware that
> doesn't support the byte-unit push for the playback?
> That said, I see no obvious reason to give a restriction coupled with
> the stream direction.
Power consumption will be more optimized if we push bytes without looking
for block boundaries on the host. But if your hardware requires parsing on
the host, there's no impact on the API. You'd just write block-by-block and
specify the block length instead of fixed-size value.
More information about the Alsa-devel