wm8960            170 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            176 sound/soc/codecs/wm8960.c 	if (wm8960->deemph) {
wm8960            179 sound/soc/codecs/wm8960.c 			if (abs(deemph_settings[i] - wm8960->lrclk) <
wm8960            180 sound/soc/codecs/wm8960.c 			    abs(deemph_settings[best] - wm8960->lrclk))
wm8960            199 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            201 sound/soc/codecs/wm8960.c 	ucontrol->value.integer.value[0] = wm8960->deemph;
wm8960            209 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            215 sound/soc/codecs/wm8960.c 	wm8960->deemph = deemph;
wm8960            472 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            473 sound/soc/codecs/wm8960.c 	struct wm8960_data *pdata = &wm8960->pdata;
wm8960            508 sound/soc/codecs/wm8960.c 			wm8960->lout1 = w;
wm8960            510 sound/soc/codecs/wm8960.c 			wm8960->rout1 = w;
wm8960            512 sound/soc/codecs/wm8960.c 			wm8960->out3 = w;
wm8960            627 sound/soc/codecs/wm8960.c int wm8960_configure_sysclk(struct wm8960_priv *wm8960, int mclk,
wm8960            637 sound/soc/codecs/wm8960.c 	bclk = wm8960->bclk;
wm8960            638 sound/soc/codecs/wm8960.c 	lrclk = wm8960->lrclk;
wm8960            698 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            703 sound/soc/codecs/wm8960.c 	bclk = wm8960->bclk;
wm8960            704 sound/soc/codecs/wm8960.c 	lrclk = wm8960->lrclk;
wm8960            743 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            755 sound/soc/codecs/wm8960.c 	if (wm8960->clk_id != WM8960_SYSCLK_MCLK && !wm8960->freq_in) {
wm8960            760 sound/soc/codecs/wm8960.c 	freq_in = wm8960->freq_in;
wm8960            767 sound/soc/codecs/wm8960.c 	if (wm8960->clk_id == WM8960_SYSCLK_AUTO) {
wm8960            771 sound/soc/codecs/wm8960.c 	} else if (wm8960->sysclk) {
wm8960            772 sound/soc/codecs/wm8960.c 		freq_out = wm8960->sysclk;
wm8960            778 sound/soc/codecs/wm8960.c 	if (wm8960->clk_id != WM8960_SYSCLK_PLL) {
wm8960            779 sound/soc/codecs/wm8960.c 		ret = wm8960_configure_sysclk(wm8960, freq_out, &i, &j, &k);
wm8960            782 sound/soc/codecs/wm8960.c 		} else if (wm8960->clk_id != WM8960_SYSCLK_AUTO) {
wm8960            814 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            819 sound/soc/codecs/wm8960.c 	wm8960->bclk = snd_soc_params_to_bclk(params);
wm8960            821 sound/soc/codecs/wm8960.c 		wm8960->bclk *= 2;
wm8960            846 sound/soc/codecs/wm8960.c 	wm8960->lrclk = params_rate(params);
wm8960            861 sound/soc/codecs/wm8960.c 	wm8960->is_stream_in_use[tx] = true;
wm8960            863 sound/soc/codecs/wm8960.c 	if (!wm8960->is_stream_in_use[!tx])
wm8960            873 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            876 sound/soc/codecs/wm8960.c 	wm8960->is_stream_in_use[tx] = false;
wm8960            895 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960            906 sound/soc/codecs/wm8960.c 			if (!IS_ERR(wm8960->mclk)) {
wm8960            907 sound/soc/codecs/wm8960.c 				ret = clk_prepare_enable(wm8960->mclk);
wm8960            929 sound/soc/codecs/wm8960.c 			if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1))
wm8960            932 sound/soc/codecs/wm8960.c 			if (!IS_ERR(wm8960->mclk))
wm8960            933 sound/soc/codecs/wm8960.c 				clk_disable_unprepare(wm8960->mclk);
wm8960            944 sound/soc/codecs/wm8960.c 			regcache_sync(wm8960->regmap);
wm8960            985 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960           1005 sound/soc/codecs/wm8960.c 			if (wm8960->lout1 && wm8960->lout1->power)
wm8960           1007 sound/soc/codecs/wm8960.c 			if (wm8960->rout1 && wm8960->rout1->power)
wm8960           1009 sound/soc/codecs/wm8960.c 			if (wm8960->out3 && wm8960->out3->power)
wm8960           1029 sound/soc/codecs/wm8960.c 			if (!IS_ERR(wm8960->mclk)) {
wm8960           1030 sound/soc/codecs/wm8960.c 				ret = clk_prepare_enable(wm8960->mclk);
wm8960           1050 sound/soc/codecs/wm8960.c 			if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1))
wm8960           1053 sound/soc/codecs/wm8960.c 			if (!IS_ERR(wm8960->mclk))
wm8960           1054 sound/soc/codecs/wm8960.c 				clk_disable_unprepare(wm8960->mclk);
wm8960           1069 sound/soc/codecs/wm8960.c 			regcache_sync(wm8960->regmap);
wm8960           1230 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960           1232 sound/soc/codecs/wm8960.c 	wm8960->freq_in = freq_in;
wm8960           1277 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960           1279 sound/soc/codecs/wm8960.c 	return wm8960->set_bias_level(component, level);
wm8960           1286 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960           1303 sound/soc/codecs/wm8960.c 	wm8960->sysclk = freq;
wm8960           1304 sound/soc/codecs/wm8960.c 	wm8960->clk_id = clk_id;
wm8960           1345 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
wm8960           1346 sound/soc/codecs/wm8960.c 	struct wm8960_data *pdata = &wm8960->pdata;
wm8960           1349 sound/soc/codecs/wm8960.c 		wm8960->set_bias_level = wm8960_set_bias_level_capless;
wm8960           1351 sound/soc/codecs/wm8960.c 		wm8960->set_bias_level = wm8960_set_bias_level_out3;
wm8960           1398 sound/soc/codecs/wm8960.c 	struct wm8960_priv *wm8960;
wm8960           1401 sound/soc/codecs/wm8960.c 	wm8960 = devm_kzalloc(&i2c->dev, sizeof(struct wm8960_priv),
wm8960           1403 sound/soc/codecs/wm8960.c 	if (wm8960 == NULL)
wm8960           1406 sound/soc/codecs/wm8960.c 	wm8960->mclk = devm_clk_get(&i2c->dev, "mclk");
wm8960           1407 sound/soc/codecs/wm8960.c 	if (IS_ERR(wm8960->mclk)) {
wm8960           1408 sound/soc/codecs/wm8960.c 		if (PTR_ERR(wm8960->mclk) == -EPROBE_DEFER)
wm8960           1412 sound/soc/codecs/wm8960.c 	wm8960->regmap = devm_regmap_init_i2c(i2c, &wm8960_regmap);
wm8960           1413 sound/soc/codecs/wm8960.c 	if (IS_ERR(wm8960->regmap))
wm8960           1414 sound/soc/codecs/wm8960.c 		return PTR_ERR(wm8960->regmap);
wm8960           1417 sound/soc/codecs/wm8960.c 		memcpy(&wm8960->pdata, pdata, sizeof(struct wm8960_data));
wm8960           1419 sound/soc/codecs/wm8960.c 		wm8960_set_pdata_from_of(i2c, &wm8960->pdata);
wm8960           1421 sound/soc/codecs/wm8960.c 	ret = wm8960_reset(wm8960->regmap);
wm8960           1427 sound/soc/codecs/wm8960.c 	if (wm8960->pdata.shared_lrclk) {
wm8960           1428 sound/soc/codecs/wm8960.c 		ret = regmap_update_bits(wm8960->regmap, WM8960_ADDCTL2,
wm8960           1438 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_LINVOL, 0x100, 0x100);
wm8960           1439 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_RINVOL, 0x100, 0x100);
wm8960           1440 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_LADC, 0x100, 0x100);
wm8960           1441 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_RADC, 0x100, 0x100);
wm8960           1442 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_LDAC, 0x100, 0x100);
wm8960           1443 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_RDAC, 0x100, 0x100);
wm8960           1444 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_LOUT1, 0x100, 0x100);
wm8960           1445 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_ROUT1, 0x100, 0x100);
wm8960           1446 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_LOUT2, 0x100, 0x100);
wm8960           1447 sound/soc/codecs/wm8960.c 	regmap_update_bits(wm8960->regmap, WM8960_ROUT2, 0x100, 0x100);
wm8960           1449 sound/soc/codecs/wm8960.c 	i2c_set_clientdata(i2c, wm8960);