Lines Matching refs:codec

81 static int wm8776_reset(struct snd_soc_codec *codec)  in wm8776_reset()  argument
83 return snd_soc_write(codec, WM8776_RESET, 0); in wm8776_reset()
169 struct snd_soc_codec *codec = dai->codec; in wm8776_set_fmt() local
227 snd_soc_update_bits(codec, reg, 0xf, iface); in wm8776_set_fmt()
228 snd_soc_update_bits(codec, WM8776_MSTRCTRL, 0x180, master); in wm8776_set_fmt()
246 struct snd_soc_codec *codec = dai->codec; in wm8776_hw_params() local
247 struct wm8776_priv *wm8776 = snd_soc_codec_get_drvdata(codec); in wm8776_hw_params()
282 dev_err(codec->dev, "Unsupported sample size: %i\n", in wm8776_hw_params()
288 if (snd_soc_read(codec, WM8776_MSTRCTRL) & master) { in wm8776_hw_params()
296 dev_err(codec->dev, in wm8776_hw_params()
302 dev_dbg(codec->dev, "MCLK is %dfs\n", mclk_ratios[i]); in wm8776_hw_params()
304 snd_soc_update_bits(codec, WM8776_MSTRCTRL, in wm8776_hw_params()
307 dev_dbg(codec->dev, "DAI in slave mode\n"); in wm8776_hw_params()
310 snd_soc_update_bits(codec, iface_reg, 0x30, iface); in wm8776_hw_params()
317 struct snd_soc_codec *codec = dai->codec; in wm8776_mute() local
319 return snd_soc_write(codec, WM8776_DACMUTE, !!mute); in wm8776_mute()
325 struct snd_soc_codec *codec = dai->codec; in wm8776_set_sysclk() local
326 struct wm8776_priv *wm8776 = snd_soc_codec_get_drvdata(codec); in wm8776_set_sysclk()
336 static int wm8776_set_bias_level(struct snd_soc_codec *codec, in wm8776_set_bias_level() argument
339 struct wm8776_priv *wm8776 = snd_soc_codec_get_drvdata(codec); in wm8776_set_bias_level()
347 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in wm8776_set_bias_level()
351 snd_soc_update_bits(codec, WM8776_PWRDOWN, 1, 0); in wm8776_set_bias_level()
356 snd_soc_update_bits(codec, WM8776_PWRDOWN, 1, 1); in wm8776_set_bias_level()
410 static int wm8776_probe(struct snd_soc_codec *codec) in wm8776_probe() argument
414 ret = wm8776_reset(codec); in wm8776_probe()
416 dev_err(codec->dev, "Failed to issue reset: %d\n", ret); in wm8776_probe()
422 snd_soc_update_bits(codec, WM8776_HPRVOL, 0x100, 0x100); in wm8776_probe()
423 snd_soc_update_bits(codec, WM8776_DACRVOL, 0x100, 0x100); in wm8776_probe()