Lines Matching refs:cx20442

158 	struct cx20442_priv *cx20442 = snd_soc_codec_get_drvdata(codec);  in cx20442_write()  local
168 if (!codec->hw_write || !cx20442->control_data) in cx20442_write()
197 if (codec->hw_write(cx20442->control_data, buf, len) != len) in cx20442_write()
244 struct cx20442_priv *cx20442; in v253_close() local
251 cx20442 = snd_soc_codec_get_drvdata(codec); in v253_close()
255 cx20442->control_data = NULL; in v253_close()
271 struct cx20442_priv *cx20442; in v253_receive() local
276 cx20442 = snd_soc_codec_get_drvdata(codec); in v253_receive()
278 if (!cx20442->control_data) { in v253_receive()
282 cx20442->control_data = tty; in v253_receive()
331 struct cx20442_priv *cx20442 = snd_soc_codec_get_drvdata(codec); in cx20442_set_bias_level() local
338 if (IS_ERR(cx20442->por)) in cx20442_set_bias_level()
339 err = PTR_ERR(cx20442->por); in cx20442_set_bias_level()
341 err = regulator_enable(cx20442->por); in cx20442_set_bias_level()
346 if (IS_ERR(cx20442->por)) in cx20442_set_bias_level()
347 err = PTR_ERR(cx20442->por); in cx20442_set_bias_level()
349 err = regulator_disable(cx20442->por); in cx20442_set_bias_level()
360 struct cx20442_priv *cx20442; in cx20442_codec_probe() local
362 cx20442 = kzalloc(sizeof(struct cx20442_priv), GFP_KERNEL); in cx20442_codec_probe()
363 if (cx20442 == NULL) in cx20442_codec_probe()
366 cx20442->por = regulator_get(codec->dev, "POR"); in cx20442_codec_probe()
367 if (IS_ERR(cx20442->por)) in cx20442_codec_probe()
369 cx20442->control_data = NULL; in cx20442_codec_probe()
371 snd_soc_codec_set_drvdata(codec, cx20442); in cx20442_codec_probe()
381 struct cx20442_priv *cx20442 = snd_soc_codec_get_drvdata(codec); in cx20442_codec_remove() local
383 if (cx20442->control_data) { in cx20442_codec_remove()
384 struct tty_struct *tty = cx20442->control_data; in cx20442_codec_remove()
388 if (!IS_ERR(cx20442->por)) { in cx20442_codec_remove()
390 regulator_put(cx20442->por); in cx20442_codec_remove()
394 kfree(cx20442); in cx20442_codec_remove()