alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
To: Nicolin Chen <nicoleotsuka@gmail.com>
Cc: Shengjiu Wang <shengjiu.wang@freescale.com>,
	Lars-Peter Clausen <lars@metafoo.de>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Markus Pargmann <mpa@pengutronix.de>,
	Michael Trimarchi <michael@amarulasolutions.com>,
	Fabio Estevam <festevam@gmail.com>,
	Shawn Guo <shawn.guo@freescale.com>
Subject: Re: No sound captured with SGTL5000 on i.MX6 in I²S master mode
Date: Thu, 9 Oct 2014 16:02:07 +0200	[thread overview]
Message-ID: <CAL8zT=gEMwbJq=3Tf6FAg2_fyAK4Q07-hVn5eYZKFSBfC-8iBQ@mail.gmail.com> (raw)
In-Reply-To: <CAL8zT=gELK8+LOgVn6qXnaTm=Vcx=zn8OxfQBh_9m28NQtR2pA@mail.gmail.com>

Hi

I use fsl-asoc-card now.

This is working when compiling as a module, and when doing a modprobe
manually, but when I compile it as built-in, with these :
CONFIG_SND_SOC_IMX_SGTL5000 is not set
CONFIG_SND_SOC_FSL_ASOC_CARD=y
CONFIG_SND_SOC_SGTL5000=y

I get the following error :
[   13.561618] fsl-asoc-card sound: ASoC: CODEC DAI sgtl5000 not registered
[   13.568503] fsl-asoc-card sound: snd_soc_register_card failed (-517)
[   13.574992] platform sound: Driver fsl-asoc-card requests probe deferral

It loops on it during boot, and never registers...

If I have :
CONFIG_SND_SOC_IMX_SGTL5000 is not set
CONFIG_SND_SOC_FSL_ASOC_CARD=m
CONFIG_SND_SOC_SGTL5000=m

And after login :
$> lsmod
Module                  Size  Used by
snd_soc_sgtl5000       14074  0
$> modprobe snd-soc-fsl-asoc-card
[   65.300995] fsl-asoc-card sound: ASoC: CODEC DAI sgtl5000 not registered
[   65.307963] fsl-asoc-card sound: snd_soc_register_card failed (-517)
[   65.314423] platform sound: Driver fsl-asoc-card requests probe deferral
$> rmmod snd-soc-sgtl5000
$> modprobe snd-soc-sgtl5000
[  138.936753] sgtl5000 1-000a: sgtl5000 revision 0x11
[  138.987974] 1-000a: 1200 mV normal
[  139.000923] sgtl5000 1-000a: Using internal LDO instead of VDDD
[  139.032169] fsl-asoc-card sound: sgtl5000 <-> 2028000.ssi mapping ok
[  139.038624] fsl-asoc-card sound: ASoC: no source widget found for
ASRC-Playback
[  139.045984] fsl-asoc-card sound: ASoC: Failed to add route
ASRC-Playback -> direct -> CPU-Playback
[  139.055187] fsl-asoc-card sound: ASoC: no sink widget found for ASRC-Capture
[  139.062253] fsl-asoc-card sound: ASoC: Failed to add route
CPU-Capture -> direct -> ASRC-Capture

The routes are not ok, but I think I read something about it another
thread, but it works.
It seems that if snd-soc-sgtl5000 is already registered then it does
not work. It is probably due to my DT ?

Here is an extract of the DT :
/ {
    sound {
        compatible = "fsl,imx6q-vbx3-sgtl5000",
                 "fsl,imx-audio-sgtl5000";
        model = "imx6q-vbx3-sgtl5000";
        ssi-controller = <&ssi1>;
        audio-codec = <&codec>;
        audio-routing =
            "MIC_IN", "Mic Jack",
            "Mic Jack", "Mic Bias",
            "A1N1L", "Line In Jack",
            "A1N1R", "Line In Jack";
        mux-int-port = <1>;
        mux-ext-port = <5>;
    };
};

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

    codec: sgtl5000@0a {
        compatible = "fsl,sgtl5000";
        reg = <0x0a>;
        clocks = <&clks 201>;
        VDDA-supply = <&vgen6_reg>;
        VDDIO-supply = <&vgen6_reg>;
        sysclk = <24000000>;
    };
};

Thanks,
JM

  reply	other threads:[~2014-10-09 14:02 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 12:56 No sound captured with SGTL5000 on i.MX6 in I²S master mode Jean-Michel Hautbois
2014-09-18 13:30 ` Fabio Estevam
2014-09-18 13:35   ` Michael Trimarchi
2014-09-18 13:45     ` Jean-Michel Hautbois
2014-09-18 13:55       ` Michael Trimarchi
2014-09-18 14:09         ` Jean-Michel Hautbois
2014-09-18 16:09           ` Jean-Michel Hautbois
2014-09-18 17:05             ` Nicolin Chen
2014-09-18 17:26               ` Michael Trimarchi
2014-09-18 17:45                 ` Nicolin Chen
2014-09-18 18:03                   ` Michael Trimarchi
2014-09-18 18:13                     ` Nicolin Chen
2014-09-18 18:18                       ` Michael Trimarchi
2014-09-18 17:28               ` Fabio Estevam
2014-09-18 17:49                 ` Nicolin Chen
2014-09-18 17:58                   ` Fabio Estevam
2014-09-18 18:07                     ` Nicolin Chen
2014-09-18 18:14                       ` Fabio Estevam
2014-09-18 18:39                         ` Nicolin Chen
2014-09-18 23:35                           ` Fabio Estevam
2014-09-18 23:50                             ` Nicolin Chen
2014-09-19  7:42                               ` Jean-Michel Hautbois
2014-09-19  7:52                                 ` Nicolin Chen
2014-09-19  9:18                                   ` Jean-Michel Hautbois
2014-09-19 12:53                                     ` Jean-Michel Hautbois
2014-10-09 14:02                                       ` Jean-Michel Hautbois [this message]
2014-10-09 14:18                                         ` Fabio Estevam
2014-10-09 14:26                                           ` Jean-Michel Hautbois
2014-10-09 15:06                                             ` Fabio Estevam
2014-10-09 15:14                                               ` Jean-Michel Hautbois
2014-10-09 15:19                                                 ` Fabio Estevam
2014-10-10 15:49                                                   ` Jean-Michel Hautbois
2014-10-10 15:54                                                     ` Fabio Estevam
2014-09-22  3:26                       ` Fabio Estevam
2014-09-22  3:41                         ` Nicolin Chen
2014-09-18 17:19   ` Nicolin Chen

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='CAL8zT=gEMwbJq=3Tf6FAg2_fyAK4Q07-hVn5eYZKFSBfC-8iBQ@mail.gmail.com' \
    --to=jean-michel.hautbois@vodalys.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=festevam@gmail.com \
    --cc=lars@metafoo.de \
    --cc=michael@amarulasolutions.com \
    --cc=mpa@pengutronix.de \
    --cc=nicoleotsuka@gmail.com \
    --cc=shawn.guo@freescale.com \
    --cc=shengjiu.wang@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).