wm8978            473 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            475 sound/soc/codecs/wm8978.c 	unsigned int f_opclk = wm8978->f_opclk, f_mclk = wm8978->f_mclk,
wm8978            476 sound/soc/codecs/wm8978.c 		f_256fs = wm8978->f_256fs;
wm8978            485 sound/soc/codecs/wm8978.c 		wm8978->mclk_idx = -1;
wm8978            510 sound/soc/codecs/wm8978.c 		wm8978->f_pllout = f_opclk * opclk_div;
wm8978            522 sound/soc/codecs/wm8978.c 		int idx = wm8978_enum_mclk(f_256fs, f_mclk, &wm8978->f_pllout);
wm8978            526 sound/soc/codecs/wm8978.c 		wm8978->mclk_idx = idx;
wm8978            531 sound/soc/codecs/wm8978.c 	f2 = wm8978->f_pllout * 4;
wm8978            534 sound/soc/codecs/wm8978.c 		wm8978->f_mclk, wm8978->f_pllout);
wm8978            536 sound/soc/codecs/wm8978.c 	pll_factors(component, &pll_div, f2, wm8978->f_mclk);
wm8978            566 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            571 sound/soc/codecs/wm8978.c 		wm8978->f_opclk = div;
wm8978            573 sound/soc/codecs/wm8978.c 		if (wm8978->f_mclk)
wm8978            611 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            617 sound/soc/codecs/wm8978.c 		wm8978->f_mclk = freq;
wm8978            620 sound/soc/codecs/wm8978.c 		if (wm8978->f_opclk)
wm8978            626 sound/soc/codecs/wm8978.c 			wm8978->sysclk = clk_id;
wm8978            629 sound/soc/codecs/wm8978.c 	if (wm8978->sysclk == WM8978_PLL && (!freq || clk_id == WM8978_MCLK)) {
wm8978            638 sound/soc/codecs/wm8978.c 		wm8978->sysclk = WM8978_MCLK;
wm8978            639 sound/soc/codecs/wm8978.c 		wm8978->f_pllout = 0;
wm8978            640 sound/soc/codecs/wm8978.c 		wm8978->f_opclk = 0;
wm8978            721 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            732 sound/soc/codecs/wm8978.c 	if (!wm8978->f_mclk)
wm8978            773 sound/soc/codecs/wm8978.c 	wm8978->f_256fs = params_rate(params) * 256;
wm8978            775 sound/soc/codecs/wm8978.c 	if (wm8978->sysclk == WM8978_MCLK) {
wm8978            776 sound/soc/codecs/wm8978.c 		wm8978->mclk_idx = -1;
wm8978            777 sound/soc/codecs/wm8978.c 		f_sel = wm8978->f_mclk;
wm8978            779 sound/soc/codecs/wm8978.c 		if (!wm8978->f_opclk) {
wm8978            785 sound/soc/codecs/wm8978.c 		f_sel = wm8978->f_pllout;
wm8978            788 sound/soc/codecs/wm8978.c 	if (wm8978->mclk_idx < 0) {
wm8978            790 sound/soc/codecs/wm8978.c 		if (f_sel < wm8978->f_256fs || f_sel > 12 * wm8978->f_256fs)
wm8978            794 sound/soc/codecs/wm8978.c 			diff = abs(wm8978->f_256fs * 3 -
wm8978            807 sound/soc/codecs/wm8978.c 		best = wm8978->mclk_idx;
wm8978            814 sound/soc/codecs/wm8978.c 			wm8978->sysclk == WM8978_MCLK ?
wm8978            826 sound/soc/codecs/wm8978.c 	if (wm8978->sysclk != current_clk_id) {
wm8978            827 sound/soc/codecs/wm8978.c 		if (wm8978->sysclk == WM8978_PLL)
wm8978            925 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            931 sound/soc/codecs/wm8978.c 	regcache_mark_dirty(wm8978->regmap);
wm8978            938 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            941 sound/soc/codecs/wm8978.c 	regcache_sync(wm8978->regmap);
wm8978            945 sound/soc/codecs/wm8978.c 	if (wm8978->f_pllout)
wm8978            973 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component);
wm8978            980 sound/soc/codecs/wm8978.c 	wm8978->sysclk = WM8978_PLL;
wm8978           1025 sound/soc/codecs/wm8978.c 	struct wm8978_priv *wm8978;
wm8978           1028 sound/soc/codecs/wm8978.c 	wm8978 = devm_kzalloc(&i2c->dev, sizeof(struct wm8978_priv),
wm8978           1030 sound/soc/codecs/wm8978.c 	if (wm8978 == NULL)
wm8978           1033 sound/soc/codecs/wm8978.c 	wm8978->regmap = devm_regmap_init_i2c(i2c, &wm8978_regmap_config);
wm8978           1034 sound/soc/codecs/wm8978.c 	if (IS_ERR(wm8978->regmap)) {
wm8978           1035 sound/soc/codecs/wm8978.c 		ret = PTR_ERR(wm8978->regmap);
wm8978           1040 sound/soc/codecs/wm8978.c 	i2c_set_clientdata(i2c, wm8978);
wm8978           1043 sound/soc/codecs/wm8978.c 	ret = regmap_write(wm8978->regmap, WM8978_RESET, 0);
wm8978            126 sound/soc/sh/migor.c SND_SOC_DAILINK_DEFS(wm8978,
wm8978            137 sound/soc/sh/migor.c 	SND_SOC_DAILINK_REG(wm8978),