Lines Matching defs:wm8580

3  * wm8580.c  --  WM8580 and WM8581 ALSA Soc Audio driver
38 #include "wm8580.h"
158 * wm8580 register cache
262 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
268 regcache_cache_only(wm8580->regmap, true);
269 regmap_update_bits(wm8580->regmap, reg, 0x100, 0x000);
270 regmap_update_bits(wm8580->regmap, reg2, 0x100, 0x000);
271 regcache_cache_only(wm8580->regmap, false);
407 pr_debug("wm8580: PLL %uHz->%uHz\n", source, target);
423 printk(KERN_ERR "wm8580: Unable to scale output frequency "
465 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
479 state = &wm8580->a;
484 state = &wm8580->b;
539 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
566 ratio = wm8580->sysclk[dai->driver->id] / params_rate(params);
572 wm8580->sysclk[dai->driver->id], params_rate(params));
577 wm8580_sysclk_ratios[i], wm8580->sysclk[dai->driver->id]);
754 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
794 wm8580->sysclk[dai->driver->id] = freq;
853 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
856 SNDRV_PCM_HW_PARAM_CHANNELS, 1, wm8580->drvdata->num_dacs * 2);
883 .name = "wm8580-hifi-playback",
894 .name = "wm8580-hifi-capture",
909 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
913 switch (wm8580->drvdata->num_dacs) {
926 ret = regulator_bulk_enable(ARRAY_SIZE(wm8580->supplies),
927 wm8580->supplies);
943 regulator_bulk_disable(ARRAY_SIZE(wm8580->supplies), wm8580->supplies);
951 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component);
953 regulator_bulk_disable(ARRAY_SIZE(wm8580->supplies), wm8580->supplies);
993 struct wm8580_priv *wm8580;
996 wm8580 = devm_kzalloc(&i2c->dev, sizeof(struct wm8580_priv),
998 if (wm8580 == NULL)
1001 wm8580->regmap = devm_regmap_init_i2c(i2c, &wm8580_regmap);
1002 if (IS_ERR(wm8580->regmap))
1003 return PTR_ERR(wm8580->regmap);
1005 for (i = 0; i < ARRAY_SIZE(wm8580->supplies); i++)
1006 wm8580->supplies[i].supply = wm8580_supply_names[i];
1008 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8580->supplies),
1009 wm8580->supplies);
1015 i2c_set_clientdata(i2c, wm8580);
1017 wm8580->drvdata = i2c_get_match_data(i2c);
1018 if (!wm8580->drvdata)
1028 { .compatible = "wlf,wm8580", .data = &wm8580_data },
1035 { "wm8580", (kernel_ulong_t)&wm8580_data },
1043 .name = "wm8580",