Lines Matching refs:wm8737

332 	struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec);  in wm8737_hw_params()  local
341 if (coeff_div[i].mclk == wm8737->mclk) in wm8737_hw_params()
344 if (coeff_div[i].mclk == wm8737->mclk * 2) { in wm8737_hw_params()
352 wm8737->mclk, params_rate(params)); in wm8737_hw_params()
386 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_dai_sysclk() local
392 wm8737->mclk = freq; in wm8737_set_dai_sysclk()
457 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_bias_level() local
472 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
473 wm8737->supplies); in wm8737_set_bias_level()
481 regcache_sync(wm8737->regmap); in wm8737_set_bias_level()
509 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
510 wm8737->supplies); in wm8737_set_bias_level()
542 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_probe() local
545 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_probe()
546 wm8737->supplies); in wm8737_probe()
566 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe()
571 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe()
612 struct wm8737_priv *wm8737; in wm8737_i2c_probe() local
615 wm8737 = devm_kzalloc(&i2c->dev, sizeof(struct wm8737_priv), in wm8737_i2c_probe()
617 if (wm8737 == NULL) in wm8737_i2c_probe()
620 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++) in wm8737_i2c_probe()
621 wm8737->supplies[i].supply = wm8737_supply_names[i]; in wm8737_i2c_probe()
623 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8737->supplies), in wm8737_i2c_probe()
624 wm8737->supplies); in wm8737_i2c_probe()
630 wm8737->regmap = devm_regmap_init_i2c(i2c, &wm8737_regmap); in wm8737_i2c_probe()
631 if (IS_ERR(wm8737->regmap)) in wm8737_i2c_probe()
632 return PTR_ERR(wm8737->regmap); in wm8737_i2c_probe()
634 i2c_set_clientdata(i2c, wm8737); in wm8737_i2c_probe()
670 struct wm8737_priv *wm8737; in wm8737_spi_probe() local
673 wm8737 = devm_kzalloc(&spi->dev, sizeof(struct wm8737_priv), in wm8737_spi_probe()
675 if (wm8737 == NULL) in wm8737_spi_probe()
678 for (i = 0; i < ARRAY_SIZE(wm8737->supplies); i++) in wm8737_spi_probe()
679 wm8737->supplies[i].supply = wm8737_supply_names[i]; in wm8737_spi_probe()
681 ret = devm_regulator_bulk_get(&spi->dev, ARRAY_SIZE(wm8737->supplies), in wm8737_spi_probe()
682 wm8737->supplies); in wm8737_spi_probe()
688 wm8737->regmap = devm_regmap_init_spi(spi, &wm8737_regmap); in wm8737_spi_probe()
689 if (IS_ERR(wm8737->regmap)) in wm8737_spi_probe()
690 return PTR_ERR(wm8737->regmap); in wm8737_spi_probe()
692 spi_set_drvdata(spi, wm8737); in wm8737_spi_probe()