Lines Matching full:rt1019

3 // rt1019.c  --  RT1019 ALSA SoC audio amplifier driver
31 #include "rt1019.h"
161 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_hw_params() local
167 rt1019->lrck = params_rate(params); in rt1019_hw_params()
168 pre_div = rl6231_get_clk_info(rt1019->sysclk, rt1019->lrck); in rt1019_hw_params()
181 rt1019->bclk = rt1019->lrck * (32 << bclk_ms); in rt1019_hw_params()
184 rt1019->bclk, rt1019->lrck); in rt1019_hw_params()
294 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_sysclk() local
297 if (freq == rt1019->sysclk && clk_id == rt1019->sysclk_src) in rt1019_set_dai_sysclk()
314 rt1019->sysclk = freq; in rt1019_set_dai_sysclk()
315 rt1019->sysclk_src = clk_id; in rt1019_set_dai_sysclk()
329 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_pll() local
335 rt1019->pll_in = 0; in rt1019_set_dai_pll()
336 rt1019->pll_out = 0; in rt1019_set_dai_pll()
340 if (source == rt1019->pll_src && freq_in == rt1019->pll_in && in rt1019_set_dai_pll()
341 freq_out == rt1019->pll_out) in rt1019_set_dai_pll()
383 rt1019->pll_in = freq_in; in rt1019_set_dai_pll()
384 rt1019->pll_out = freq_out; in rt1019_set_dai_pll()
385 rt1019->pll_src = source; in rt1019_set_dai_pll()
482 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_probe() local
484 rt1019->component = component; in rt1019_probe()
504 .name = "rt1019-aif",
542 { "rt1019", 0 },
548 { .compatible = "realtek,rt1019", },
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()
588 "Device with ID register 0x%x is not rt1019\n", dev_id); in rt1019_i2c_probe()
598 .name = "rt1019",
607 MODULE_DESCRIPTION("ASoC RT1019 driver");