Lines Matching refs:wm8971
433 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component); in wm8971_set_dai_sysclk() local
441 wm8971->sysclk = freq; in wm8971_set_dai_sysclk()
510 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component); in wm8971_pcm_hw_params() local
513 int coeff = get_coeff(wm8971->sysclk, params_rate(params)); in wm8971_pcm_hw_params()
553 struct wm8971_priv *wm8971 = in wm8971_charge_work() local
557 regmap_update_bits(wm8971->regmap, WM8971_PWR1, 0x0180, 0x0100); in wm8971_charge_work()
563 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component); in wm8971_set_bias_level() local
573 flush_delayed_work(&wm8971->charge_work); in wm8971_set_bias_level()
581 &wm8971->charge_work, msecs_to_jiffies(1000)); in wm8971_set_bias_level()
589 cancel_delayed_work_sync(&wm8971->charge_work); in wm8971_set_bias_level()
629 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component); in wm8971_probe() local
631 INIT_DELAYED_WORK(&wm8971->charge_work, wm8971_charge_work); in wm8971_probe()
677 struct wm8971_priv *wm8971; in wm8971_i2c_probe() local
680 wm8971 = devm_kzalloc(&i2c->dev, sizeof(struct wm8971_priv), in wm8971_i2c_probe()
682 if (wm8971 == NULL) in wm8971_i2c_probe()
685 wm8971->regmap = devm_regmap_init_i2c(i2c, &wm8971_regmap); in wm8971_i2c_probe()
686 if (IS_ERR(wm8971->regmap)) in wm8971_i2c_probe()
687 return PTR_ERR(wm8971->regmap); in wm8971_i2c_probe()
689 i2c_set_clientdata(i2c, wm8971); in wm8971_i2c_probe()