All of lore.kernel.org
 help / color / mirror / Atom feed
* SAIF configuration on imx28
@ 2012-08-21 11:24 George Stefan
  2012-08-21 11:56 ` Fabio Estevam
  0 siblings, 1 reply; 15+ messages in thread
From: George Stefan @ 2012-08-21 11:24 UTC (permalink / raw)
  To: alsa-devel

Hello,
I am using a custom board based on imx28 (running 2.6.35) with the SAIF
interface connected to the PCM output of a modem.
I have developed a dummy codec for the modem and customized mxs-devb.c to
use that codec instead of sgtl5000.
Clock master, fixed at 256kHz,
Frame sync master, fixed 125us frame duration (8kHz): 32 bits of total
data; first 16 bits are valid (while FS is high), following 16 are "don't
care" (while FS low)
16-bit linear samples, sent MSB first
"Long Frame" sync:  transmit and receive occur simultaneously while the
common FS line is active (high).
TX data with 0-bit delay; start at the rising edge of the clock, while FS
is high.
RX data with 0-bit delay; sample at the falling edge of the clock, while FS
is high.
This configuration is fixed so the only setup needed for SAIF is

dai_format = SND_SOC_DAIFMT_RIGHT_J | SND_SOC_DAIFMT_IB_NF |
                     SND_SOC_DAIFMT_CBM_CFM;
/* set cpu DAI configuration */
 ret = snd_soc_dai_set_fmt(cpu_dai, dai_format);
       if (ret < 0)
             return ret;

My problem is, although i am receiving dma irqs when i record ( arecord -f
S16_LE -r 8000 -c 1 <file>.wav), when i play the resulting file its just
silence.

[ 5295.890000] dump @ mxs_saif_trigger
[ 5295.890000] scr 101  , 107
[ 5295.890000] stat 80010041    , 80010071
[ 5295.890000] data 0   , ffffffff
[ 5295.890000] version 1010000  , 1010000
This  is a dump for arecord!

Do you have any ideeas?
Thanks,
George.

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

end of thread, other threads:[~2012-08-23 14:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-21 11:24 SAIF configuration on imx28 George Stefan
2012-08-21 11:56 ` Fabio Estevam
2012-08-21 12:39   ` George Stefan
2012-08-22  8:25     ` George Stefan
2012-08-22 21:30       ` Fabio Estevam
2012-08-23  6:41         ` George Stefan
2012-08-23  6:48           ` Dong Aisheng
2012-08-23  7:13             ` George Stefan
2012-08-23  7:46               ` Dong Aisheng
2012-08-23  9:15                 ` George Stefan
2012-08-23 12:54                   ` George Stefan
2012-08-23 12:59                     ` Fabio Estevam
2012-08-23 13:09                       ` George Stefan
2012-08-23 13:15                         ` Fabio Estevam
2012-08-23 14:50                           ` George Stefan

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.