Lines Matching refs:codec
82 static int wm8741_reset(struct snd_soc_codec *codec) in wm8741_reset() argument
84 return snd_soc_write(codec, WM8741_RESET, 0); in wm8741_reset()
201 struct snd_soc_codec *codec = dai->codec; in wm8741_startup() local
202 struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec); in wm8741_startup()
208 dev_err(codec->dev, in wm8741_startup()
224 struct snd_soc_codec *codec = dai->codec; in wm8741_hw_params() local
225 struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec); in wm8741_hw_params()
226 u16 iface = snd_soc_read(codec, WM8741_FORMAT_CONTROL) & 0x1FC; in wm8741_hw_params()
238 dev_err(codec->dev, "MCLK/fs ratio %d unsupported\n", in wm8741_hw_params()
257 dev_dbg(codec->dev, "wm8741_hw_params: Unsupported bit size param = %d", in wm8741_hw_params()
262 dev_dbg(codec->dev, "wm8741_hw_params: bit size param = %d", in wm8741_hw_params()
265 snd_soc_write(codec, WM8741_FORMAT_CONTROL, iface); in wm8741_hw_params()
272 struct snd_soc_codec *codec = codec_dai->codec; in wm8741_set_dai_sysclk() local
273 struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec); in wm8741_set_dai_sysclk()
275 dev_dbg(codec->dev, "wm8741_set_dai_sysclk info: freq=%dHz\n", freq); in wm8741_set_dai_sysclk()
325 struct snd_soc_codec *codec = codec_dai->codec; in wm8741_set_dai_fmt() local
326 u16 iface = snd_soc_read(codec, WM8741_FORMAT_CONTROL) & 0x1C3; in wm8741_set_dai_fmt()
374 dev_dbg(codec->dev, "wm8741_set_dai_fmt: Format=%x, Clock Inv=%x\n", in wm8741_set_dai_fmt()
378 snd_soc_write(codec, WM8741_FORMAT_CONTROL, iface); in wm8741_set_dai_fmt()
410 static int wm8741_resume(struct snd_soc_codec *codec) in wm8741_resume() argument
412 snd_soc_cache_sync(codec); in wm8741_resume()
419 static int wm8741_probe(struct snd_soc_codec *codec) in wm8741_probe() argument
421 struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec); in wm8741_probe()
427 dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); in wm8741_probe()
431 ret = wm8741_reset(codec); in wm8741_probe()
433 dev_err(codec->dev, "Failed to issue reset\n"); in wm8741_probe()
438 snd_soc_update_bits(codec, WM8741_DACLLSB_ATTENUATION, in wm8741_probe()
440 snd_soc_update_bits(codec, WM8741_DACLMSB_ATTENUATION, in wm8741_probe()
442 snd_soc_update_bits(codec, WM8741_DACRLSB_ATTENUATION, in wm8741_probe()
444 snd_soc_update_bits(codec, WM8741_DACRMSB_ATTENUATION, in wm8741_probe()
447 dev_dbg(codec->dev, "Successful registration\n"); in wm8741_probe()
456 static int wm8741_remove(struct snd_soc_codec *codec) in wm8741_remove() argument
458 struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec); in wm8741_remove()