rt1308            199 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            201 sound/soc/codecs/rt1308.c 	return regmap_multi_reg_write(rt1308->regmap, init_list,
rt1308            457 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            461 sound/soc/codecs/rt1308.c 	rt1308->lrck = params_rate(params);
rt1308            462 sound/soc/codecs/rt1308.c 	pre_div = rt1308_get_clk_info(rt1308->sysclk, rt1308->lrck);
rt1308            465 sound/soc/codecs/rt1308.c 			"Unsupported clock setting %d\n", rt1308->lrck);
rt1308            477 sound/soc/codecs/rt1308.c 	rt1308->bclk = rt1308->lrck * (32 << bclk_ms);
rt1308            483 sound/soc/codecs/rt1308.c 				rt1308->lrck, pre_div, dai->id);
rt1308            524 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            529 sound/soc/codecs/rt1308.c 		rt1308->master = 0;
rt1308            580 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            583 sound/soc/codecs/rt1308.c 	if (freq == rt1308->sysclk && clk_id == rt1308->sysclk_src)
rt1308            608 sound/soc/codecs/rt1308.c 	rt1308->sysclk = freq;
rt1308            609 sound/soc/codecs/rt1308.c 	rt1308->sysclk_src = clk_id;
rt1308            621 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            625 sound/soc/codecs/rt1308.c 	if (source == rt1308->pll_src && freq_in == rt1308->pll_in &&
rt1308            626 sound/soc/codecs/rt1308.c 	    freq_out == rt1308->pll_out)
rt1308            632 sound/soc/codecs/rt1308.c 		rt1308->pll_in = 0;
rt1308            633 sound/soc/codecs/rt1308.c 		rt1308->pll_out = 0;
rt1308            681 sound/soc/codecs/rt1308.c 	rt1308->pll_in = freq_in;
rt1308            682 sound/soc/codecs/rt1308.c 	rt1308->pll_out = freq_out;
rt1308            683 sound/soc/codecs/rt1308.c 	rt1308->pll_src = source;
rt1308            690 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            692 sound/soc/codecs/rt1308.c 	rt1308->component = component;
rt1308            699 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            701 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_RESET, 0);
rt1308            707 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            709 sound/soc/codecs/rt1308.c 	regcache_cache_only(rt1308->regmap, true);
rt1308            710 sound/soc/codecs/rt1308.c 	regcache_mark_dirty(rt1308->regmap);
rt1308            717 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component);
rt1308            719 sound/soc/codecs/rt1308.c 	regcache_cache_only(rt1308->regmap, false);
rt1308            720 sound/soc/codecs/rt1308.c 	regcache_sync(rt1308->regmap);
rt1308            806 sound/soc/codecs/rt1308.c static void rt1308_efuse(struct rt1308_priv *rt1308)
rt1308            808 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_RESET, 0);
rt1308            810 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_POWER_STATUS, 0x01800000);
rt1308            812 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_EFUSE_1, 0x44fe0f00);
rt1308            814 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_PVDD_OFFSET_CTL, 0x10000000);
rt1308            820 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308;
rt1308            824 sound/soc/codecs/rt1308.c 	rt1308 = devm_kzalloc(&i2c->dev, sizeof(struct rt1308_priv),
rt1308            826 sound/soc/codecs/rt1308.c 	if (rt1308 == NULL)
rt1308            829 sound/soc/codecs/rt1308.c 	i2c_set_clientdata(i2c, rt1308);
rt1308            831 sound/soc/codecs/rt1308.c 	rt1308->regmap = devm_regmap_init_i2c(i2c, &rt1308_regmap);
rt1308            832 sound/soc/codecs/rt1308.c 	if (IS_ERR(rt1308->regmap)) {
rt1308            833 sound/soc/codecs/rt1308.c 		ret = PTR_ERR(rt1308->regmap);
rt1308            839 sound/soc/codecs/rt1308.c 	regmap_read(rt1308->regmap, RT1308_VEN_DEV_ID, &val);
rt1308            847 sound/soc/codecs/rt1308.c 	rt1308_efuse(rt1308);
rt1308            856 sound/soc/codecs/rt1308.c 	struct rt1308_priv *rt1308 = i2c_get_clientdata(client);
rt1308            858 sound/soc/codecs/rt1308.c 	regmap_write(rt1308->regmap, RT1308_RESET, 0);