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()
685 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_pll() local
693 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
696 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
701 reg = snd_soc_read(codec, ALC5632_DAI_CONTROL); in alc5632_set_dai_pll()
749 snd_soc_write(codec, ALC5632_GPCR2, gbl_clk); in alc5632_set_dai_pll()
751 snd_soc_write(codec, ALC5632_PLL1_CTRL, pll_div); in alc5632_set_dai_pll()
753 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
757 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
761 snd_soc_update_bits(codec, ALC5632_GPCR1, in alc5632_set_dai_pll()
779 static int get_coeff(struct snd_soc_codec *codec, int rate) in get_coeff() argument
781 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in get_coeff()
797 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_sysclk() local
798 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_set_dai_sysclk()
819 struct snd_soc_codec *codec = codec_dai->codec; in alc5632_set_dai_fmt() local
868 return snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); in alc5632_set_dai_fmt()
874 struct snd_soc_codec *codec = dai->codec; in alc5632_pcm_hw_params() local
878 iface = snd_soc_read(codec, ALC5632_DAI_CONTROL); in alc5632_pcm_hw_params()
897 snd_soc_write(codec, ALC5632_DAI_CONTROL, iface); in alc5632_pcm_hw_params()
899 coeff = get_coeff(codec, rate); in alc5632_pcm_hw_params()
904 snd_soc_write(codec, ALC5632_DAC_CLK_CTRL1, coeff); in alc5632_pcm_hw_params()
911 struct snd_soc_codec *codec = dai->codec; in alc5632_mute() local
914 u16 mute_reg = snd_soc_read(codec, ALC5632_MISC_CTRL) & ~hp_mute; in alc5632_mute()
919 return snd_soc_write(codec, ALC5632_MISC_CTRL, mute_reg); in alc5632_mute()
933 static void enable_power_depop(struct snd_soc_codec *codec) in enable_power_depop() argument
935 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
939 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD3, in enable_power_depop()
943 snd_soc_update_bits(codec, ALC5632_MISC_CTRL, in enable_power_depop()
949 snd_soc_update_bits(codec, ALC5632_PWR_DOWN_CTRL_STATUS, in enable_power_depop()
955 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in enable_power_depop()
959 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
964 snd_soc_update_bits(codec, ALC5632_MISC_CTRL, in enable_power_depop()
970 static int alc5632_set_bias_level(struct snd_soc_codec *codec, in alc5632_set_bias_level() argument
975 enable_power_depop(codec); in alc5632_set_bias_level()
981 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
984 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
988 snd_soc_update_bits(codec, ALC5632_PWR_DOWN_CTRL_STATUS, in alc5632_set_bias_level()
995 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
997 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD3, in alc5632_set_bias_level()
999 snd_soc_update_bits(codec, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
1003 codec->dapm.bias_level = level; in alc5632_set_bias_level()
1043 static int alc5632_resume(struct snd_soc_codec *codec) in alc5632_resume() argument
1045 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_resume()
1055 static int alc5632_probe(struct snd_soc_codec *codec) in alc5632_probe() argument
1057 struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); in alc5632_probe()
1061 snd_soc_add_codec_controls(codec, alc5632_vol_snd_controls, in alc5632_probe()