All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caleb Crome <caleb@crome.org>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Multiple codecs on one sound card for multi-channel sound card
Date: Tue, 8 Sep 2015 18:02:27 -0700	[thread overview]
Message-ID: <CAG5mAdyL-xH2ZNTtDMhCWW-nAX_GVtRxFS5b5FANFnK64kE65g@mail.gmail.com> (raw)

Hi all,
   What's the current best practices to specify multiple codecs on one
sound card, with all codecs sharing a single TDM bus?

I have a card with up to 32 TLV320AIC33 codecs on it.  For the moment, we
can limit the discussion to only 16 codecs, so we don't have to get extra
serializers involved...

I currently have something like this in my am335x-boneblack.dts file:

(i.e. attempting to set tdm slot width and num in the i2c codec)

but it doesn't seem to be pickin up the fact that I want all the codecs
linked together as one.

(FYI, the first codec, i.e. tlv32aic3x_a should be the master, and all
others including the CPU will be slaves).

Thanks for any help!

BTW, I'm happy to use whatever kernel will support me with the minimal
amount of effort!

Sincerely,
  -Caleb


&i2c1 {
clock-frequency = <100000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins_default>;
status="okay";

tlv320aic3x_a: tlv320aic3x@18 {
       #sound-dai-cells = <0>;
compatible = "ti,tlv320aic3x";
reg = <0x18>;
status = "okay";
dai-tdm-slot-width = <16>;
dai-tdm-slot-num   = <0>;
};
tlv320aic3x_b: tlv320aic3x@19 {
       #sound-dai-cells = <0>;
compatible = "ti,tlv320aic3x";
reg = <0x19>;
status = "okay";
dai-tdm-slot-width = <16>;
dai-tdm-slot-num   = <2>;
};
tlv320aic3x_c: tlv320aic3x@1a {
compatible = "ti,tlv320aic3x";
reg = <0x1a>;
status = "okay";
dai-tdm-slot-width = <16>;
dai-tdm-slot-num   = <4>;
};
tlv320aic3x_d: tlv320aic3x@1b {
compatible = "ti,tlv320aic3x";
reg = <0x1b>;
status = "okay";
dai-tdm-slot-width = <16>;
dai-tdm-slot-num   = <6>;
};
};

sound {
     compatible = "simple-audio-card";
     simple-audio-card,name = "puck audio";
     // simple-audio-card,widgets=
     // simple-audio-card,routing=
     simple-audio-card,mclk-fs = <256>;
     status="okay";
     simple-audio-card,bitclock-master = <&tlv320aic3x_a>;
     simple-audio-card,frame-master    = <&tlv320aic3x_a>;
     simple-audio-card,dai-link@0 {
          format = "left_j";
  cpu {
    sound-dai = <&mcasp0 0>;
  };

// *** Here's where I'm really confused -- this part doesn't seem to be
supported to
// have all the codecs on a single DAI.
// The examples given  seem to be for different codec DAIs
// sharing a single CPU DAI, but not used at the same time.

  codec {
    #sound-dai-cells = <0>;
    sound-dai          = <
    &tlv320aic3x_a
    &tlv320aic3x_b
    &tlv320aic3x_c
      &tlv320aic3x_d
    >;
  };
     };
};

             reply	other threads:[~2015-09-09  1:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09  1:02 Caleb Crome [this message]
2015-09-10 18:26 ` Multiple codecs on one sound card for multi-channel sound card Caleb Crome
2015-09-15  1:07 ` Caleb Crome
2015-09-16  9:57   ` arnaud.mouiche
2015-09-16 22:07     ` Caleb Crome
2015-09-17  8:51       ` arnaud.mouiche
2015-09-17 13:38         ` Caleb Crome
2015-09-17 14:33           ` arnaud.mouiche
2015-09-17 15:34             ` Caleb Crome
2015-09-17 16:09               ` arnaud.mouiche
2015-09-17 17:39                 ` Caleb Crome
2019-02-12 10:55 Yann CARDAILLAC
2019-02-18  8:32 ` Arnaud Mouiche

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=CAG5mAdyL-xH2ZNTtDMhCWW-nAX_GVtRxFS5b5FANFnK64kE65g@mail.gmail.com \
    --to=caleb@crome.org \
    --cc=alsa-devel@alsa-project.org \
    /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.