Lines Matching refs:codec

264 static int tas5086_set_deemph(struct snd_soc_codec *codec)  in tas5086_set_deemph()  argument
266 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_deemph()
281 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in tas5086_get_deemph() local
282 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_get_deemph()
292 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in tas5086_put_deemph() local
293 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_put_deemph()
297 return tas5086_set_deemph(codec); in tas5086_put_deemph()
304 struct snd_soc_codec *codec = codec_dai->codec; in tas5086_set_dai_sysclk() local
305 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_dai_sysclk()
322 struct snd_soc_codec *codec = codec_dai->codec; in tas5086_set_dai_fmt() local
323 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_dai_fmt()
327 dev_err(codec->dev, "Invalid clocking mode\n"); in tas5086_set_dai_fmt()
360 struct snd_soc_codec *codec = dai->codec; in tas5086_hw_params() local
361 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_hw_params()
372 dev_err(codec->dev, "Invalid sample rate\n"); in tas5086_hw_params()
386 dev_err(codec->dev, "Inavlid MCLK / Fs ratio\n"); in tas5086_hw_params()
423 dev_err(codec->dev, "Invalid DAI format\n"); in tas5086_hw_params()
439 dev_err(codec->dev, "Invalid bit width\n"); in tas5086_hw_params()
453 return tas5086_set_deemph(codec); in tas5086_hw_params()
458 struct snd_soc_codec *codec = dai->codec; in tas5086_mute_stream() local
459 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_mute_stream()
772 static int tas5086_soc_suspend(struct snd_soc_codec *codec) in tas5086_soc_suspend() argument
774 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_soc_suspend()
787 static int tas5086_soc_resume(struct snd_soc_codec *codec) in tas5086_soc_resume() argument
789 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_soc_resume()
799 ret = tas5086_init(codec->dev, priv); in tas5086_soc_resume()
822 static int tas5086_probe(struct snd_soc_codec *codec) in tas5086_probe() argument
824 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_probe()
829 dev_err(codec->dev, "Failed to enable regulators: %d\n", ret); in tas5086_probe()
836 if (of_match_device(of_match_ptr(tas5086_dt_ids), codec->dev)) { in tas5086_probe()
837 struct device_node *of_node = codec->dev->of_node; in tas5086_probe()
854 ret = tas5086_init(codec->dev, priv); in tas5086_probe()
871 static int tas5086_remove(struct snd_soc_codec *codec) in tas5086_remove() argument
873 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_remove()