Lines Matching refs:wm8988

556 	struct wm8988_priv *wm8988 = snd_soc_component_get_drvdata(component);  in wm8988_set_dai_sysclk()  local
563 wm8988->sysclk_constraints = &constraints_112896; in wm8988_set_dai_sysclk()
564 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
571 wm8988->sysclk_constraints = &constraints_12288; in wm8988_set_dai_sysclk()
572 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
577 wm8988->sysclk_constraints = &constraints_12; in wm8988_set_dai_sysclk()
578 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
646 struct wm8988_priv *wm8988 = snd_soc_component_get_drvdata(component); in wm8988_pcm_startup() local
651 if (!wm8988->sysclk) { in wm8988_pcm_startup()
659 wm8988->sysclk_constraints); in wm8988_pcm_startup()
669 struct wm8988_priv *wm8988 = snd_soc_component_get_drvdata(component); in wm8988_pcm_hw_params() local
674 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params()
676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params()
682 params_rate(params), wm8988->sysclk); in wm8988_pcm_hw_params()
725 struct wm8988_priv *wm8988 = snd_soc_component_get_drvdata(component); in wm8988_set_bias_level() local
739 regcache_sync(wm8988->regmap); in wm8988_set_bias_level()
843 struct wm8988_priv *wm8988; in wm8988_spi_probe() local
846 wm8988 = devm_kzalloc(&spi->dev, sizeof(struct wm8988_priv), in wm8988_spi_probe()
848 if (wm8988 == NULL) in wm8988_spi_probe()
851 wm8988->regmap = devm_regmap_init_spi(spi, &wm8988_regmap); in wm8988_spi_probe()
852 if (IS_ERR(wm8988->regmap)) { in wm8988_spi_probe()
853 ret = PTR_ERR(wm8988->regmap); in wm8988_spi_probe()
858 spi_set_drvdata(spi, wm8988); in wm8988_spi_probe()
877 struct wm8988_priv *wm8988; in wm8988_i2c_probe() local
880 wm8988 = devm_kzalloc(&i2c->dev, sizeof(struct wm8988_priv), in wm8988_i2c_probe()
882 if (wm8988 == NULL) in wm8988_i2c_probe()
885 i2c_set_clientdata(i2c, wm8988); in wm8988_i2c_probe()
887 wm8988->regmap = devm_regmap_init_i2c(i2c, &wm8988_regmap); in wm8988_i2c_probe()
888 if (IS_ERR(wm8988->regmap)) { in wm8988_i2c_probe()
889 ret = PTR_ERR(wm8988->regmap); in wm8988_i2c_probe()