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: How to transfer more than 2 channels between	i.MX25 & AD1938 using SSI?
Date: Fri, 27 Aug 2010 13:45:12 +0200	[thread overview]
Message-ID: <20100827114512.GC1473@pengutronix.de> (raw)
In-Reply-To: <4C752B37.40601@googlemail.com>

Hi Sven,

On Wed, Aug 25, 2010 at 04:39:51PM +0200, Sven Zeisberg wrote:
>   Hi,
> 
> has anybody succeeded to transfer more than 2 audio channels between 
> i.MX25 and a CODEC throught the i.MX25 SSI Port?
> 
> We have succeeded to set the CODEC (AD1938) as Master to the required 
> mode (TDM with 8 Timeslots and 32 Bit per Timeslot). However, as soon as 
> we start to play a wav file with aplay, we can see on the logic analyzer 
> that the data format on the SSI lines is reset to a stereo mode (2 
> channels with frame sync changing level between channels).
> 
> In the imx-ssi driver, I can see that .channel_max = 2 - therefore my 
> question: does this driver support more than two channels at all?

You have to call snd_soc_dai_set_tdm_slot() with the correct parameters.
This function is currently relatively untested, so expect bugs here. I
would try something like:

snd_soc_dai_set_tdm_slot(cpu_dai, 0xfffff00, 0xfffff00, 8, 32);

slot_width is currently not handled in this function, this may be
wrong. I don't know whether a slot length of 32bit is supported at all
in the hardware.

I only tested this driver with 2 channels since I have no access to a
codec supporting something else.

Hope that helps

  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-27 11:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-25 14:39 How to transfer more than 2 channels between i.MX25 & AD1938 using SSI? Sven Zeisberg
2010-08-27 11:45 ` Sascha Hauer [this message]
2010-08-30  6:30   ` Sven Zeisberg
  -- strict thread matches above, loose matches on Subject: below --
2010-08-26 15:30 Sven Zeisberg

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=20100827114512.GC1473@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).