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()
332 struct snd_soc_codec *codec = dai->codec; in wm8737_hw_params() local
333 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_hw_params()
352 dev_err(codec->dev, "%dHz MCLK can't support %dHz\n", in wm8737_hw_params()
375 snd_soc_update_bits(codec, WM8737_AUDIO_FORMAT, WM8737_WL_MASK, af); in wm8737_hw_params()
376 snd_soc_update_bits(codec, WM8737_CLOCKING, in wm8737_hw_params()
386 struct snd_soc_codec *codec = codec_dai->codec; in wm8737_set_dai_sysclk() local
387 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_dai_sysclk()
398 dev_err(codec->dev, "MCLK rate %dHz not supported\n", freq); in wm8737_set_dai_sysclk()
407 struct snd_soc_codec *codec = codec_dai->codec; in wm8737_set_dai_fmt() local
449 snd_soc_update_bits(codec, WM8737_AUDIO_FORMAT, in wm8737_set_dai_fmt()
455 static int wm8737_set_bias_level(struct snd_soc_codec *codec, in wm8737_set_bias_level() argument
458 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_set_bias_level()
467 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
472 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { in wm8737_set_bias_level()
476 dev_err(codec->dev, in wm8737_set_bias_level()
485 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
490 snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
500 snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
507 snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
515 codec->dapm.bias_level = level; in wm8737_set_bias_level()
542 static int wm8737_probe(struct snd_soc_codec *codec) in wm8737_probe() argument
544 struct wm8737_priv *wm8737 = snd_soc_codec_get_drvdata(codec); in wm8737_probe()
550 dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); in wm8737_probe()
554 ret = wm8737_reset(codec); in wm8737_probe()
556 dev_err(codec->dev, "Failed to issue reset\n"); in wm8737_probe()
560 snd_soc_update_bits(codec, WM8737_LEFT_PGA_VOLUME, WM8737_LVU, in wm8737_probe()
562 snd_soc_update_bits(codec, WM8737_RIGHT_PGA_VOLUME, WM8737_RVU, in wm8737_probe()
565 wm8737_set_bias_level(codec, SND_SOC_BIAS_STANDBY); in wm8737_probe()