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);
589 { .compatible = "wlf,wm8737", },
610 struct wm8737_priv *wm8737;
613 wm8737 = devm_kzalloc(&i2c->dev, sizeof(struct wm8737_priv),
615 if (wm8737 == NULL)
618 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++)
619 wm8737->supplies[i].supply = wm8737_supply_names[i];
621 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8737->supplies),
622 wm8737->supplies);
628 wm8737->regmap = devm_regmap_init_i2c(i2c, &wm8737_regmap);
629 if (IS_ERR(wm8737->regmap))
630 return PTR_ERR(wm8737->regmap);
632 i2c_set_clientdata(i2c, wm8737);
642 { "wm8737", 0 },
649 .name = "wm8737",
660 struct wm8737_priv *wm8737;
663 wm8737 = devm_kzalloc(&spi->dev, sizeof(struct wm8737_priv),
665 if (wm8737 == NULL)
668 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++)
669 wm8737->supplies[i].supply = wm8737_supply_names[i];
671 ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8737->supplies),
672 wm8737->supplies);
678 wm8737->regmap = devm_regmap_init_spi(spi, &wm8737_regmap);
679 if (IS_ERR(wm8737->regmap))
680 return PTR_ERR(wm8737->regmap);
682 spi_set_drvdata(spi, wm8737);
692 .name = "wm8737",