Lines Matching refs:codec

312 	struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);  in sta350_coefficient_get()  local
313 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_coefficient_get()
354 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta350_coefficient_put() local
355 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_coefficient_put()
389 static int sta350_sync_coef_shadow(struct snd_soc_codec *codec) in sta350_sync_coef_shadow() argument
391 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_sync_coef_shadow()
417 static int sta350_cache_sync(struct snd_soc_codec *codec) in sta350_cache_sync() argument
419 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_cache_sync()
426 sta350_sync_coef_shadow(codec); in sta350_cache_sync()
616 struct snd_soc_codec *codec = codec_dai->codec; in sta350_set_dai_sysclk() local
617 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_set_dai_sysclk()
619 dev_dbg(codec->dev, "mclk=%u\n", freq); in sta350_set_dai_sysclk()
636 struct snd_soc_codec *codec = codec_dai->codec; in sta350_set_dai_fmt() local
637 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_set_dai_fmt()
685 struct snd_soc_codec *codec = dai->codec; in sta350_hw_params() local
686 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_hw_params()
693 dev_err(codec->dev, in sta350_hw_params()
700 dev_dbg(codec->dev, "rate: %u, ratio: %u\n", rate, ratio); in sta350_hw_params()
710 dev_err(codec->dev, "Unsupported samplerate: %u\n", rate); in sta350_hw_params()
722 dev_err(codec->dev, "Unresolvable ratio: %u\n", ratio); in sta350_hw_params()
732 dev_dbg(codec->dev, "24bit\n"); in sta350_hw_params()
735 dev_dbg(codec->dev, "24bit or 32bit\n"); in sta350_hw_params()
750 dev_dbg(codec->dev, "20bit\n"); in sta350_hw_params()
765 dev_dbg(codec->dev, "18bit\n"); in sta350_hw_params()
780 dev_dbg(codec->dev, "16bit\n"); in sta350_hw_params()
837 static int sta350_set_bias_level(struct snd_soc_codec *codec, in sta350_set_bias_level() argument
840 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_set_bias_level()
843 dev_dbg(codec->dev, "level = %d\n", level); in sta350_set_bias_level()
856 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in sta350_set_bias_level()
861 dev_err(codec->dev, in sta350_set_bias_level()
867 sta350_cache_sync(codec); in sta350_set_bias_level()
914 static int sta350_probe(struct snd_soc_codec *codec) in sta350_probe() argument
916 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_probe()
923 dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); in sta350_probe()
929 dev_err(codec->dev, "Failed to startup device\n"); in sta350_probe()
1039 snd_soc_codec_force_bias_level(codec, SND_SOC_BIAS_STANDBY); in sta350_probe()
1046 static int sta350_remove(struct snd_soc_codec *codec) in sta350_remove() argument
1048 struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec); in sta350_remove()