Lines Matching refs:codec
166 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in ak4671_out2_event() local
170 snd_soc_update_bits(codec, AK4671_LOUT2_POWER_MANAGERMENT, in ak4671_out2_event()
174 snd_soc_update_bits(codec, AK4671_LOUT2_POWER_MANAGERMENT, in ak4671_out2_event()
430 struct snd_soc_codec *codec = dai->codec; in ak4671_hw_params() local
433 fs = snd_soc_read(codec, AK4671_PLL_MODE_SELECT0); in ak4671_hw_params()
468 snd_soc_write(codec, AK4671_PLL_MODE_SELECT0, fs); in ak4671_hw_params()
476 struct snd_soc_codec *codec = dai->codec; in ak4671_set_dai_sysclk() local
479 pll = snd_soc_read(codec, AK4671_PLL_MODE_SELECT0); in ak4671_set_dai_sysclk()
514 snd_soc_write(codec, AK4671_PLL_MODE_SELECT0, pll); in ak4671_set_dai_sysclk()
521 struct snd_soc_codec *codec = dai->codec; in ak4671_set_dai_fmt() local
526 mode = snd_soc_read(codec, AK4671_PLL_MODE_SELECT1); in ak4671_set_dai_fmt()
540 format = snd_soc_read(codec, AK4671_FORMAT_SELECT); in ak4671_set_dai_fmt()
560 snd_soc_write(codec, AK4671_PLL_MODE_SELECT1, mode); in ak4671_set_dai_fmt()
561 snd_soc_write(codec, AK4671_FORMAT_SELECT, format); in ak4671_set_dai_fmt()
566 static int ak4671_set_bias_level(struct snd_soc_codec *codec, in ak4671_set_bias_level() argument
573 snd_soc_update_bits(codec, AK4671_AD_DA_POWER_MANAGEMENT, in ak4671_set_bias_level()
577 snd_soc_write(codec, AK4671_AD_DA_POWER_MANAGEMENT, 0x00); in ak4671_set_bias_level()