alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [Q] ASoC: What's the real meaning of SND_SOC_DAIFMT_NB_NF?
@ 2012-02-23 12:40 javier Martin
  2012-02-23 15:19 ` Mark Brown
  0 siblings, 1 reply; 10+ messages in thread
From: javier Martin @ 2012-02-23 12:40 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown

Hi,
I am trying to configure a DAI interface between a i.MX27 SSI and a
wm8974 codec.

The definition of SND_SOC_DAIFMT_NB_NF specifies 'normal' bit clock
and frame for the specified format.
http://lxr.linux.no/#linux+v3.2.7/include/sound/soc-dai.h#L48

As I wasn't sure about the meaning of 'normal'  I've dug into the code
of some platforms to see what they do. What I've found, however, is
that it doesn't seem to be an agreement about it.

Let me expose some examples:

1. Frame clock is active High:

i.MX: http://lxr.linux.no/#linux+v3.2.7/sound/soc/imx/imx-ssi.c#L131 +
MCIMX27RM.pdf (p 1606)    (default)
PXA:  http://lxr.linux.no/#linux+v3.2.7/sound/soc/pxa/pxa-ssp.c#L498
pxa-ssp.c + PXA3xx_DM_Vol_IV.pdf (p 332)  (not default)

2. Frame clock is active Low:

OMAP: http://lxr.linux.no/#linux+v3.2.7/sound/soc/omap/omap-mcbsp.c#L478
+ sprugn4h.pdf (p 3165) (not default)

Some chips like s6000 seem to provide a more original use for this flag:

http://lxr.linux.no/#linux+v3.2.7/sound/soc/s6000/s6000-i2s.c#L255

Similar behavior has been found for bit clock.

ALso, it seems that there is no possibility to specify different
configurations for RX and TX parts.

-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com

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

end of thread, other threads:[~2012-02-24 14:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 12:40 [Q] ASoC: What's the real meaning of SND_SOC_DAIFMT_NB_NF? javier Martin
2012-02-23 15:19 ` Mark Brown
2012-02-23 15:58   ` javier Martin
2012-02-23 16:14     ` Mark Brown
2012-02-24  7:53       ` javier Martin
2012-02-24  8:34         ` Peter Ujfalusi
2012-02-24 11:05           ` javier Martin
2012-02-24 11:53             ` Mark Brown
2012-02-24 14:09             ` Peter Ujfalusi
2012-02-24 11:20         ` 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).