Lines Matching refs:codec

77 static int wm8737_reset(struct snd_soc_codec *codec)  in wm8737_reset()  argument
79 return snd_soc_write(codec, WM8737_RESET, 0); in wm8737_reset()
331 struct snd_soc_codec *codec = dai->codec; in wm8737_hw_params() local
332 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_hw_params()
351 dev_err(codec->dev, "%dHz MCLK can't support %dHz\n", in wm8737_hw_params()
374 snd_soc_update_bits(codec, WM8737_AUDIO_FORMAT, WM8737_WL_MASK, af); in wm8737_hw_params()
375 snd_soc_update_bits(codec, WM8737_CLOCKING, in wm8737_hw_params()
385 struct snd_soc_codec *codec = codec_dai->codec; in wm8737_set_dai_sysclk() local
386 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_dai_sysclk()
397 dev_err(codec->dev, "MCLK rate %dHz not supported\n", freq); in wm8737_set_dai_sysclk()
406 struct snd_soc_codec *codec = codec_dai->codec; in wm8737_set_dai_fmt() local
448 snd_soc_update_bits(codec, WM8737_AUDIO_FORMAT, in wm8737_set_dai_fmt()
454 static int wm8737_set_bias_level(struct snd_soc_codec *codec, in wm8737_set_bias_level() argument
457 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_bias_level()
466 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
471 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in wm8737_set_bias_level()
475 dev_err(codec->dev, in wm8737_set_bias_level()
484 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
489 snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
499 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
506 snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
540 static int wm8737_probe(struct snd_soc_codec *codec) in wm8737_probe() argument
542 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_probe()
548 dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); in wm8737_probe()
552 ret = wm8737_reset(codec); in wm8737_probe()
554 dev_err(codec->dev, "Failed to issue reset\n"); in wm8737_probe()
558 snd_soc_update_bits(codec, WM8737_LEFT_PGA_VOLUME, WM8737_LVU, in wm8737_probe()
560 snd_soc_update_bits(codec, WM8737_RIGHT_PGA_VOLUME, WM8737_RVU, in wm8737_probe()
563 snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_STANDBY); in wm8737_probe()