* how to combine mutil-channel in playback or capture?
@ 2013-03-22 8:08 Zhang wei
2013-03-22 8:20 ` Daniel Mack
0 siblings, 1 reply; 4+ messages in thread
From: Zhang wei @ 2013-03-22 8:08 UTC (permalink / raw)
To: ALSA development
I have already achieved the alsa-driver which can playback and capture function with two channel.
My board based on ARM9 which have 3 ADC & 1 DAC in IIS bus and all of them shared the same BCLK and LRCK. The pins figure Like this:
_________________
| BCLK |___________
| |
| LRCK |___________
| |
| ADCDAT0 |___________
| |
| ADCDAT1 |___________
| |
| ADCDAT2 |___________
| |
| DACDATA |___________
| |
|_______________|
Every ADCDATn(n=0,1,2) has two channel so the question is how can I get multi-channel audio data such as 4 or 6 in capture funciton?
BR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to combine mutil-channel in playback or capture?
2013-03-22 8:08 how to combine mutil-channel in playback or capture? Zhang wei
@ 2013-03-22 8:20 ` Daniel Mack
[not found] ` <6B947C8AC4195040A8C6876A496C644A081956F9@BJ-MAIL-04.vimicro.com>
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2013-03-22 8:20 UTC (permalink / raw)
To: Zhang wei; +Cc: ALSA development, broonie, lgirdwood
Hi Zhang,
On 22.03.2013 09:08, Zhang wei wrote:
> I have already achieved the alsa-driver which can playback and
> capture function with two channel.
> My board based on ARM9 which have 3 ADC & 1 DAC in IIS bus and all
> of them shared the same BCLK and LRCK. The pins figure Like this:
>
> _________________
> | BCLK |___________
> | |
> | LRCK |___________
> | |
> | ADCDAT0 |___________
> | |
> | ADCDAT1 |___________
> | |
> | ADCDAT2 |___________
> | |
> | DACDATA |___________
> | |
> |_______________|
>
> Every ADCDATn(n=0,1,2) has two channel so the question is how can I
> get multi-channel audio data such as 4 or 6 in capture funciton?
It depends on how the whole setup looks like and what the driver for all
the DAIs support. If you have 4 different stereo Codecs, you would
usually instanciate 4 CPU DAI driver instances, each controlling one
bi-directional I2S bus, and then build links between each of them and
their Codec counterpart. If your Codec is capable of handling all 4
stereo pairs, you need to have support for the same in you CPU DAI.
So you need to be more specific about which components you are actually
using, and what kind of alsa-driver you have written.
In general, please also read up the documents in
Documentation/sound/alsa/soc/.
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-22 10:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 8:08 how to combine mutil-channel in playback or capture? Zhang wei
2013-03-22 8:20 ` Daniel Mack
[not found] ` <6B947C8AC4195040A8C6876A496C644A081956F9@BJ-MAIL-04.vimicro.com>
2013-03-22 9:27 ` 答复: " Daniel Mack
[not found] ` <6B947C8AC4195040A8C6876A496C644A08195768@BJ-MAIL-04.vimicro.com>
2013-03-22 10:19 ` 答复: " Daniel Mack
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.