Home
last modified time | relevance | path

Searched refs:rt1308 (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/sound/soc/codecs/
Drt1308-sdw.c85 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); in rt1308_clock_config() local
88 clk_freq = (rt1308->params.curr_dr_freq >> 1); in rt1308_clock_config()
113 regmap_write(rt1308->regmap, 0xe0, value); in rt1308_clock_config()
114 regmap_write(rt1308->regmap, 0xf0, value); in rt1308_clock_config()
165 static void rt1308_apply_calib_params(struct rt1308_sdw_priv *rt1308) in rt1308_apply_calib_params() argument
171 regmap_write(rt1308->regmap, 0xc7f0, 0x04); in rt1308_apply_calib_params()
172 regmap_write(rt1308->regmap, 0xc7f1, 0xfe); in rt1308_apply_calib_params()
174 regmap_write(rt1308->regmap, 0xc7f0, 0x44); in rt1308_apply_calib_params()
176 regmap_write(rt1308->regmap, 0xc240, 0x10); in rt1308_apply_calib_params()
178 regmap_read(rt1308->regmap, 0xc861, &tmp); in rt1308_apply_calib_params()
[all …]
Drt1308.c199 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_reg_init() local
201 return regmap_multi_reg_write(rt1308->regmap, init_list, in rt1308_reg_init()
457 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_hw_params() local
461 rt1308->lrck = params_rate(params); in rt1308_hw_params()
462 pre_div = rt1308_get_clk_info(rt1308->sysclk, rt1308->lrck); in rt1308_hw_params()
465 "Unsupported clock setting %d\n", rt1308->lrck); in rt1308_hw_params()
477 rt1308->bclk = rt1308->lrck * (32 << bclk_ms); in rt1308_hw_params()
483 rt1308->lrck, pre_div, dai->id); in rt1308_hw_params()
524 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_set_dai_fmt() local
529 rt1308->master = 0; in rt1308_set_dai_fmt()
[all …]
DMakefile196 snd-soc-rt1308-objs := rt1308.o
197 snd-soc-rt1308-sdw-objs := rt1308-sdw.o
551 obj-$(CONFIG_SND_SOC_RT1308) += snd-soc-rt1308.o
552 obj-$(CONFIG_SND_SOC_RT1308_SDW) += snd-soc-rt1308-sdw.o
/linux-6.1.9/Documentation/devicetree/bindings/sound/
Drt1308.txt7 - compatible : "realtek,rt1308".
14 rt1308: rt1308@10 {
15 compatible = "realtek,rt1308";