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()
285 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in tas5086_get_deemph() local
286 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_get_deemph()
296 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in tas5086_put_deemph() local
297 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_put_deemph()
301 return tas5086_set_deemph(codec); in tas5086_put_deemph()
308 struct snd_soc_codec *codec = codec_dai->codec; in tas5086_set_dai_sysclk() local
309 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_dai_sysclk()
326 struct snd_soc_codec *codec = codec_dai->codec; in tas5086_set_dai_fmt() local
327 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_set_dai_fmt()
331 dev_err(codec->dev, "Invalid clocking mode\n"); in tas5086_set_dai_fmt()
364 struct snd_soc_codec *codec = dai->codec; in tas5086_hw_params() local
365 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_hw_params()
376 dev_err(codec->dev, "Invalid sample rate\n"); in tas5086_hw_params()
390 dev_err(codec->dev, "Inavlid MCLK / Fs ratio\n"); in tas5086_hw_params()
427 dev_err(codec->dev, "Invalid DAI format\n"); in tas5086_hw_params()
443 dev_err(codec->dev, "Invalid bit width\n"); in tas5086_hw_params()
457 return tas5086_set_deemph(codec); in tas5086_hw_params()
462 struct snd_soc_codec *codec = dai->codec; in tas5086_mute_stream() local
463 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_mute_stream()
776 static int tas5086_soc_suspend(struct snd_soc_codec *codec) in tas5086_soc_suspend() argument
778 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_soc_suspend()
791 static int tas5086_soc_resume(struct snd_soc_codec *codec) in tas5086_soc_resume() argument
793 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_soc_resume()
803 ret = tas5086_init(codec->dev, priv); in tas5086_soc_resume()
826 static int tas5086_probe(struct snd_soc_codec *codec) in tas5086_probe() argument
828 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_probe()
833 dev_err(codec->dev, "Failed to enable regulators: %d\n", ret); in tas5086_probe()
840 if (of_match_device(of_match_ptr(tas5086_dt_ids), codec->dev)) { in tas5086_probe()
841 struct device_node *of_node = codec->dev->of_node; in tas5086_probe()
858 ret = tas5086_init(codec->dev, priv); in tas5086_probe()
875 static int tas5086_remove(struct snd_soc_codec *codec) in tas5086_remove() argument
877 struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); in tas5086_remove()