Lines Matching refs:wm8900
757 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); in wm8900_set_fll() local
760 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll()
773 wm8900->fll_in = freq_in; in wm8900_set_fll()
774 wm8900->fll_out = freq_out; in wm8900_set_fll()
782 wm8900->fll_in = freq_in; in wm8900_set_fll()
783 wm8900->fll_out = freq_out; in wm8900_set_fll()
1125 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); in wm8900_suspend() local
1126 int fll_out = wm8900->fll_out; in wm8900_suspend()
1127 int fll_in = wm8900->fll_in; in wm8900_suspend()
1137 wm8900->fll_out = fll_out; in wm8900_suspend()
1138 wm8900->fll_in = fll_in; in wm8900_suspend()
1147 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec); in wm8900_resume() local
1152 ret = regcache_sync(wm8900->regmap); in wm8900_resume()
1161 if (wm8900->fll_out) { in wm8900_resume()
1162 int fll_out = wm8900->fll_out; in wm8900_resume()
1163 int fll_in = wm8900->fll_in; in wm8900_resume()
1165 wm8900->fll_in = 0; in wm8900_resume()
1166 wm8900->fll_out = 0; in wm8900_resume()
1240 struct wm8900_priv *wm8900; in wm8900_spi_probe() local
1243 wm8900 = devm_kzalloc(&spi->dev, sizeof(struct wm8900_priv), in wm8900_spi_probe()
1245 if (wm8900 == NULL) in wm8900_spi_probe()
1248 wm8900->regmap = devm_regmap_init_spi(spi, &wm8900_regmap); in wm8900_spi_probe()
1249 if (IS_ERR(wm8900->regmap)) in wm8900_spi_probe()
1250 return PTR_ERR(wm8900->regmap); in wm8900_spi_probe()
1252 spi_set_drvdata(spi, wm8900); in wm8900_spi_probe()
1279 struct wm8900_priv *wm8900; in wm8900_i2c_probe() local
1282 wm8900 = devm_kzalloc(&i2c->dev, sizeof(struct wm8900_priv), in wm8900_i2c_probe()
1284 if (wm8900 == NULL) in wm8900_i2c_probe()
1287 wm8900->regmap = devm_regmap_init_i2c(i2c, &wm8900_regmap); in wm8900_i2c_probe()
1288 if (IS_ERR(wm8900->regmap)) in wm8900_i2c_probe()
1289 return PTR_ERR(wm8900->regmap); in wm8900_i2c_probe()
1291 i2c_set_clientdata(i2c, wm8900); in wm8900_i2c_probe()