alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: Clark Dunson <cdunson@gmail.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>, alsa-devel@alsa-project.org
Subject: Re: Wolfson 5102 on Beaglebone Black using ALSA
Date: Mon, 30 May 2016 09:35:44 +0100	[thread overview]
Message-ID: <20160530083544.GG20422@localhost.localdomain> (raw)
In-Reply-To: <685DDADE-5203-4557-9AD3-54856B718938@gmail.com>

On Fri, May 27, 2016 at 06:58:39PM -0700, Clark Dunson wrote:
> We have moved from breadboard to protoboard, and with many
> orders booked, I daresay that we have moved from experimenting
> to committed.  Our application samples mostly channels of
> scientific data, but one of audio.  Ergo we will have an
> ongoing interest in the wm5102 and its DSP capabilities.  The
> more processing that we can do on the codec, the better.
>

There are some hoops to jump through to get access to the
necessary compilers etc. for the DSP, although again Joao who I
CCed on your other email would be a good place to start the
process of getting access to that.

> We are pursuing Master mode at the moment, where the McAsp on
> the BBB supplies 24.576 MHz to wm5102 on MCLK1, and then BCLK
> and WCLK are generated by wm5102.  We sample at 8x48k, and are
> driving AIF1 with dspB format.  Also, we have need to send out
> a calibration signal ~daily, via SPKOUTL.
>

All sounds fine.

> So far we have simply added our stuff at the end of the
> arizona-core.c probe, but would like to do it in a more
> up-streamable way.  In looking at the samsung/bells.c driver
> (thank you again Charles), we realized that anything past basic
> configurations will be difficult with the device tree alone.
> The regmap stuff is a nice form of API, easy to deal with.
>

Yeah please avoid doing this, the driver should support all the
features you require from the sound of things. There should be no
need to hard code register writes.

What sort of things are you setting up with these register
writes? Lets see if I can point you in the direction of the
correct place to put some of those.

> We had to simply disinvite extcon-arizona from the party
> though.  On both the WM5102-6271-CS137-M-SCH-REV2.03 and our
> protoboard, JACKDET is an IRQ gone wild.  On the Wolfson board,
> inserting my headphones into the jack shut it up.  But on our
> protoboard, where we left that pin unconnected, we found that
> the probe of extcon-arizona hard enables JACKDET.
>

I am surprised you are seeing issues on one of our boards, they
are all fairly well tested here. I would quite like to see a
kernel log on that one if I can?

Apart from that, this all seems reasonable, the extcon driver
exists to control the jack detection. If that is not wired up on
your system then not building in this part of the system seems
the correct response.

Thanks,
Charles

  reply	other threads:[~2016-05-30  8:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-14 22:16 Wolfson 5102 on Beaglebone Black using ALSA Clark Dunson
2016-05-15 10:29 ` Charles Keepax
2016-05-16 12:33 ` Peter Ujfalusi
2016-05-17 15:12   ` Clark Dunson
2016-05-22 13:18     ` Charles Keepax
2016-05-28  1:58       ` Clark Dunson
2016-05-30  8:35         ` Charles Keepax [this message]
2016-05-30 15:18           ` Clark Dunson
2016-05-30 17:19             ` Charles Keepax
2016-06-15 16:14               ` Clark Dunson
2016-06-15 16:50                 ` Charles Keepax

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=20160530083544.GG20422@localhost.localdomain \
    --to=ckeepax@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=cdunson@gmail.com \
    --cc=peter.ujfalusi@ti.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).