On Tue, Dec 16, 2014 at 12:16:40AM -0800, Dylan Reid wrote:
On Mon, Dec 15, 2014 at 8:41 PM, Vinod Koul vinod.koul@intel.com wrote:
The device here wont be any different than regular PCM/Compressed devices. Assume the data path is SPI rather than I2S so things would be modelled that way. You still need to setup SPI port, DMAs like you would do on I2S.
Ah, I hadn't thought about using the compressed framework. I can see how that would make this easier. I'll take a closer look at it tomorrow.
You should be able to use a normal device as well, you need to either arrange for the driver to buffer data until userspace starts the magic stream or arrange for userspace to not mind if it blocks for extended periods. Either compressed or uncompressed should work.