Lines Matching defs:wm8955

3  * wm8955.c  --  WM8955 ALSA SoC Audio driver
25 #include <sound/wm8955.h>
27 #include "wm8955.h"
244 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
252 if (wm8955->fs == 0)
253 wm8955->fs = 8000;
257 if (wm8955->fs != clock_cfgs[i].fs)
261 if (wm8955->mclk_rate == clock_cfgs[i].mclk)
268 wm8955->fs);
282 ret = wm8955_pll_factors(component->dev, wm8955->mclk_rate,
287 wm8955->fs, wm8955->mclk_rate);
362 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
368 if (wm8955->deemph) {
371 if (abs(deemph_settings[i] - wm8955->fs) <
372 abs(deemph_settings[best] - wm8955->fs))
391 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
393 ucontrol->value.integer.value[0] = wm8955->deemph;
401 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
407 wm8955->deemph = deemph;
593 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
616 wm8955->fs = params_rate(params);
766 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
787 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies),
788 wm8955->supplies);
796 regcache_sync(wm8955->regmap);
835 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies),
836 wm8955->supplies);
856 .name = "wm8955-hifi",
869 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component);
873 for (i = 0; i < ARRAY_SIZE(wm8955->supplies); i++)
874 wm8955->supplies[i].supply = wm8955_supply_names[i];
876 ret = devm_regulator_bulk_get(component->dev, ARRAY_SIZE(wm8955->supplies),
877 wm8955->supplies);
883 ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies),
884 wm8955->supplies);
933 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), wm8955->supplies);
938 regulator_bulk_disable(ARRAY_SIZE(wm8955->supplies), wm8955->supplies);
974 struct wm8955_priv *wm8955;
977 wm8955 = devm_kzalloc(&i2c->dev, sizeof(struct wm8955_priv),
979 if (wm8955 == NULL)
982 wm8955->regmap = devm_regmap_init_i2c(i2c, &wm8955_regmap);
983 if (IS_ERR(wm8955->regmap)) {
984 ret = PTR_ERR(wm8955->regmap);
990 i2c_set_clientdata(i2c, wm8955);
999 { "wm8955", 0 },
1006 .name = "wm8955",