Lines Matching defs:component
22 struct snd_soc_component *component;
38 static int rk817_init(struct snd_soc_component *component)
40 struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component);
42 snd_soc_component_write(component, RK817_CODEC_DDAC_POPD_DACST, 0x02);
43 snd_soc_component_write(component, RK817_CODEC_DDAC_SR_LMT0, 0x02);
44 snd_soc_component_write(component, RK817_CODEC_DADC_SR_ACL0, 0x02);
45 snd_soc_component_write(component, RK817_CODEC_DTOP_VUCTIME, 0xf4);
47 snd_soc_component_update_bits(component, RK817_CODEC_AMIC_CFG0, MIC_DIFF_MASK,
54 static int rk817_set_component_pll(struct snd_soc_component *component,
59 snd_soc_component_write(component, RK817_CODEC_APLL_CFG1, 0x58);
61 snd_soc_component_write(component, RK817_CODEC_APLL_CFG2, 0x2d);
63 snd_soc_component_write(component, RK817_CODEC_APLL_CFG3, 0x0c);
67 snd_soc_component_write(component, RK817_CODEC_APLL_CFG4, 0xa5);
292 struct snd_soc_component *component = codec_dai->component;
293 struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component);
303 struct snd_soc_component *component = codec_dai->component;
314 dev_err(component->dev, "%s : set master mask failed!\n", __func__);
318 snd_soc_component_update_bits(component, RK817_CODEC_DI2S_CKM,
328 struct snd_soc_component *component = dai->component;
332 snd_soc_component_write(component, RK817_CODEC_DI2S_RXCR2,
334 snd_soc_component_write(component, RK817_CODEC_DI2S_TXCR2,
339 snd_soc_component_write(component, RK817_CODEC_DI2S_RXCR2,
341 snd_soc_component_write(component, RK817_CODEC_DI2S_TXCR2,
353 struct snd_soc_component *component = dai->component;
356 snd_soc_component_update_bits(component,
360 snd_soc_component_update_bits(component,
415 static int rk817_probe(struct snd_soc_component *component)
417 struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component);
418 struct rk808 *rk808 = dev_get_drvdata(component->dev->parent);
420 snd_soc_component_init_regmap(component, rk808->regmap);
421 rk817->component = component;
423 snd_soc_component_write(component, RK817_CODEC_DTOP_LPT_SRST, 0x40);
425 rk817_init(component);
431 snd_soc_component_set_pll(component, 0, 0, 0, 0);
436 static void rk817_remove(struct snd_soc_component *component)
438 snd_soc_component_exit_regmap(component);