Lines Matching refs:codec

128 	struct snd_soc_codec *codec = dai->codec;  in wm8523_startup()  local
129 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); in wm8523_startup()
135 dev_err(codec->dev, in wm8523_startup()
151 struct snd_soc_codec *codec = dai->codec; in wm8523_hw_params() local
152 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); in wm8523_hw_params()
154 u16 aifctrl1 = snd_soc_read(codec, WM8523_AIF_CTRL1); in wm8523_hw_params()
155 u16 aifctrl2 = snd_soc_read(codec, WM8523_AIF_CTRL2); in wm8523_hw_params()
166 dev_err(codec->dev, "MCLK/fs ratio %d unsupported\n", in wm8523_hw_params()
181 dev_err(codec->dev, in wm8523_hw_params()
206 snd_soc_write(codec, WM8523_AIF_CTRL1, aifctrl1); in wm8523_hw_params()
207 snd_soc_write(codec, WM8523_AIF_CTRL2, aifctrl2); in wm8523_hw_params()
215 struct snd_soc_codec *codec = codec_dai->codec; in wm8523_set_dai_sysclk() local
216 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); in wm8523_set_dai_sysclk()
242 dev_dbg(codec->dev, "Supported sample rate: %dHz\n", in wm8523_set_dai_sysclk()
248 dev_dbg(codec->dev, "Skipping sample rate: %dHz\n", in wm8523_set_dai_sysclk()
264 struct snd_soc_codec *codec = codec_dai->codec; in wm8523_set_dai_fmt() local
265 u16 aifctrl1 = snd_soc_read(codec, WM8523_AIF_CTRL1); in wm8523_set_dai_fmt()
315 snd_soc_write(codec, WM8523_AIF_CTRL1, aifctrl1); in wm8523_set_dai_fmt()
320 static int wm8523_set_bias_level(struct snd_soc_codec *codec, in wm8523_set_bias_level() argument
323 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); in wm8523_set_bias_level()
332 snd_soc_update_bits(codec, WM8523_PSCTRL1, in wm8523_set_bias_level()
337 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in wm8523_set_bias_level()
341 dev_err(codec->dev, in wm8523_set_bias_level()
351 snd_soc_update_bits(codec, WM8523_PSCTRL1, in wm8523_set_bias_level()
358 snd_soc_update_bits(codec, WM8523_PSCTRL1, in wm8523_set_bias_level()
365 snd_soc_update_bits(codec, WM8523_PSCTRL1, in wm8523_set_bias_level()
400 static int wm8523_probe(struct snd_soc_codec *codec) in wm8523_probe() argument
402 struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); in wm8523_probe()
409 snd_soc_update_bits(codec, WM8523_DAC_GAINR, in wm8523_probe()
411 snd_soc_update_bits(codec, WM8523_DAC_CTRL3, WM8523_ZC, WM8523_ZC); in wm8523_probe()