All of lore.kernel.org
 help / color / mirror / Atom feed
From: dobatog@gmail.com (Gabriel Dobato)
To: linux-arm-kernel@lists.infradead.org
Subject: Ask for help. ARM:mvebu (CM-A510), add sound support using TLV320AIC23 audio-codec
Date: Mon, 23 Feb 2015 21:27:32 +0100	[thread overview]
Message-ID: <54EB8D34.7040003@gmail.com> (raw)

Hello,

I am trying to set the sound system using "simple-audio-card" and 
TLV320AIC23B audio codec in  Compulab CM-510 SoM.

This is my structure in DT, according to 
./KERNEL/Documentation/devicetree/bindings/sound/simple-card.txt, 
/KERNEL/Documentation/devicetree/bindings/sound/widgets.txt and the 
source code of the audio-codec ./KERNEL/sound/soc/codecs/tlv320aic23.c :

  sound {
                 compatible = "simple-audio-card";
                 simple-audio-card,name = "OnboardTLV320AIC23B";
                 simple-audio-card,format = "i2s";
                 simple-audio-card,bitclock-master = <&dailink_master>;
                 simple-audio-card,frame-master = <&dailink_master>;
                 simple-audio-card,widgets =
                         "Microphone", "Mic Input",
                         "Line", "Line Input",
                         "Line", "Line Out",
                         "Speaker", "Speaker",
                         "Headphone", "Headphone Jack";

                 simple-audio-card,routing =
                         "Line Out", "LOUT",
                         "Line Out", "ROUT",
                         "Line Out", "RHPOUT",
                         "Line Out", "LHPOUT",
                         "LLINEIN","Line Input",
                         "RLINEIN","Line Input",
                          "MICIN","Mic Input";
                 simple-audio-card,cpu {
                                 sound-dai = <&audio0 0>;
                         };
                 dailink_master: simple-audio-card,codec {
                                 sound-dai = <&opt_audio>;
                         };
                 };
};


/* TLV320AIC23 */
&opt_audio {
             status = "okay";
             #sound-dai-cells= <0>;
  };


And this is the kernel trace:

...
tlv320aic23-codec 0-001a: Control not supported for path LLINEIN -> 
[NULL] -> Line Input
tlv320aic23-codec 0-001a: ASoC: no dapm match for LLINEIN --> NULL --> 
Line Input
tlv320aic23-codec 0-001a: ASoC: Failed to add route LLINEIN -> NULL -> 
Line Input
tlv320aic23-codec 0-001a: Control not supported for path RLINEIN -> 
[NULL] -> Line Input
tlv320aic23-codec 0-001a: ASoC: no dapm match for RLINEIN --> NULL --> 
Line Input
tlv320aic23-codec 0-001a: ASoC: Failed to add route RLINEIN -> NULL -> 
Line Input
tlv320aic23-codec 0-001a: Control not supported for path MICIN -> [NULL] 
-> Mic Input
tlv320aic23-codec 0-001a: ASoC: no dapm match for MICIN --> NULL --> Mic 
Input
tlv320aic23-codec 0-001a: ASoC: Failed to add route MICIN -> NULL -> Mic 
Input
usb 2-1.2: new high-speed USB device number 3 using orion-ehci
asoc-simple-card sound: tlv320aic23-hifi <-> i2s mapping ok
...

ALSA device list:
   #0: OnboardTLV320AIC23B
...

[....] Setting up ALSA...amixer: Invalid command!
...


I think I have written the node according to the documentation, but 
probably I miss something.
Anyone has faced a similar problem?


I would really appreciate some kind of help.

Thank you,

Gabriel

             reply	other threads:[~2015-02-23 20:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23 20:27 Gabriel Dobato [this message]
2015-02-24  6:42 ` Ask for help. ARM:mvebu (CM-A510), add sound support using TLV320AIC23 audio-codec Marcin Wojtas
2015-02-24  8:41 ` Sebastian Hesselbarth
2015-02-24  8:41   ` Sebastian Hesselbarth
2015-02-24 21:16   ` Gabriel Dobato
2015-02-24 21:16     ` Gabriel Dobato
2015-02-24 21:54     ` Sebastian Hesselbarth
2015-02-24 21:54       ` Sebastian Hesselbarth

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=54EB8D34.7040003@gmail.com \
    --to=dobatog@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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.