Skip to contentSkip to conversation

Is Asoc suitable for my device?

DISCUSSION Xuesong Yang 2 participants 3 messages Dec 30, 2008 – Dec 31, 2008

lore
Share & tools
lore
#0 lore raw

hi all:
I'm new to ALSA and still study it.
My problem is I don't know if it suitable for my device use Asoc. In my platform, there is only a I2S bypass module, It has a route,
select one of the I2S source as input,(from HDMI or cpu data) delay the 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 easy
way to implement it in ALSA, I'm lost in ALSA.
Any suggestion will be greatly appreciated.

Thanks.

#1 lore raw
Quoted 7 lines · Xuesong Yang

My problem is I don't know if it suitable for my device use Asoc. In my platform, there is only a I2S bypass module, It has a route,
select one of the I2S source as input,(from HDMI or cpu data) delay the 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 easy
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.

#2 lore raw

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

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Tuesday, December 30, 2008 9:26 PM
To: Xuesong Yang
Cc: [email protected]
Subject: Re: [alsa-devel] Is Asoc suitable for my device?

Quoted 1 line · Xuesong Yang

My problem is I don't know if it suitable for my device use

Asoc.

Quoted 1 line

In my platform, there is only a I2S bypass module, It has a

route,

Quoted 1 line

select one of the I2S source as input,(from HDMI or cpu data) delay

the

Quoted 2 lines

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

easy

Quoted 2 lines

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.