alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Need help with WM8960
@ 2012-09-12 23:09 Timur Tabi
  2012-09-13  3:13 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2012-09-12 23:09 UTC (permalink / raw)
  To: Mark Brown, Alsa-devel

Mark,

I'm trying to port some old Linux code to upstream for a third-party board
that uses a Freescale P1022 and a Wolfson WM8960. I've got audio working,
but it's using a hack from the third-party code, and I don't know how to
do implement the change properly, mostly because I don't understand DAPM.

The first problem is that I get this:

	wm8960 0-001a: No platform data supplied

What kind of platform data is the driver expecting, and how do I get it
that data?  I don't seem to need any platform data to make the code work.

Second, I uploaded the hack to wm8960.c at http://pastebin.com/RwVy6cQg

You can see that he disables the DAPM controls for DACL, DACR, ADCL, and
ADCR, and forces those bits set in the wm8960_probe function.  There's
also a comment that documents some limitations.  What is the proper way to
implement this change?

Third, in order to actually hear audio, I had to unmute the "Left Output
Mixer PCM" and "Right Output Mixer PCM".  Is this something that the
machine driver should do automatically?  And if so, how?

-- 
Timur Tabi
Linux kernel developer at Freescale

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

end of thread, other threads:[~2012-09-19  2:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 23:09 Need help with WM8960 Timur Tabi
2012-09-13  3:13 ` Mark Brown
2012-09-13  3:26   ` Tabi Timur-B04825
2012-09-13  3:31     ` Mark Brown
2012-09-13 14:43   ` Timur Tabi
2012-09-13 15:44     ` Timur Tabi
2012-09-13 16:29       ` Timur Tabi
2012-09-19  2:59         ` Mark Brown

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).