public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with simple-card
@ 2014-01-15 18:18 Jean-Francois Moine
  2014-01-15 18:50 ` Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jean-Francois Moine @ 2014-01-15 18:18 UTC (permalink / raw)
  To: Xiubo Li, broonie; +Cc: lgirdwood, alsa-devel, linux-kernel

Xiubo,

I did a mistake in the v1 of my 'ASoC: simple-card: simplify code': I
did not initialize the pointer to the asoc_simple_card_dai_init()
function when DT. Then, I fixed that, and the simple card does not work
for me.

First, without any 'format' in the DT, I get a fmt for each CPU / CODEC
DAI: SND_SOC_DAIFMT_CBS_CFS is always set. Well, some code is executed
for nothing, but this is not critical.

The main problem is about sysclk: when there is no clock in the DT,
you get the clock of the CPU or CODEC DAI. In my system, two clocks
are declared in the controller CPU DAI, but there is no .set_sysclk
pointer. So, snd_soc_dai_set_sysclk() returns -EINVAL and the card is
not created.

As I don't know why you need these fmt and sysclk, may you have a
look at these problems?

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

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

end of thread, other threads:[~2014-01-16  3:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 18:18 Problems with simple-card Jean-Francois Moine
2014-01-15 18:50 ` Mark Brown
2014-01-15 18:56 ` Mark Brown
2014-01-16  0:30   ` [alsa-devel] " Kuninori Morimoto
2014-01-16  3:47 ` Li.Xiubo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox