All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ALSA SOC Driver (mxs-wm8753)
@ 2014-07-15  9:14 Kevin Startup
  2014-07-18  8:44 ` Charles Keepax
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Startup @ 2014-07-15  9:14 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

Hi there

I am attempting to configure a Wolfson WM8753 on a Ka-Ro TX28S, I was wondering if you had any success managing this and if you could give me some pointers.  Currently, I think my device tree may be wrong.  I am getting this message on bootup:

mxs-wm8753 sounds.12: ASoC: CODEC DAI wm8753 not registered

Any help would be greatly appreciated
Many Thanks
Kevin Startup
A.W. Communication Systems Ltd.
email: kevin@awcsl.com<mailto:kevin@awcsl.com>
Tel: +44(0)1697 748717
Fax: +44(0)1697 748778

A.W. Communication Systems Ltd
VAT No. GB 827 4389 00
Registered No. 4891652
Registered Office Crook Barn, The Crook, Roweltown, Carlisle, UK

^ permalink raw reply	[flat|nested] 9+ messages in thread
* ALSA SOC Driver (mxs-wm8753)
@ 2013-03-04 18:25 John Graham
  2013-04-29 20:41 ` Mark Brown
  0 siblings, 1 reply; 9+ messages in thread
From: John Graham @ 2013-03-04 18:25 UTC (permalink / raw)
  To: alsa-devel

Hi there,

I'm completely new to both kernel/ALSA driver programming (at least at
a serious level) and was looking for some help on a project I'm
working on - I'm part way there but I've kind of hit a brick wall and
don't know where to turn.

I'm trying to get a codec working on a new platform (new for the codec
- the platform itself is not new). Here are the details:

The audio codec is the Wolfson WM8753, which already has a codec
driver in the kernel mainline tree. We also have a vendor-supplied
(but GPL) patch to make the wm8753 work on a CC9M2443 (based on the
Samsung S3C2443). This includes the glue code ("platform" code?) in
sound/soc/s3c24xx/cc9m2443js_wm8753.c. We have a product with this
combination fully working.

The platform is the Karo TX28 (based on the Freescale i.MX28), and
there are already drivers in the kernel tree to make the TX28 work
with an SGTL5000 codec in sound/soc/mxs/mxs-sgtl5000.c. We also have a
product with this combination fully working.

Now we want to move the WM8753 over from the CC9M2443 to work on the TX28.

To simplify, what I *have* is:

    CC9M2443 <----> WM8753
    TX28     <----> SGTL5000

and what I *want* is:

                /-> WM8753
    TX28     <-/

What I was hoping I could do was just "mash" the existing drivers
together - i.e. copy sound/soc/mxs/mxs-sgtl5000.c into
sound/soc/mxs/mxs-wm8753.c, change the parts in it that were specific
for the SGTL5000 to the parts that drive the wm8753 in
sound/soc/s3c24xx/cc9m2443js_wm8753.c, tell the TX28 to probe for it
and that it would "magically work" (hey, crazier things have
happened...).

Obviously, it does not work, but I've got it a little way down the
line. The WM8752 is probed for by the TX28 and recognized - the I2C
control works, and you can change the mixer settings with amixer. When
I try to record (using arecord) I can see with an oscilloscope the I2S
clock lines look correct (in that they look the same as when the
CC9M2443 talks to the WM8753 at the same audio rate).

The problem now is that the I2S data lines don't look right - the line
from codec to TX28 looks like a (more-or-less) square wave with the
same period as the I2S clock, but only going from ~3.1 - ~3.5 V, as
opposed to the 0 - ~3.3 V I expect. Furthermore, it's a pretty regular
square wave - it doesn't have all the breaks you see on a working I2S
data line.

I know I probably haven't provided the right detail to get to the
bottom of this problem, but part of my problem is that I'm so new to
this that I'm not entirely sure where the problem might lie, or what
extra detail to include to ask for more help. Is anyone able to point
me in the right direction/suggest some ideas as to what might be
wrong/anything else at all?

Any help would be much appreciated - many thanks,

John Graham

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-07-23  8:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  9:14 ALSA SOC Driver (mxs-wm8753) Kevin Startup
2014-07-18  8:44 ` Charles Keepax
2014-07-18 10:14   ` Kevin Startup
2014-07-18 10:53     ` Charles Keepax
2014-07-18 13:02       ` Kevin Startup
2014-07-18 14:28         ` Charles Keepax
2014-07-23  8:40           ` Kevin Startup
  -- strict thread matches above, loose matches on Subject: below --
2013-03-04 18:25 John Graham
2013-04-29 20:41 ` Mark Brown

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.