Lines Matching refs:wm8961
506 struct wm8961_priv *wm8961 = snd_soc_component_get_drvdata(component); in wm8961_hw_params() local
512 if (!wm8961->sysclk) { in wm8961_hw_params()
532 target = wm8961->sysclk / fs; in wm8961_hw_params()
554 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, in wm8961_hw_params()
555 wm8961->sysclk / fs); in wm8961_hw_params()
597 struct wm8961_priv *wm8961 = snd_soc_component_get_drvdata(component); in wm8961_set_sysclk() local
616 wm8961->sysclk = freq; in wm8961_set_sysclk()
915 struct wm8961_priv *wm8961; in wm8961_i2c_probe() local
919 wm8961 = devm_kzalloc(&i2c->dev, sizeof(struct wm8961_priv), in wm8961_i2c_probe()
921 if (wm8961 == NULL) in wm8961_i2c_probe()
924 wm8961->regmap = devm_regmap_init_i2c(i2c, &wm8961_regmap); in wm8961_i2c_probe()
925 if (IS_ERR(wm8961->regmap)) in wm8961_i2c_probe()
926 return PTR_ERR(wm8961->regmap); in wm8961_i2c_probe()
928 ret = regmap_read(wm8961->regmap, WM8961_SOFTWARE_RESET, &val); in wm8961_i2c_probe()
940 regcache_cache_bypass(wm8961->regmap, true); in wm8961_i2c_probe()
941 ret = regmap_read(wm8961->regmap, WM8961_RIGHT_INPUT_VOLUME, &val); in wm8961_i2c_probe()
942 regcache_cache_bypass(wm8961->regmap, false); in wm8961_i2c_probe()
954 ret = regmap_write(wm8961->regmap, WM8961_SOFTWARE_RESET, 0x1801); in wm8961_i2c_probe()
960 i2c_set_clientdata(i2c, wm8961); in wm8961_i2c_probe()