Lines Matching defs:rt1019
3 // rt1019.c -- RT1019 ALSA SoC audio amplifier driver
30 #include "rt1019.h"
160 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component);
166 rt1019->lrck = params_rate(params);
167 pre_div = rl6231_get_clk_info(rt1019->sysclk, rt1019->lrck);
180 rt1019->bclk = rt1019->lrck * (32 << bclk_ms);
183 rt1019->bclk, rt1019->lrck);
293 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component);
296 if (freq == rt1019->sysclk && clk_id == rt1019->sysclk_src)
313 rt1019->sysclk = freq;
314 rt1019->sysclk_src = clk_id;
328 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component);
334 rt1019->pll_in = 0;
335 rt1019->pll_out = 0;
339 if (source == rt1019->pll_src && freq_in == rt1019->pll_in &&
340 freq_out == rt1019->pll_out)
382 rt1019->pll_in = freq_in;
383 rt1019->pll_out = freq_out;
384 rt1019->pll_src = source;
483 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component);
485 rt1019->component = component;
505 .name = "rt1019-aif",
543 { "rt1019", 0 },
549 { .compatible = "realtek,rt1019", },
564 struct rt1019_priv *rt1019;
568 rt1019 = devm_kzalloc(&i2c->dev, sizeof(struct rt1019_priv),
570 if (!rt1019)
573 i2c_set_clientdata(i2c, rt1019);
575 rt1019->regmap = devm_regmap_init_i2c(i2c, &rt1019_regmap);
576 if (IS_ERR(rt1019->regmap)) {
577 ret = PTR_ERR(rt1019->regmap);
583 regmap_read(rt1019->regmap, RT1019_DEV_ID_1, &val);
584 regmap_read(rt1019->regmap, RT1019_DEV_ID_2, &val2);
588 "Device with ID register 0x%x is not rt1019\n", dev_id);
598 .name = "rt1019",