All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: Clark Dunson <cdunson@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Wolfson 5102 on Beaglebone Black using ALSA
Date: Sun, 15 May 2016 11:29:31 +0100	[thread overview]
Message-ID: <20160515102931.GO1646@localhost.localdomain> (raw)
In-Reply-To: <4BEB79E8-7315-48DF-BBB6-E944114621BF@gmail.com>

On Sat, May 14, 2016 at 03:16:18PM -0700, Clark Dunson wrote:
> Hey everybody!
> 
> We have been working on integrating the Wolfson 5102 codec with
> the Beaglebone Black.  We’ve made pretty decent progress,
> got the arizona code in kernel 4.4 registering the wm5102
> as ALSA sound card (both player and recorder), have McAsp0
> as 24.576 MHz clock source, and have 12 IRQs showing up in
> /proc/interrupts.
>
> We have been working with sound{compatible =
> "simple-audio-card”}, but now have hit our first
> real question. sysclk is hard coded to ‘0’ under
> simple-audio-card, and we had to hack the kernel and change
> that to ‘1’ to achieve ALSA sound card registration.
> We’d all like for this work to proceed without having to hack
> the kernel, and wondered if one of you might recommend another
> approach or selection for device tree sound{compatible} that
> might work out better?

Yes unfortunately this part doesn't map that well onto simple
card at the moment. Apart from the clock options you mention,
simple card currently only calls dai_set_sysclk, which will tie
audio interfaces to a clock domain on wm5102 but you also will
need to call codec_set_sysclk to configure the clocking domains
themselves. Possibly even set_pll as well if you need to
configure the PLL.

There are basically two options here, you could improve simple
card to add support needed for wm5102, although I am not
entirely clear at what point one would consider a part too
complex for simple card. Or write a machine driver for wm5102 on
Beaglebone Black, a good example to start from for this would be
sound/soc/samsung/bells.c.

Thanks,
Charles
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2016-05-15 10:29 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 [this message]
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
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=20160515102931.GO1646@localhost.localdomain \
    --to=ckeepax@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=cdunson@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 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.