Lines Matching refs:wm8955
247 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_configure_clocking() local
255 if (wm8955->fs == 0) in wm8955_configure_clocking()
256 wm8955->fs = 8000; in wm8955_configure_clocking()
260 if (wm8955->fs != clock_cfgs[i].fs) in wm8955_configure_clocking()
264 if (wm8955->mclk_rate == clock_cfgs[i].mclk) in wm8955_configure_clocking()
271 wm8955->fs); in wm8955_configure_clocking()
285 ret = wm8995_pll_factors(codec->dev, wm8955->mclk_rate, in wm8955_configure_clocking()
290 wm8955->fs, wm8955->mclk_rate); in wm8955_configure_clocking()
365 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_set_deemph() local
371 if (wm8955->deemph) { in wm8955_set_deemph()
374 if (abs(deemph_settings[i] - wm8955->fs) < in wm8955_set_deemph()
375 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
394 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_get_deemph() local
396 ucontrol->value.integer.value[0] = wm8955->deemph; in wm8955_get_deemph()
404 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_put_deemph() local
410 wm8955->deemph = deemph; in wm8955_put_deemph()
596 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_hw_params() local
619 wm8955->fs = params_rate(params); in wm8955_hw_params()
768 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_set_bias_level() local
789 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), in wm8955_set_bias_level()
790 wm8955->supplies); in wm8955_set_bias_level()
798 regcache_sync(wm8955->regmap); in wm8955_set_bias_level()
837 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), in wm8955_set_bias_level()
838 wm8955->supplies); in wm8955_set_bias_level()
871 struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); in wm8955_probe() local
875 for (i = 0; i < ARRAY_SIZE(wm8955->supplies); i++) in wm8955_probe()
876 wm8955->supplies[i].supply = wm8955_supply_names[i]; in wm8955_probe()
878 ret = devm_regulator_bulk_get(codec->dev, ARRAY_SIZE(wm8955->supplies), in wm8955_probe()
879 wm8955->supplies); in wm8955_probe()
885 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), in wm8955_probe()
886 wm8955->supplies); in wm8955_probe()
935 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), wm8955->supplies); in wm8955_probe()
940 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()