alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Bennett <jbscience87@gmail.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Aaron Kling <webgeek1234@gmail.com>,
	Igor Grinberg <grinberg@compulab.co.il>,
	Valentin Raevsky <valentin@compulab.co.il>
Subject: Re: Help with wm8731 support for the Utilite (imx6q)
Date: Wed, 22 Oct 2014 08:32:24 -0500	[thread overview]
Message-ID: <CAB-pspcoyzQNWhGf_1ex86f2E9spotPGVJzDR0i2=98eMXfxiw@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5A_K9MV+Y5cBWcoLDOCnBH9VX7tkOmBTQh43UdqAtLzGA@mail.gmail.com>

On Wed, Oct 22, 2014 at 7:17 AM, Fabio Estevam <festevam@gmail.com> wrote:

> Hi Jonathan,
>
> On Wed, Oct 22, 2014 at 10:13 AM, Jonathan Bennett
> <jbscience87@gmail.com> wrote:
>
> >  BRILLIANT!!!
> > We've got sound. Thank you for the answer.
>
> Good job :-)
>
> > Questions:
> > First, what is the best way to set that to on by default? I know "alsactl
> > store wm8731audio" Makes it survive reboots. On a fresh install, though,
> > that should probably default to on.
> >
> > Second: I would love to see support for this get mainlined. Should I go
> back
> > and try to get simple-audio-card working, or stick with the compulab glue
> > driver?
>
> Yes, please try implementing simple-audio-card support.
>
Applying what I've learned back to the simple-audio-card, I can get a
muffled pop in the headphones, like something is powering up. That's about
it. When playing to the card, things think they play fine, but no real
audio. I've checked volume levels, and also used Valentin's hint.

Sound bits from dts:

       sound {
                compatible = "simple-audio-card";
                simple-audio-card,model = "wm8731-audio";
                simple-audio-card,format = "i2s";
                simple-audio-card,audio-routing =
                        "Line Out", "LOUT",
                        "Line Out", "ROUT",
                        "LLINEIN","Line In",
                        "RLINEIN","Line In";
                simple-audio-card,cpu {
                        sound-dai = <&ssi2>;
                        bitclock-master;
                        frame-master;
                };
                simple-audio-card,codec {
                        sound-dai = <&codec>;
                };
        };

/* i2c3 */
&i2c3 {
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_i2c3>;
   status = "okay";
   eeprom@50 {
      compatible = "at24,24c02";
      reg = <0x50>;
      pagesize = <16>;
   };

   codec: wm8731@1a {
      #sound-dai-cells = <0>;
      compatible = "wlf,wm8731";
      reg = <0x1a>;
      AVDD-supply = <&reg_3p3v>;
      HPVDD-supply = <&reg_3p3v>;
      DCVDD-supply = <&reg_3p3v>;
      DBVDD-supply = <&reg_3p3v>;
   };
};

&ssi2 {
        status = "okay";
        #sound-dai-cells = <0>;
};


&audmux {
        status = "okay";
        ssi2 {
                fsl,audmux-port = <1>;
                fsl,port-config = <
                        (IMX_AUDMUX_V2_PTCR_SYN |
                        IMX_AUDMUX_V2_PTCR_TFSDIR |
                        IMX_AUDMUX_V2_PTCR_TFSEL(3) |
                        IMX_AUDMUX_V2_PTCR_RCLKDIR |
                        IMX_AUDMUX_V2_PTCR_RCSEL(3 | 0x8) |
                        IMX_AUDMUX_V2_PTCR_TCLKDIR |
                        IMX_AUDMUX_V2_PTCR_TCSEL(3))
                        IMX_AUDMUX_V2_PDCR_RXDSEL(3)
                >;
        };
        pins4 {
                fsl,audmux-port = <3>;
                fsl,port-config = <
                        (IMX_AUDMUX_V2_PTCR_SYN |
                        IMX_AUDMUX_V2_PTCR_RCLKDIR |
                        IMX_AUDMUX_V2_PTCR_RCSEL(1 | 0x8) |
                        IMX_AUDMUX_V2_PTCR_TCLKDIR |
                        IMX_AUDMUX_V2_PTCR_TCSEL(1))
                        IMX_AUDMUX_V2_PDCR_RXDSEL(1)
                >;
        };

};

  reply	other threads:[~2014-10-22 13:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 16:57 Help with wm8731 support for the Utilite (imx6q) Jonathan Bennett
2014-10-18 19:13 ` Fabio Estevam
2014-10-19  5:35   ` Jonathan Bennett
2014-10-19  5:58     ` Jonathan Bennett
2014-10-20 12:06       ` Fabio Estevam
2014-10-20 16:29         ` Fabio Estevam
2014-10-20 19:59           ` Jonathan Bennett
2014-10-21 12:06             ` Valentin Raevsky
2014-10-21 18:04               ` Jonathan Bennett
2014-10-21 18:12                 ` Fabio Estevam
2014-10-21 18:49                   ` Jonathan Bennett
2014-10-21 22:37                     ` Jonathan Bennett
2014-10-22  8:04                       ` Valentin Raevsky
2014-10-22 12:13                         ` Jonathan Bennett
2014-10-22 12:17                           ` Fabio Estevam
2014-10-22 13:32                             ` Jonathan Bennett [this message]
2014-10-22 14:29                               ` Fabio Estevam
2014-10-22 16:02                                 ` Fabio Estevam
2014-10-22 17:43                                   ` Jonathan Bennett
2016-04-06  8:25                                     ` Karolina

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='CAB-pspcoyzQNWhGf_1ex86f2E9spotPGVJzDR0i2=98eMXfxiw@mail.gmail.com' \
    --to=jbscience87@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=festevam@gmail.com \
    --cc=grinberg@compulab.co.il \
    --cc=valentin@compulab.co.il \
    --cc=webgeek1234@gmail.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).