Lines Matching refs:rt1019

160 	struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component);  in rt1019_hw_params()  local
166 rt1019->lrck = params_rate(params); in rt1019_hw_params()
167 pre_div = rl6231_get_clk_info(rt1019->sysclk, rt1019->lrck); in rt1019_hw_params()
180 rt1019->bclk = rt1019->lrck * (32 << bclk_ms); in rt1019_hw_params()
183 rt1019->bclk, rt1019->lrck); in rt1019_hw_params()
293 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_sysclk() local
296 if (freq == rt1019->sysclk && clk_id == rt1019->sysclk_src) in rt1019_set_dai_sysclk()
313 rt1019->sysclk = freq; in rt1019_set_dai_sysclk()
314 rt1019->sysclk_src = clk_id; in rt1019_set_dai_sysclk()
328 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_pll() local
334 rt1019->pll_in = 0; in rt1019_set_dai_pll()
335 rt1019->pll_out = 0; in rt1019_set_dai_pll()
339 if (source == rt1019->pll_src && freq_in == rt1019->pll_in && in rt1019_set_dai_pll()
340 freq_out == rt1019->pll_out) in rt1019_set_dai_pll()
382 rt1019->pll_in = freq_in; in rt1019_set_dai_pll()
383 rt1019->pll_out = freq_out; in rt1019_set_dai_pll()
384 rt1019->pll_src = source; in rt1019_set_dai_pll()
483 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_probe() local
485 rt1019->component = component; in rt1019_probe()
564 struct rt1019_priv *rt1019; in rt1019_i2c_probe() local
568 rt1019 = devm_kzalloc(&i2c->dev, sizeof(struct rt1019_priv), in rt1019_i2c_probe()
570 if (!rt1019) in rt1019_i2c_probe()
573 i2c_set_clientdata(i2c, rt1019); in rt1019_i2c_probe()
575 rt1019->regmap = devm_regmap_init_i2c(i2c, &rt1019_regmap); in rt1019_i2c_probe()
576 if (IS_ERR(rt1019->regmap)) { in rt1019_i2c_probe()
577 ret = PTR_ERR(rt1019->regmap); in rt1019_i2c_probe()
583 regmap_read(rt1019->regmap, RT1019_DEV_ID_1, &val); in rt1019_i2c_probe()
584 regmap_read(rt1019->regmap, RT1019_DEV_ID_2, &val2); in rt1019_i2c_probe()