Lines Matching refs:codec
119 struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); in amp_mixer_event() local
125 snd_soc_write(codec, ALC5632_HID_CTRL_INDEX, 0x46); in amp_mixer_event()
129 snd_soc_write(codec, ALC5632_HID_CTRL_DATA, 0xFFFF); in amp_mixer_event()
132 snd_soc_write(codec, ALC5632_HID_CTRL_DATA, 0); in amp_mixer_event()
684 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_pll() local
692 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
695 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
700 reg = snd_soc_read(codec, ALC5632_DAI_CONTROL); in alc5632_set_dai_pll()
748 snd_soc_write(codec, ALC5632_GPCR2, gbl_clk); in alc5632_set_dai_pll()
750 snd_soc_write(codec, ALC5632_PLL1_CTRL, pll_div); in alc5632_set_dai_pll()
752 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
756 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
760 snd_soc_update_bits(codec, ALC5632_GPCR1, in alc5632_set_dai_pll()
778 static int get_coeff(struct snd_soc_codec *codec, int rate) in get_coeff() argument
780 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in get_coeff()
796 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_sysclk() local
797 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_set_dai_sysclk()
818 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_fmt() local
867 return snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); in alc5632_set_dai_fmt()
873 struct snd_soc_codec *codec = dai->codec; in alc5632_pcm_hw_params() local
877 iface = snd_soc_read(codec, ALC5632_DAI_CONTROL); in alc5632_pcm_hw_params()
896 snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); in alc5632_pcm_hw_params()
898 coeff = get_coeff(codec, rate); in alc5632_pcm_hw_params()
903 snd_soc_write(codec, ALC5632_DAC_CLK_CTRL1, coeff); in alc5632_pcm_hw_params()
910 struct snd_soc_codec *codec = dai->codec; in alc5632_mute() local
913 u16 mute_reg = snd_soc_read(codec, ALC5632_MISC_CTRL) & ~hp_mute; in alc5632_mute()
918 return snd_soc_write(codec, ALC5632_MISC_CTRL, mute_reg); in alc5632_mute()
932 static void enable_power_depop(struct snd_soc_codec *codec) in enable_power_depop() argument
934 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
938 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD3, in enable_power_depop()
942 snd_soc_update_bits(codec, ALC5632_MISC_CTRL, in enable_power_depop()
948 snd_soc_update_bits(codec, ALC5632_PWR_DOWN_CTRL_STATUS, in enable_power_depop()
954 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in enable_power_depop()
958 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
963 snd_soc_update_bits(codec, ALC5632_MISC_CTRL, in enable_power_depop()
969 static int alc5632_set_bias_level(struct snd_soc_codec *codec, in alc5632_set_bias_level() argument
974 enable_power_depop(codec); in alc5632_set_bias_level()
980 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
983 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
987 snd_soc_update_bits(codec, ALC5632_PWR_DOWN_CTRL_STATUS, in alc5632_set_bias_level()
994 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
996 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD3, in alc5632_set_bias_level()
998 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
1041 static int alc5632_resume(struct snd_soc_codec *codec) in alc5632_resume() argument
1043 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_resume()
1053 static int alc5632_probe(struct snd_soc_codec *codec) in alc5632_probe() argument
1055 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_probe()
1059 snd_soc_add_codec_controls(codec, alc5632_vol_snd_controls, in alc5632_probe()