Lines Matching refs:codec

140 	struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);  in wm8804_aif_event()  local
141 struct wm8804_priv *wm8804 = snd_soc_codec_get_drvdata(codec); in wm8804_aif_event()
147 snd_soc_update_bits(codec, WM8804_PWRDN, 0x10, 0x0); in wm8804_aif_event()
154 snd_soc_update_bits(codec, WM8804_PWRDN, 0x10, 0x10); in wm8804_aif_event()
164 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in txsrc_put() local
165 struct snd_soc_dapm_context *dapm = &codec->dapm; in txsrc_put()
176 if (snd_soc_test_bits(codec, e->reg, mask, val)) { in txsrc_put()
178 txpwr = snd_soc_read(codec, WM8804_PWRDN) & 0x4; in txsrc_put()
181 snd_soc_update_bits(codec, WM8804_PWRDN, 0x4, 0x4); in txsrc_put()
184 snd_soc_update_bits(codec, e->reg, mask, val); in txsrc_put()
187 snd_soc_update_bits(codec, WM8804_PWRDN, 0x4, txpwr); in txsrc_put()
221 struct snd_soc_codec *codec; in wm8804_set_fmt() local
224 codec = dai->codec; in wm8804_set_fmt()
246 snd_soc_update_bits(codec, WM8804_AIFTX, 0x3, format); in wm8804_set_fmt()
247 snd_soc_update_bits(codec, WM8804_AIFRX, 0x3, format); in wm8804_set_fmt()
262 snd_soc_update_bits(codec, WM8804_AIFRX, 0x40, master << 6); in wm8804_set_fmt()
283 snd_soc_update_bits(codec, WM8804_AIFTX, 0x10 | 0x20, in wm8804_set_fmt()
285 snd_soc_update_bits(codec, WM8804_AIFRX, 0x10 | 0x20, in wm8804_set_fmt()
294 struct snd_soc_codec *codec; in wm8804_hw_params() local
297 codec = dai->codec; in wm8804_hw_params()
316 snd_soc_update_bits(codec, WM8804_AIFTX, 0xc, blen << 2); in wm8804_hw_params()
317 snd_soc_update_bits(codec, WM8804_AIFRX, 0xc, blen << 2); in wm8804_hw_params()
408 struct snd_soc_codec *codec = dai->codec; in wm8804_set_pll() local
409 struct wm8804_priv *wm8804 = snd_soc_codec_get_drvdata(codec); in wm8804_set_pll()
434 snd_soc_update_bits(codec, WM8804_PLL4, 0xf | 0x10, in wm8804_set_pll()
437 snd_soc_update_bits(codec, WM8804_PLL5, 0x3 | 0x8, in wm8804_set_pll()
440 snd_soc_write(codec, WM8804_PLL1, pll_div.k & 0xff); in wm8804_set_pll()
441 snd_soc_write(codec, WM8804_PLL2, (pll_div.k >> 8) & 0xff); in wm8804_set_pll()
442 snd_soc_write(codec, WM8804_PLL3, pll_div.k >> 16); in wm8804_set_pll()
445 snd_soc_update_bits(codec, WM8804_PWRDN, 0x1, 0); in wm8804_set_pll()
454 struct snd_soc_codec *codec; in wm8804_set_sysclk() local
456 codec = dai->codec; in wm8804_set_sysclk()
462 snd_soc_update_bits(codec, WM8804_PLL6, 0x80, 0x80); in wm8804_set_sysclk()
470 snd_soc_update_bits(codec, WM8804_PLL6, 0x80, 0); in wm8804_set_sysclk()
473 snd_soc_update_bits(codec, WM8804_PLL6, 0x8, 0); in wm8804_set_sysclk()
476 snd_soc_update_bits(codec, WM8804_PLL6, 0x8, 0x8); in wm8804_set_sysclk()
489 struct snd_soc_codec *codec; in wm8804_set_clkdiv() local
492 codec = dai->codec; in wm8804_set_clkdiv()
495 snd_soc_update_bits(codec, WM8804_PLL5, 0x30, in wm8804_set_clkdiv()
499 wm8804 = snd_soc_codec_get_drvdata(codec); in wm8804_set_clkdiv()