Lines Matching refs:wm8737

329 	struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component);  in wm8737_hw_params()  local
338 if (coeff_div[i].mclk == wm8737->mclk) in wm8737_hw_params()
341 if (coeff_div[i].mclk == wm8737->mclk * 2) { in wm8737_hw_params()
349 wm8737->mclk, params_rate(params)); in wm8737_hw_params()
383 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_set_dai_sysclk() local
389 wm8737->mclk = freq; in wm8737_set_dai_sysclk()
454 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_set_bias_level() local
469 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
470 wm8737->supplies); in wm8737_set_bias_level()
478 regcache_sync(wm8737->regmap); in wm8737_set_bias_level()
506 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
507 wm8737->supplies); in wm8737_set_bias_level()
539 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_probe() local
542 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_probe()
543 wm8737->supplies); in wm8737_probe()
563 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe()
568 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe()
610 struct wm8737_priv *wm8737; in wm8737_i2c_probe() local
613 wm8737 = devm_kzalloc(&i2c->dev, sizeof(struct wm8737_priv), in wm8737_i2c_probe()
615 if (wm8737 == NULL) in wm8737_i2c_probe()
618 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++) in wm8737_i2c_probe()
619 wm8737->supplies[i].supply = wm8737_supply_names[i]; in wm8737_i2c_probe()
621 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8737->supplies), in wm8737_i2c_probe()
622 wm8737->supplies); in wm8737_i2c_probe()
628 wm8737->regmap = devm_regmap_init_i2c(i2c, &wm8737_regmap); in wm8737_i2c_probe()
629 if (IS_ERR(wm8737->regmap)) in wm8737_i2c_probe()
630 return PTR_ERR(wm8737->regmap); in wm8737_i2c_probe()
632 i2c_set_clientdata(i2c, wm8737); in wm8737_i2c_probe()
660 struct wm8737_priv *wm8737; in wm8737_spi_probe() local
663 wm8737 = devm_kzalloc(&spi->dev, sizeof(struct wm8737_priv), in wm8737_spi_probe()
665 if (wm8737 == NULL) in wm8737_spi_probe()
668 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++) in wm8737_spi_probe()
669 wm8737->supplies[i].supply = wm8737_supply_names[i]; in wm8737_spi_probe()
671 ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8737->supplies), in wm8737_spi_probe()
672 wm8737->supplies); in wm8737_spi_probe()
678 wm8737->regmap = devm_regmap_init_spi(spi, &wm8737_regmap); in wm8737_spi_probe()
679 if (IS_ERR(wm8737->regmap)) in wm8737_spi_probe()
680 return PTR_ERR(wm8737->regmap); in wm8737_spi_probe()
682 spi_set_drvdata(spi, wm8737); in wm8737_spi_probe()