Lines Matching refs:component
328 struct snd_soc_component *component = dai->component; in ml26124_hw_params() local
329 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); in ml26124_hw_params()
341 snd_soc_component_update_bits(component, ML26124_CLK_CTL, in ml26124_hw_params()
345 snd_soc_component_update_bits(component, ML26124_CLK_CTL, in ml26124_hw_params()
349 snd_soc_component_update_bits(component, ML26124_CLK_CTL, in ml26124_hw_params()
353 dev_err(component->dev, "Unsupported MCLKI\n"); in ml26124_hw_params()
357 snd_soc_component_update_bits(component, ML26124_CLK_CTL, in ml26124_hw_params()
365 snd_soc_component_update_bits(component, ML26124_SMPLING_RATE, 0xf, srate); in ml26124_hw_params()
366 snd_soc_component_update_bits(component, ML26124_PLLNL, 0xff, coeff_div[i].pllnl); in ml26124_hw_params()
367 snd_soc_component_update_bits(component, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); in ml26124_hw_params()
368 snd_soc_component_update_bits(component, ML26124_PLLML, 0xff, coeff_div[i].pllml); in ml26124_hw_params()
369 snd_soc_component_update_bits(component, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); in ml26124_hw_params()
370 snd_soc_component_update_bits(component, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); in ml26124_hw_params()
377 struct snd_soc_component *component = dai->component; in ml26124_mute() local
378 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); in ml26124_mute()
382 snd_soc_component_update_bits(component, ML26124_REC_PLYBAK_RUN, BIT(0), 1); in ml26124_mute()
385 snd_soc_component_update_bits(component, ML26124_REC_PLYBAK_RUN, BIT(1), 2); in ml26124_mute()
390 snd_soc_component_update_bits(component, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
393 snd_soc_component_update_bits(component, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
403 struct snd_soc_component *component = codec_dai->component; in ml26124_set_dai_fmt() local
415 snd_soc_component_update_bits(component, ML26124_SAI_MODE_SEL, BIT(0), mode); in ml26124_set_dai_fmt()
439 struct snd_soc_component *component = codec_dai->component; in ml26124_set_dai_sysclk() local
440 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); in ml26124_set_dai_sysclk()
458 static int ml26124_set_bias_level(struct snd_soc_component *component, in ml26124_set_bias_level() argument
461 struct ml26124_priv *priv = snd_soc_component_get_drvdata(component); in ml26124_set_bias_level()
465 snd_soc_component_update_bits(component, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
468 snd_soc_component_update_bits(component, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
476 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in ml26124_set_bias_level()
477 snd_soc_component_update_bits(component, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
485 snd_soc_component_update_bits(component, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
518 static int ml26124_probe(struct snd_soc_component *component) in ml26124_probe() argument
521 snd_soc_component_update_bits(component, ML26124_SW_RST, 0x01, 1); in ml26124_probe()
522 snd_soc_component_update_bits(component, ML26124_SW_RST, 0x01, 0); in ml26124_probe()