All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: Zhang wei <zhangwei@vimicro.com>
Cc: ALSA development <alsa-devel@alsa-project.org>,
	broonie@opensource.wolfsonmicro.com, lgirdwood@gmail.com
Subject: Re: how to combine mutil-channel in playback or capture?
Date: Fri, 22 Mar 2013 09:20:15 +0100	[thread overview]
Message-ID: <514C143F.8060100@gmail.com> (raw)
In-Reply-To: <6B947C8AC4195040A8C6876A496C644A0819563C@BJ-MAIL-04.vimicro.com>

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

  reply	other threads:[~2013-03-22  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22  8:08 how to combine mutil-channel in playback or capture? Zhang wei
2013-03-22  8:20 ` Daniel Mack [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=514C143F.8060100@gmail.com \
    --to=zonque@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lgirdwood@gmail.com \
    --cc=zhangwei@vimicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.