Lines Matching refs:codec

341 	struct snd_soc_codec *codec = dai->codec;  in ml26124_hw_params()  local
342 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_hw_params()
354 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
358 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
362 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
366 dev_err(codec->dev, "Unsupported MCLKI\n"); in ml26124_hw_params()
370 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
378 snd_soc_update_bits(codec, ML26124_SMPLING_RATE, 0xf, srate); in ml26124_hw_params()
379 snd_soc_update_bits(codec, ML26124_PLLNL, 0xff, coeff_div[i].pllnl); in ml26124_hw_params()
380 snd_soc_update_bits(codec, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); in ml26124_hw_params()
381 snd_soc_update_bits(codec, ML26124_PLLML, 0xff, coeff_div[i].pllml); in ml26124_hw_params()
382 snd_soc_update_bits(codec, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); in ml26124_hw_params()
383 snd_soc_update_bits(codec, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); in ml26124_hw_params()
390 struct snd_soc_codec *codec = dai->codec; in ml26124_mute() local
391 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_mute()
395 snd_soc_update_bits(codec, ML26124_REC_PLYBAK_RUN, BIT(0), 1); in ml26124_mute()
398 snd_soc_update_bits(codec, ML26124_REC_PLYBAK_RUN, BIT(1), 2); in ml26124_mute()
403 snd_soc_update_bits(codec, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
406 snd_soc_update_bits(codec, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
416 struct snd_soc_codec *codec = codec_dai->codec; in ml26124_set_dai_fmt() local
429 snd_soc_update_bits(codec, ML26124_SAI_MODE_SEL, BIT(0), mode); in ml26124_set_dai_fmt()
453 struct snd_soc_codec *codec = codec_dai->codec; in ml26124_set_dai_sysclk() local
454 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_dai_sysclk()
472 static int ml26124_set_bias_level(struct snd_soc_codec *codec, in ml26124_set_bias_level() argument
475 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_bias_level()
479 snd_soc_update_bits(codec, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
482 snd_soc_update_bits(codec, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
490 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in ml26124_set_bias_level()
491 snd_soc_update_bits(codec, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
499 snd_soc_update_bits(codec, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
531 static int ml26124_probe(struct snd_soc_codec *codec) in ml26124_probe() argument
534 snd_soc_update_bits(codec, ML26124_SW_RST, 0x01, 1); in ml26124_probe()
535 snd_soc_update_bits(codec, ML26124_SW_RST, 0x01, 0); in ml26124_probe()