9 Dec
2009
9 Dec
'09
11:45 a.m.
On Wed, Dec 09, 2009 at 07:39:19AM +0100, Marc Garnier wrote:
You mean I just have to use snd_soc_register_dai()? Things like soc_init_card() and snd_soc_new_pcms() are not mandatory?
init_card() has been removed now, but new_pcms() is still required - like I say, look at one of the existing drivers like the spdif transciever driver for examples of drivers which do what you're trying to do here.
static int __init q2686_modinit(void) { return snd_soc_register_dai(&q2686_dai); } module_init(q2686_modinit);
This should be done from a platform device, not from module init.