alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd_soc_dai_link.init()
@ 2007-05-30 22:34 Timur Tabi
  2007-05-31 17:02 ` snd_soc_dai_link.init() Liam Girdwood
  0 siblings, 1 reply; 8+ messages in thread
From: Timur Tabi @ 2007-05-30 22:34 UTC (permalink / raw)
  To: Liam Girdwood, alsa-devel

Liam,

Why does the init() function pointer in the snd_soc_dai_link structure take a 
snd_soc_codec pointer?  Wouldn't it make more sense for it to take a snd_soc_dai_link 
pointer?  That way, I could use the init() function to initialize the structure.

I'm trying to write a function that will initialize the codec_dai pointer.  I thought I 
could use snd_soc_dai_link.init(), but I don't know how to get the pointer to the 
snd_soc_dai_link structure from a snd_soc_codec structure.



/* SoC machine DAI configuration, glues a codec and cpu DAI together */
struct snd_soc_dai_link  {
	char *name;			/* Codec name */
	char *stream_name;		/* Stream name */

	/* DAI */
	struct snd_soc_codec_dai *codec_dai;
	struct snd_soc_cpu_dai *cpu_dai;

	/* machine stream operations */
	struct snd_soc_ops *ops;

	/* codec/machine specific init - e.g. add machine controls */
	int (*init)(struct snd_soc_codec *codec);
};


-- 
Timur Tabi
Linux Kernel Developer @ Freescale

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

end of thread, other threads:[~2007-06-01 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-30 22:34 snd_soc_dai_link.init() Timur Tabi
2007-05-31 17:02 ` snd_soc_dai_link.init() Liam Girdwood
2007-05-31 17:04   ` snd_soc_dai_link.init() Timur Tabi
2007-05-31 17:09     ` snd_soc_dai_link.init() Liam Girdwood
2007-05-31 23:14       ` snd_soc_dai_link.init() Timur Tabi
2007-06-01 13:38         ` snd_soc_dai_link.init() Liam Girdwood
2007-06-01 14:41           ` snd_soc_dai_link.init() Liam Girdwood
2007-06-01 16:42             ` snd_soc_dai_link.init() Timur Tabi

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).