Searched refs:rt1308 (Results 1 – 4 of 4) sorted by relevance
/linux/sound/soc/codecs/ |
H A D | rt1308-sdw.c | 87 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); in rt1308_clock_config() local 90 clk_freq = (rt1308->params.curr_dr_freq >> 1); in rt1308_clock_config() 115 regmap_write(rt1308->regmap, 0xe0, value); in rt1308_clock_config() 116 regmap_write(rt1308->regmap, 0xf0, value); in rt1308_clock_config() 167 static void rt1308_apply_calib_params(struct rt1308_sdw_priv *rt1308) in rt1308_apply_calib_params() argument 173 regmap_write(rt1308->regmap, 0xc7f0, 0x04); in rt1308_apply_calib_params() 174 regmap_write(rt1308->regmap, 0xc7f1, 0xfe); in rt1308_apply_calib_params() 176 regmap_write(rt1308->regmap, 0xc7f0, 0x44); in rt1308_apply_calib_params() 178 regmap_write(rt1308->regmap, 0xc240, 0x10); in rt1308_apply_calib_params() 180 regmap_read(rt1308->regmap, 0xc861, &tmp); in rt1308_apply_calib_params() [all …]
|
H A D | rt1308.c | 197 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_reg_init() local 199 return regmap_multi_reg_write(rt1308->regmap, init_list, in rt1308_reg_init() 455 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_hw_params() local 459 rt1308->lrck = params_rate(params); in rt1308_hw_params() 460 pre_div = rt1308_get_clk_info(rt1308->sysclk, rt1308->lrck); in rt1308_hw_params() 463 "Unsupported clock setting %d\n", rt1308->lrck); in rt1308_hw_params() 475 rt1308->bclk = rt1308->lrck * (32 << bclk_ms); in rt1308_hw_params() 481 rt1308->lrck, pre_div, dai->id); in rt1308_hw_params() 522 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_set_dai_fmt() local 527 rt1308->master = 0; in rt1308_set_dai_fmt() [all …]
|
H A D | Makefile | 227 snd-soc-rt1308-y := rt1308.o 228 snd-soc-rt1308-sdw-y := rt1308-sdw.o 629 obj-$(CONFIG_SND_SOC_RT1308) += snd-soc-rt1308.o 630 obj-$(CONFIG_SND_SOC_RT1308_SDW) += snd-soc-rt1308-sdw.o
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | rt1308.txt | 7 - compatible : "realtek,rt1308". 14 rt1308: rt1308@10 { 15 compatible = "realtek,rt1308";
|