[alsa-devel] Is Asoc suitable for my device?

Xuesong Yang xsyang at pixelworks.com
Wed Dec 31 09:35:05 CET 2008

Hi Mark:
	Thanks for you suggestion. I'll have a look at the codec part of

-----Original Message-----
From: Mark Brown [mailto:broonie at sirena.org.uk] 
Sent: Tuesday, December 30, 2008 9:26 PM
To: Xuesong Yang
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] Is Asoc suitable for my device?

On Tue, Dec 30, 2008 at 05:25:22PM +0800, Xuesong Yang wrote:

> 	My problem is I don't know if it suitable for my device use
> 	In my platform, there is only a I2S bypass module, It has a
> select one of the I2S source as input,(from HDMI or cpu data) delay
> data for some time and then output it to the backend.
> 	In theory, this device is very sample, but I find I can't get a
> way to implement it in ALSA, I'm lost in ALSA.
> 	Any suggestion will be greatly appreciated.

ASoC sounds like a good fit here: it'd allow you to reuse the I2S and
DMA drivers for the CPU and what you're doing is very similar to what a
codec with analogue bypass can do so it's not really even unusual from
an ASoC point of view.  The only difference is that all your signals are
digital but nothing outside the bypass module will be able to tell.

I'd suggest writing a codec driver for your bypass module - it fits into
the system in the same place and from what you say it sounds like it
could be viewed as a codec that happens to deal in digital formats only.

More information about the Alsa-devel mailing list