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