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()
353 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
357 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
361 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
365 dev_err(codec->dev, "Unsupported MCLKI\n"); in ml26124_hw_params()
369 snd_soc_update_bits(codec, ML26124_CLK_CTL, in ml26124_hw_params()
375 snd_soc_update_bits(codec, ML26124_SMPLING_RATE, 0xf, in ml26124_hw_params()
377 snd_soc_update_bits(codec, ML26124_PLLNL, 0xff, in ml26124_hw_params()
379 snd_soc_update_bits(codec, ML26124_PLLNH, 0x1, in ml26124_hw_params()
381 snd_soc_update_bits(codec, ML26124_PLLML, 0xff, in ml26124_hw_params()
383 snd_soc_update_bits(codec, ML26124_PLLMH, 0x3f, in ml26124_hw_params()
385 snd_soc_update_bits(codec, ML26124_PLLDIV, 0x1f, in ml26124_hw_params()
389 snd_soc_update_bits(codec, ML26124_SMPLING_RATE, 0xf, in ml26124_hw_params()
391 snd_soc_update_bits(codec, ML26124_PLLNL, 0xff, in ml26124_hw_params()
393 snd_soc_update_bits(codec, ML26124_PLLNH, 0x1, in ml26124_hw_params()
395 snd_soc_update_bits(codec, ML26124_PLLML, 0xff, in ml26124_hw_params()
397 snd_soc_update_bits(codec, ML26124_PLLMH, 0x3f, in ml26124_hw_params()
399 snd_soc_update_bits(codec, ML26124_PLLDIV, 0x1f, in ml26124_hw_params()
403 snd_soc_update_bits(codec, ML26124_SMPLING_RATE, 0xf, in ml26124_hw_params()
405 snd_soc_update_bits(codec, ML26124_PLLNL, 0xff, in ml26124_hw_params()
407 snd_soc_update_bits(codec, ML26124_PLLNH, 0x1, in ml26124_hw_params()
409 snd_soc_update_bits(codec, ML26124_PLLML, 0xff, in ml26124_hw_params()
411 snd_soc_update_bits(codec, ML26124_PLLMH, 0x3f, in ml26124_hw_params()
413 snd_soc_update_bits(codec, ML26124_PLLDIV, 0x1f, in ml26124_hw_params()
426 struct snd_soc_codec *codec = dai->codec; in ml26124_mute() local
427 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_mute()
431 snd_soc_update_bits(codec, ML26124_REC_PLYBAK_RUN, BIT(0), 1); in ml26124_mute()
434 snd_soc_update_bits(codec, ML26124_REC_PLYBAK_RUN, BIT(1), 2); in ml26124_mute()
439 snd_soc_update_bits(codec, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
442 snd_soc_update_bits(codec, ML26124_DVOL_CTL, BIT(4), in ml26124_mute()
452 struct snd_soc_codec *codec = codec_dai->codec; in ml26124_set_dai_fmt() local
465 snd_soc_update_bits(codec, ML26124_SAI_MODE_SEL, BIT(0), mode); in ml26124_set_dai_fmt()
489 struct snd_soc_codec *codec = codec_dai->codec; in ml26124_set_dai_sysclk() local
490 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_dai_sysclk()
508 static int ml26124_set_bias_level(struct snd_soc_codec *codec, in ml26124_set_bias_level() argument
511 struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec); in ml26124_set_bias_level()
515 snd_soc_update_bits(codec, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
518 snd_soc_update_bits(codec, ML26124_PW_SPAMP_PW_MNG, in ml26124_set_bias_level()
526 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in ml26124_set_bias_level()
527 snd_soc_update_bits(codec, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
535 snd_soc_update_bits(codec, ML26124_PW_REF_PW_MNG, in ml26124_set_bias_level()
539 codec->dapm.bias_level = level; in ml26124_set_bias_level()
568 static int ml26124_probe(struct snd_soc_codec *codec) in ml26124_probe() argument
571 snd_soc_update_bits(codec, ML26124_SW_RST, 0x01, 1); in ml26124_probe()
572 snd_soc_update_bits(codec, ML26124_SW_RST, 0x01, 0); in ml26124_probe()