Lines Matching refs:codec

146 	struct snd_soc_codec *codec;  member
273 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta32x_coefficient_get() local
274 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_coefficient_get()
315 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta32x_coefficient_put() local
316 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_coefficient_put()
350 static int sta32x_sync_coef_shadow(struct snd_soc_codec *codec) in sta32x_sync_coef_shadow() argument
352 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_sync_coef_shadow()
378 static int sta32x_cache_sync(struct snd_soc_codec *codec) in sta32x_cache_sync() argument
380 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_cache_sync()
387 sta32x_sync_coef_shadow(codec); in sta32x_cache_sync()
398 struct snd_soc_codec *codec = sta32x->codec; in sta32x_watchdog() local
402 confa_cached = snd_soc_read(codec, STA32X_CONFA); in sta32x_watchdog()
404 confa = snd_soc_read(codec, STA32X_CONFA); in sta32x_watchdog()
408 sta32x_cache_sync(codec); in sta32x_watchdog()
585 struct snd_soc_codec *codec = codec_dai->codec; in sta32x_set_dai_sysclk() local
586 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_set_dai_sysclk()
588 dev_dbg(codec->dev, "mclk=%u\n", freq); in sta32x_set_dai_sysclk()
605 struct snd_soc_codec *codec = codec_dai->codec; in sta32x_set_dai_fmt() local
606 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_set_dai_fmt()
654 struct snd_soc_codec *codec = dai->codec; in sta32x_hw_params() local
655 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_hw_params()
662 dev_err(codec->dev, in sta32x_hw_params()
669 dev_dbg(codec->dev, "rate: %u, ratio: %u\n", rate, ratio); in sta32x_hw_params()
679 dev_err(codec->dev, "Unsupported samplerate: %u\n", rate); in sta32x_hw_params()
691 dev_err(codec->dev, "Unresolvable ratio: %u\n", ratio); in sta32x_hw_params()
701 dev_dbg(codec->dev, "24bit\n"); in sta32x_hw_params()
704 dev_dbg(codec->dev, "24bit or 32bit\n"); in sta32x_hw_params()
719 dev_dbg(codec->dev, "20bit\n"); in sta32x_hw_params()
734 dev_dbg(codec->dev, "18bit\n"); in sta32x_hw_params()
749 dev_dbg(codec->dev, "16bit\n"); in sta32x_hw_params()
803 static int sta32x_set_bias_level(struct snd_soc_codec *codec, in sta32x_set_bias_level() argument
807 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_set_bias_level()
809 dev_dbg(codec->dev, "level = %d\n", level); in sta32x_set_bias_level()
822 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in sta32x_set_bias_level()
826 dev_err(codec->dev, in sta32x_set_bias_level()
832 sta32x_cache_sync(codec); in sta32x_set_bias_level()
878 static int sta32x_probe(struct snd_soc_codec *codec) in sta32x_probe() argument
880 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_probe()
886 dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); in sta32x_probe()
892 dev_err(codec->dev, "Failed to startup device\n"); in sta32x_probe()
972 snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_STANDBY); in sta32x_probe()
979 static int sta32x_remove(struct snd_soc_codec *codec) in sta32x_remove() argument
981 struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec); in sta32x_remove()