Lines Matching refs:codec

91 static int wm8731_set_deemph(struct snd_soc_codec *codec)  in wm8731_set_deemph()  argument
93 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_set_deemph()
113 dev_dbg(codec->dev, "Set deemphasis %d (%dHz)\n", in wm8731_set_deemph()
116 return snd_soc_update_bits(codec, WM8731_APDIGI, 0x6, val); in wm8731_set_deemph()
122 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8731_get_deemph() local
123 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_get_deemph()
133 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8731_put_deemph() local
134 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_put_deemph()
145 wm8731_set_deemph(codec); in wm8731_put_deemph()
217 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); in wm8731_check_osc() local
218 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_check_osc()
340 struct snd_soc_codec *codec = dai->codec; in wm8731_hw_params() local
341 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_hw_params()
342 u16 iface = snd_soc_read(codec, WM8731_IFACE) & 0xfff3; in wm8731_hw_params()
349 snd_soc_write(codec, WM8731_SRATE, srate); in wm8731_hw_params()
363 wm8731_set_deemph(codec); in wm8731_hw_params()
365 snd_soc_write(codec, WM8731_IFACE, iface); in wm8731_hw_params()
371 struct snd_soc_codec *codec = dai->codec; in wm8731_mute() local
372 u16 mute_reg = snd_soc_read(codec, WM8731_APDIGI) & 0xfff7; in wm8731_mute()
375 snd_soc_write(codec, WM8731_APDIGI, mute_reg | 0x8); in wm8731_mute()
377 snd_soc_write(codec, WM8731_APDIGI, mute_reg); in wm8731_mute()
384 struct snd_soc_codec *codec = codec_dai->codec; in wm8731_set_dai_sysclk() local
385 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); in wm8731_set_dai_sysclk()
386 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_set_dai_sysclk()
429 struct snd_soc_codec *codec = codec_dai->codec; in wm8731_set_dai_fmt() local
481 snd_soc_write(codec, WM8731_IFACE, iface); in wm8731_set_dai_fmt()
485 static int wm8731_set_bias_level(struct snd_soc_codec *codec, in wm8731_set_bias_level() argument
488 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); in wm8731_set_bias_level()
503 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in wm8731_set_bias_level()
513 reg = snd_soc_read(codec, WM8731_PWR) & 0xff7f; in wm8731_set_bias_level()
514 snd_soc_write(codec, WM8731_PWR, reg | 0x0040); in wm8731_set_bias_level()
519 snd_soc_write(codec, WM8731_PWR, 0xffff); in wm8731_set_bias_level()
531 struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(dai->codec); in wm8731_startup()