Lines Matching refs:wm8737
3 * wm8737.c -- WM8737 ALSA SoC Audio driver
29 #include "wm8737.h"
329 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component);
338 if (coeff_div[i].mclk == wm8737->mclk)
341 if (coeff_div[i].mclk == wm8737->mclk * 2) {
349 wm8737->mclk, params_rate(params));
383 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component);
389 wm8737->mclk = freq;
454 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component);
469 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies),
470 wm8737->supplies);
478 regcache_sync(wm8737->regmap);
506 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies),
507 wm8737->supplies);
526 .name = "wm8737",
539 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component);
542 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies),
543 wm8737->supplies);
563 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies);
568 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies);
590 { .compatible = "wlf,wm8737", },
612 struct wm8737_priv *wm8737;
615 wm8737 = devm_kzalloc(&i2c->dev, sizeof(struct wm8737_priv),
617 if (wm8737 == NULL)
620 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++)
621 wm8737->supplies[i].supply = wm8737_supply_names[i];
623 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8737->supplies),
624 wm8737->supplies);
630 wm8737->regmap = devm_regmap_init_i2c(i2c, &wm8737_regmap);
631 if (IS_ERR(wm8737->regmap))
632 return PTR_ERR(wm8737->regmap);
634 i2c_set_clientdata(i2c, wm8737);
644 { "wm8737", 0 },
651 .name = "wm8737",
662 struct wm8737_priv *wm8737;
665 wm8737 = devm_kzalloc(&spi->dev, sizeof(struct wm8737_priv),
667 if (wm8737 == NULL)
670 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++)
671 wm8737->supplies[i].supply = wm8737_supply_names[i];
673 ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8737->supplies),
674 wm8737->supplies);
680 wm8737->regmap = devm_regmap_init_spi(spi, &wm8737_regmap);
681 if (IS_ERR(wm8737->regmap))
682 return PTR_ERR(wm8737->regmap);
684 spi_set_drvdata(spi, wm8737);
694 .name = "wm8737",