• Home
  • Raw
  • Download

Lines Matching refs:priv

53 	struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card);  in omap_abe_hw_params()  local
59 freq = priv->mclk_freq; in omap_abe_hw_params()
182 struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); in omap_abe_twl6040_init() local
195 if (priv->jack_detection) { in omap_abe_twl6040_init()
280 struct abe_twl6040 *priv; in omap_abe_probe() local
286 priv = devm_kzalloc(&pdev->dev, sizeof(struct abe_twl6040), GFP_KERNEL); in omap_abe_probe()
287 if (priv == NULL) in omap_abe_probe()
290 priv->dmic_codec_dev = ERR_PTR(-EINVAL); in omap_abe_probe()
322 priv->dmic_codec_dev = platform_device_register_simple( in omap_abe_probe()
324 if (IS_ERR(priv->dmic_codec_dev)) { in omap_abe_probe()
327 return PTR_ERR(priv->dmic_codec_dev); in omap_abe_probe()
333 priv->jack_detection = of_property_read_bool(node, in omap_abe_probe()
336 &priv->mclk_freq); in omap_abe_probe()
337 if (!priv->mclk_freq) { in omap_abe_probe()
357 priv->jack_detection = pdata->jack_detection; in omap_abe_probe()
358 priv->mclk_freq = pdata->mclk_freq; in omap_abe_probe()
365 if (!priv->mclk_freq) { in omap_abe_probe()
374 snd_soc_card_set_drvdata(card, priv); in omap_abe_probe()
386 if (!IS_ERR(priv->dmic_codec_dev)) in omap_abe_probe()
387 platform_device_unregister(priv->dmic_codec_dev); in omap_abe_probe()
395 struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); in omap_abe_remove() local
399 if (!IS_ERR(priv->dmic_codec_dev)) in omap_abe_remove()
400 platform_device_unregister(priv->dmic_codec_dev); in omap_abe_remove()