Lines Matching defs:wm8971
3 * wm8971.c -- WM8971 ALSA SoC Audio driver
26 #include "wm8971.h"
38 * wm8971 register cache
433 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
441 wm8971->sysclk = freq;
510 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
513 int coeff = get_coeff(wm8971->sysclk, params_rate(params));
553 struct wm8971_priv *wm8971 =
557 regmap_update_bits(wm8971->regmap, WM8971_PWR1, 0x0180, 0x0100);
563 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
573 flush_delayed_work(&wm8971->charge_work);
581 &wm8971->charge_work, msecs_to_jiffies(1000));
589 cancel_delayed_work_sync(&wm8971->charge_work);
612 .name = "wm8971-hifi",
630 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
632 INIT_DELAYED_WORK(&wm8971->charge_work, wm8971_charge_work);
676 struct wm8971_priv *wm8971;
678 wm8971 = devm_kzalloc(&i2c->dev, sizeof(struct wm8971_priv),
680 if (wm8971 == NULL)
683 wm8971->regmap = devm_regmap_init_i2c(i2c, &wm8971_regmap);
684 if (IS_ERR(wm8971->regmap))
685 return PTR_ERR(wm8971->regmap);
687 i2c_set_clientdata(i2c, wm8971);
694 { "wm8971", 0 },
701 .name = "wm8971",