Lines Matching refs:wm8983

652 	struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component);  in wm8983_hw_params()  local
664 wm8983->bclk = ret; in wm8983_hw_params()
705 dev_dbg(dai->dev, "Target BCLK = %uHz\n", wm8983->bclk); in wm8983_hw_params()
706 dev_dbg(dai->dev, "SYSCLK = %uHz\n", wm8983->sysclk); in wm8983_hw_params()
709 if (wm8983->sysclk / params_rate(params) in wm8983_hw_params()
716 wm8983->sysclk, params_rate(params)); in wm8983_hw_params()
725 tmp = (wm8983->sysclk / fs_ratios[i].div) * 10; in wm8983_hw_params()
727 if (wm8983->bclk == tmp / bclk_divs[i]) in wm8983_hw_params()
827 struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component); in wm8983_set_sysclk() local
843 wm8983->sysclk = freq; in wm8983_set_sysclk()
850 struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component); in wm8983_set_bias_level() local
863 ret = regcache_sync(wm8983->regmap); in wm8983_set_bias_level()
1007 struct wm8983_priv *wm8983; in wm8983_spi_probe() local
1010 wm8983 = devm_kzalloc(&spi->dev, sizeof *wm8983, GFP_KERNEL); in wm8983_spi_probe()
1011 if (!wm8983) in wm8983_spi_probe()
1014 wm8983->regmap = devm_regmap_init_spi(spi, &wm8983_regmap); in wm8983_spi_probe()
1015 if (IS_ERR(wm8983->regmap)) { in wm8983_spi_probe()
1016 ret = PTR_ERR(wm8983->regmap); in wm8983_spi_probe()
1021 spi_set_drvdata(spi, wm8983); in wm8983_spi_probe()
1039 struct wm8983_priv *wm8983; in wm8983_i2c_probe() local
1042 wm8983 = devm_kzalloc(&i2c->dev, sizeof *wm8983, GFP_KERNEL); in wm8983_i2c_probe()
1043 if (!wm8983) in wm8983_i2c_probe()
1046 wm8983->regmap = devm_regmap_init_i2c(i2c, &wm8983_regmap); in wm8983_i2c_probe()
1047 if (IS_ERR(wm8983->regmap)) { in wm8983_i2c_probe()
1048 ret = PTR_ERR(wm8983->regmap); in wm8983_i2c_probe()
1053 i2c_set_clientdata(i2c, wm8983); in wm8983_i2c_probe()