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;
265 struct cx20442_priv *cx20442;
270 cx20442 = snd_soc_component_get_drvdata(component);
272 if (!cx20442->tty) {
276 cx20442->tty = tty;
282 .name = "cx20442",
297 .name = "cx20442-voice",
317 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
324 if (IS_ERR(cx20442->por))
325 err = PTR_ERR(cx20442->por);
327 err = regulator_enable(cx20442->por);
332 if (IS_ERR(cx20442->por))
333 err = PTR_ERR(cx20442->por);
335 err = regulator_disable(cx20442->por);
346 struct cx20442_priv *cx20442;
348 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL);
349 if (cx20442 == NULL)
352 cx20442->por = regulator_get(component->dev, "POR");
353 if (IS_ERR(cx20442->por)) {
354 int err = PTR_ERR(cx20442->por);
370 kfree(cx20442);
374 cx20442->tty = NULL;
376 snd_soc_component_set_drvdata(component, cx20442);
385 struct cx20442_priv *cx20442 = snd_soc_component_get_drvdata(component);
387 if (cx20442->tty) {
388 struct tty_struct *tty = cx20442->tty;
392 if (!IS_ERR(cx20442->por)) {
394 regulator_put(cx20442->por);
398 kfree(cx20442);
424 .name = "cx20442-codec",
434 MODULE_ALIAS("platform:cx20442-codec");