From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: wendelin klimann <wklimann@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASoC: BeagleBoard driver development (PCM3168)
Date: Tue, 19 Feb 2013 12:10:06 +0100 [thread overview]
Message-ID: <51235D8E.7040705@ti.com> (raw)
In-Reply-To: <CAGxc5aCZarD+-4EqSA9QZx_RvXRvJuGpKXtp=RiUPdcATuxFng@mail.gmail.com>
On 02/16/2013 01:05 PM, wendelin klimann wrote:
> > I try to implement an PCM3168 audio codec from TI to the BeagleBoard but
> > actually i am stuck and it would be rally nice if one could help me a
> > little bit.
> > My ALSA driver version is 1.0.24 and i use an 3.2.18 kernel.
> > As a startingpoint i used the files
Is there any particular reason to use so ancient kernel and alsa-driver package?
> > .codec_dai_name = "pcm3168-hifi",
> > .codec_name = "pcm3168-codec",
>
> codec name should be: pcm3168-codec.0
>
> Thanks that helpt to get the (old machine-driver) driver to load correctly and
> now i can start with the mcbsp and hardware-testing.
...
> You should update you machine driver to use snd_soc_register_card() see other
> machine drivers as example (omap-twl4030.c is in the same directory for
> example and it is really simple).
>
> I took the omap3beagle.c (and the omap-twl4030.c with same results) file as
> template and adapted it. The driver can be compiled correctly but when i load
> it it is not inseting the corresponding codec (snd_soc_pcm3168.ko).
> Even if i load the snd_soc_pcm3168.ko driver manually and after load the
> snd_soc_pcm3168_soundcard.ko driver i do not find the soundcard and the codec in:
I'm confused now. Previously you said it is working and now you are telling
that it is not...
>
> $/sys/kernel/debug/asoc$: ls
> codecs dais omap3beagle platforms
>
> $/sys/kernel/debug/asoc$: cat codecs
> twl4030-codec
You do not have the codec loaded so the card is not going to come up.
What do you have in the kernel messages around this time?
Have you registered the platform device for your testing codec driver?
> According to the datasheet the PCM3168 have I2C or SPI control interface. You
> should have the driver as i2c/spi device so you can actually control it.
>
>
> As it is my first attempt to implement an audio codec i thought to start as
> simple as possible and do all the setup with the external pins and avoid to
> use the I2C or SPI at first. Of course i want to add it later on but i thought
> it would be wise to test the hardware first.
The time to start the driver in a proper way will save you lots of time... You
don't need to write two drivers (platform driver for testing followed by a new
real driver).
--
Péter
next prev parent reply other threads:[~2013-02-19 11:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-10 21:50 ASoC: BeagleBoard driver development (PCM3168) wendelin klimann
2013-02-11 13:49 ` Peter Ujfalusi
2013-02-16 12:05 ` wendelin klimann
2013-02-19 11:10 ` Peter Ujfalusi [this message]
[not found] ` <CAGxc5aDQ5btyvhcEnCcvNJZhRuCZWz8XS9SxOqcgmgBSx+bYZQ@mail.gmail.com>
[not found] ` <5124D1EB.9030404@ti.com>
2013-03-01 20:00 ` wendelin klimann
2013-03-23 14:37 ` Wendelin Klimann
2013-03-23 15:57 ` Daniel Mack
2013-03-23 21:56 ` wendelin klimann
2013-03-24 0:12 ` Daniel Mack
2013-04-04 13:15 ` Wendelin Klimann
2013-04-04 13:29 ` Daniel Mack
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=51235D8E.7040705@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=wklimann@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.