Lines Matching refs:wm8955

244 	struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);  in wm8955_configure_clocking()  local
252 if (wm8955->fs == 0) in wm8955_configure_clocking()
253 wm8955->fs = 8000; in wm8955_configure_clocking()
257 if (wm8955->fs != clock_cfgs[i].fs) in wm8955_configure_clocking()
261 if (wm8955->mclk_rate == clock_cfgs[i].mclk) in wm8955_configure_clocking()
268 wm8955->fs); in wm8955_configure_clocking()
282 ret = wm8955_pll_factors(component->dev, wm8955->mclk_rate, in wm8955_configure_clocking()
287 wm8955->fs, wm8955->mclk_rate); in wm8955_configure_clocking()
362 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_set_deemph() local
368 if (wm8955->deemph) { in wm8955_set_deemph()
371 if (abs(deemph_settings[i] - wm8955->fs) < in wm8955_set_deemph()
372 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
391 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_get_deemph() local
393 ucontrol->value.integer.value[0] = wm8955->deemph; in wm8955_get_deemph()
401 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_put_deemph() local
407 wm8955->deemph = deemph; in wm8955_put_deemph()
593 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_hw_params() local
616 wm8955->fs = params_rate(params); in wm8955_hw_params()
766 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_set_bias_level() local
787 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), in wm8955_set_bias_level()
788 wm8955->supplies); in wm8955_set_bias_level()
796 regcache_sync(wm8955->regmap); in wm8955_set_bias_level()
835 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), in wm8955_set_bias_level()
836 wm8955->supplies); in wm8955_set_bias_level()
868 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_probe() local
872 for (i = 0; i < ARRAY_SIZE(wm8955->supplies); i++) in wm8955_probe()
873 wm8955->supplies[i].supply = wm8955_supply_names[i]; in wm8955_probe()
875 ret = devm_regulator_bulk_get(component->dev, ARRAY_SIZE(wm8955->supplies), in wm8955_probe()
876 wm8955->supplies); in wm8955_probe()
882 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), in wm8955_probe()
883 wm8955->supplies); in wm8955_probe()
932 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), wm8955->supplies); in wm8955_probe()
937 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), wm8955->supplies); in wm8955_probe()
973 struct wm8955_priv *wm8955; in wm8955_i2c_probe() local
976 wm8955 = devm_kzalloc(&i2c->dev, sizeof(struct wm8955_priv), in wm8955_i2c_probe()
978 if (wm8955 == NULL) in wm8955_i2c_probe()
981 wm8955->regmap = devm_regmap_init_i2c(i2c, &wm8955_regmap); in wm8955_i2c_probe()
982 if (IS_ERR(wm8955->regmap)) { in wm8955_i2c_probe()
983 ret = PTR_ERR(wm8955->regmap); in wm8955_i2c_probe()
989 i2c_set_clientdata(i2c, wm8955); in wm8955_i2c_probe()