alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Sven Zeisberg <sven.zeisberg@googlemail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Problem to init AD1938 on i.MX25
Date: Mon, 16 Aug 2010 09:30:40 +0200	[thread overview]
Message-ID: <20100816073040.GH27749@pengutronix.de> (raw)
In-Reply-To: <4C68C3C5.5030701@googlemail.com>

Hello Sven,

On Mon, Aug 16, 2010 at 06:51:17AM +0200, Sven Zeisberg wrote:
>   Hello,
> 
> we're working on an ALSA  driver for AD1938 for i.MX25 based system.
> On the I²S the CODEC is Master. On the SPI, the MCU is Master.
> 
> SSI seems to work (when we set the CODEC as Master by Hardware).
> 
> We have problems to get the communication via SPI working. The CODEC 
> requires 24Bit words and we can set SPI according to this in the 
> board-file and verify this also with a logic analyzer. However, we can 
> send only one word to the CODEC! This first word is transferred 
> correctly, but all subsequent transfers show no activity on the SPI 
> lines. We do not get any error messages from the SPI drivers! All SPI 
> writes after the first word seem to be executed in software but show not 
> effect in hardware. All reads return 0xff.

This is probaly more a problem in the SPI driver than alsa related. The
i.MX SPI unit comes in many different variants and there may well be a
bug in the i.MX25 path. As a test you could configure the SPI pads in
gpio mode and use the bitbang gpio spi driver (drivers/spi/spi_gpio.c).
When this works you can hunt down the bug in the SPI driver.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2010-08-16  7:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-16  4:51 Problem to init AD1938 on i.MX25 Sven Zeisberg
2010-08-16  7:30 ` Sascha Hauer [this message]
2010-08-16  8:39   ` Sven Zeisberg
2010-08-16  8:47     ` Sascha Hauer
  -- strict thread matches above, loose matches on Subject: below --
2010-08-23 14:55 Murat Sahin

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=20100816073040.GH27749@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=sven.zeisberg@googlemail.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).