Lines Matching refs:priv
1032 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_set_fll() local
1033 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll()
1038 if (freq_in == priv->fll_freq_in && freq_out == priv->fll_freq_out) in wm8350_set_fll()
1075 priv->fll_freq_out = freq_out; in wm8350_set_fll()
1076 priv->fll_freq_in = freq_in; in wm8350_set_fll()
1084 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_set_bias_level() local
1085 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level()
1109 ret = regulator_bulk_enable(ARRAY_SIZE(priv->supplies), in wm8350_set_bias_level()
1110 priv->supplies); in wm8350_set_bias_level()
1237 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), in wm8350_set_bias_level()
1238 priv->supplies); in wm8350_set_bias_level()
1258 static void wm8350_hp_work(struct wm8350_data *priv, in wm8350_hp_work() argument
1262 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_work()
1278 struct wm8350_data *priv = in wm8350_hpl_work() local
1281 wm8350_hp_work(priv, &priv->hpl, WM8350_JACK_L_LVL); in wm8350_hpl_work()
1286 struct wm8350_data *priv = in wm8350_hpr_work() local
1289 wm8350_hp_work(priv, &priv->hpr, WM8350_JACK_R_LVL); in wm8350_hpr_work()
1294 struct wm8350_data *priv = data; in wm8350_hpl_jack_handler() local
1295 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpl_jack_handler()
1304 schedule_delayed_work(&priv->hpl.work, msecs_to_jiffies(200)); in wm8350_hpl_jack_handler()
1311 struct wm8350_data *priv = data; in wm8350_hpr_jack_handler() local
1312 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpr_jack_handler()
1321 schedule_delayed_work(&priv->hpr.work, msecs_to_jiffies(200)); in wm8350_hpr_jack_handler()
1340 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_hp_jack_detect() local
1341 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_jack_detect()
1347 priv->hpl.jack = jack; in wm8350_hp_jack_detect()
1348 priv->hpl.report = report; in wm8350_hp_jack_detect()
1354 priv->hpr.jack = jack; in wm8350_hp_jack_detect()
1355 priv->hpr.report = report; in wm8350_hp_jack_detect()
1374 wm8350_hpl_jack_handler(0, priv); in wm8350_hp_jack_detect()
1377 wm8350_hpr_jack_handler(0, priv); in wm8350_hp_jack_detect()
1387 struct wm8350_data *priv = data; in wm8350_mic_handler() local
1388 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_handler()
1398 report |= priv->mic.short_report; in wm8350_mic_handler()
1400 report |= priv->mic.report; in wm8350_mic_handler()
1402 snd_soc_jack_report(priv->mic.jack, report, in wm8350_mic_handler()
1403 priv->mic.report | priv->mic.short_report); in wm8350_mic_handler()
1423 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_mic_jack_detect() local
1424 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_jack_detect()
1426 priv->mic.jack = jack; in wm8350_mic_jack_detect()
1427 priv->mic.report = detect_report; in wm8350_mic_jack_detect()
1428 priv->mic.short_report = short_report; in wm8350_mic_jack_detect()
1480 struct wm8350_data *priv; in wm8350_codec_probe() local
1490 priv = devm_kzalloc(codec->dev, sizeof(struct wm8350_data), in wm8350_codec_probe()
1492 if (priv == NULL) in wm8350_codec_probe()
1494 snd_soc_codec_set_drvdata(codec, priv); in wm8350_codec_probe()
1496 priv->wm8350 = wm8350; in wm8350_codec_probe()
1499 priv->supplies[i].supply = supply_names[i]; in wm8350_codec_probe()
1501 ret = devm_regulator_bulk_get(wm8350->dev, ARRAY_SIZE(priv->supplies), in wm8350_codec_probe()
1502 priv->supplies); in wm8350_codec_probe()
1514 INIT_DELAYED_WORK(&priv->hpl.work, wm8350_hpl_work); in wm8350_codec_probe()
1515 INIT_DELAYED_WORK(&priv->hpr.work, wm8350_hpr_work); in wm8350_codec_probe()
1526 out1 = &priv->out1; in wm8350_codec_probe()
1527 out2 = &priv->out2; in wm8350_codec_probe()
1564 priv); in wm8350_codec_probe()
1567 priv); in wm8350_codec_probe()
1569 wm8350_mic_handler, 0, "Microphone short", priv); in wm8350_codec_probe()
1571 wm8350_mic_handler, 0, "Microphone detect", priv); in wm8350_codec_probe()
1581 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); in wm8350_codec_remove() local
1588 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICD, priv); in wm8350_codec_remove()
1589 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_MICSCD, priv); in wm8350_codec_remove()
1590 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_L, priv); in wm8350_codec_remove()
1591 wm8350_free_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R, priv); in wm8350_codec_remove()
1593 priv->hpl.jack = NULL; in wm8350_codec_remove()
1594 priv->hpr.jack = NULL; in wm8350_codec_remove()
1595 priv->mic.jack = NULL; in wm8350_codec_remove()
1597 cancel_delayed_work_sync(&priv->hpl.work); in wm8350_codec_remove()
1598 cancel_delayed_work_sync(&priv->hpr.work); in wm8350_codec_remove()