[alsa-devel] compressed audio support (maruthi srinivas)
anish198519851985 at gmail.com
Tue Dec 3 00:24:51 CET 2013
> I saw that compressed audio framework being used
> with Asoc (alsa soc).
> Can the framework be used with other than Asoc ?
> I mean with ALSA pci based cards.
Never worked on this so don't know.
> I see the implementation in the following files. which one
> is to be used ?
> Does tinycompress in userspace can be used with either
> approaches ?
This will not be relevant after you see below answer.
Both are compress framework driver files.
compress_offload.c file is the one which interacts with userspace
by using ioctl's, registers the compressed device with alsa
framework(/dev/compress* gets created because of that), calls
the corresponding functions such as trigger, pointer update, copy
and others when userspace pauses, plays and stops the playback
soc_compress.c file is the file which interacts with compress_offload.c
file to create a 'dev' node for compress driver.Basically when you
register your compress driver with compress framework,alsa core
will come to know that your dai support compress operations and
it will create the dev node by using soc_compress.c file.The functions
in this file gets called by compress_offload.c functions and who
inturn gets called by the userspace.
More information about the Alsa-devel