Lines Matching refs:cx20442

3  * cx20442.c  --  CX20442 ALSA Soc Audio driver
21 #include "cx20442.h"
91 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
96 return cx20442->reg_cache;
155 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
164 if (!cx20442->tty || !cx20442->tty->ops->write)
167 old = cx20442->reg_cache;
168 cx20442->reg_cache = value;
193 if (cx20442->tty->ops->write(cx20442->tty, buf, len) != len)
240 struct cx20442_priv *cx20442;
247 cx20442 = snd_soc_component_get_drvdata(component);
250 cx20442->tty = NULL;
266 struct cx20442_priv *cx20442;
271 cx20442 = snd_soc_component_get_drvdata(component);
273 if (!cx20442->tty) {
277 cx20442->tty = tty;
289 .name = "cx20442",
305 .name = "cx20442-voice",
325 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
332 if (IS_ERR(cx20442->por))
333 err = PTR_ERR(cx20442->por);
335 err = regulator_enable(cx20442->por);
340 if (IS_ERR(cx20442->por))
341 err = PTR_ERR(cx20442->por);
343 err = regulator_disable(cx20442->por);
354 struct cx20442_priv *cx20442;
356 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL);
357 if (cx20442 == NULL)
360 cx20442->por = regulator_get(component->dev, "POR");
361 if (IS_ERR(cx20442->por)) {
362 int err = PTR_ERR(cx20442->por);
378 kfree(cx20442);
382 cx20442->tty = NULL;
384 snd_soc_component_set_drvdata(component, cx20442);
393 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
395 if (cx20442->tty) {
396 struct tty_struct *tty = cx20442->tty;
400 if (!IS_ERR(cx20442->por)) {
402 regulator_put(cx20442->por);
406 kfree(cx20442);
433 .name = "cx20442-codec",
443 MODULE_ALIAS("platform:cx20442-codec");