Lines Matching defs:cx20442
2 * cx20442.c -- CX20442 ALSA Soc Audio driver
23 #include "cx20442.h"
301 .name = "cx20442",
342 dev_err(&pdev->dev, "cx20442 not yet discovered\n");
379 static int cx20442_register(struct cx20442_priv *cx20442)
381 struct snd_soc_codec *codec = &cx20442->codec;
390 snd_soc_codec_set_drvdata(codec, cx20442);
395 codec->reg_cache = &cx20442->reg_cache;
396 codec->reg_cache_size = ARRAY_SIZE(cx20442->reg_cache);
424 kfree(cx20442);
428 static void cx20442_unregister(struct cx20442_priv *cx20442)
431 snd_soc_unregister_codec(&cx20442->codec);
434 kfree(cx20442);
439 struct cx20442_priv *cx20442;
442 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL);
443 if (cx20442 == NULL)
446 codec = &cx20442->codec;
453 platform_set_drvdata(pdev, cx20442);
455 return cx20442_register(cx20442);
460 struct cx20442_priv *cx20442 = platform_get_drvdata(pdev);
462 cx20442_unregister(cx20442);
468 .name = "cx20442",
490 MODULE_ALIAS("platform:cx20442");