Lines Matching refs:component
116 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in amp_mixer_event() local
122 snd_soc_component_write(component, ALC5632_HID_CTRL_INDEX, 0x46); in amp_mixer_event()
126 snd_soc_component_write(component, ALC5632_HID_CTRL_DATA, 0xFFFF); in amp_mixer_event()
129 snd_soc_component_write(component, ALC5632_HID_CTRL_DATA, 0); in amp_mixer_event()
681 struct snd_soc_component *component = codec_dai->component; in alc5632_set_dai_pll() local
689 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
692 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
697 reg = snd_soc_component_read(component, ALC5632_DAI_CONTROL); in alc5632_set_dai_pll()
745 snd_soc_component_write(component, ALC5632_GPCR2, gbl_clk); in alc5632_set_dai_pll()
747 snd_soc_component_write(component, ALC5632_PLL1_CTRL, pll_div); in alc5632_set_dai_pll()
749 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
753 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_dai_pll()
757 snd_soc_component_update_bits(component, ALC5632_GPCR1, in alc5632_set_dai_pll()
775 static int get_coeff(struct snd_soc_component *component, int rate) in get_coeff() argument
777 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in get_coeff()
793 struct snd_soc_component *component = codec_dai->component; in alc5632_set_dai_sysclk() local
794 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_set_dai_sysclk()
815 struct snd_soc_component *component = codec_dai->component; in alc5632_set_dai_fmt() local
864 return snd_soc_component_write(component, ALC5632_DAI_CONTROL, iface); in alc5632_set_dai_fmt()
870 struct snd_soc_component *component = dai->component; in alc5632_pcm_hw_params() local
874 iface = snd_soc_component_read(component, ALC5632_DAI_CONTROL); in alc5632_pcm_hw_params()
893 snd_soc_component_write(component, ALC5632_DAI_CONTROL, iface); in alc5632_pcm_hw_params()
895 coeff = get_coeff(component, rate); in alc5632_pcm_hw_params()
900 snd_soc_component_write(component, ALC5632_DAC_CLK_CTRL1, coeff); in alc5632_pcm_hw_params()
907 struct snd_soc_component *component = dai->component; in alc5632_mute() local
910 u16 mute_reg = snd_soc_component_read(component, ALC5632_MISC_CTRL) & ~hp_mute; in alc5632_mute()
915 return snd_soc_component_write(component, ALC5632_MISC_CTRL, mute_reg); in alc5632_mute()
929 static void enable_power_depop(struct snd_soc_component *component) in enable_power_depop() argument
931 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
935 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD3, in enable_power_depop()
939 snd_soc_component_update_bits(component, ALC5632_MISC_CTRL, in enable_power_depop()
945 snd_soc_component_update_bits(component, ALC5632_PWR_DOWN_CTRL_STATUS, in enable_power_depop()
951 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in enable_power_depop()
955 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD1, in enable_power_depop()
960 snd_soc_component_update_bits(component, ALC5632_MISC_CTRL, in enable_power_depop()
966 static int alc5632_set_bias_level(struct snd_soc_component *component, in alc5632_set_bias_level() argument
971 enable_power_depop(component); in alc5632_set_bias_level()
977 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
980 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
984 snd_soc_component_update_bits(component, ALC5632_PWR_DOWN_CTRL_STATUS, in alc5632_set_bias_level()
991 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD2, in alc5632_set_bias_level()
993 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD3, in alc5632_set_bias_level()
995 snd_soc_component_update_bits(component, ALC5632_PWR_MANAG_ADD1, in alc5632_set_bias_level()
1039 static int alc5632_resume(struct snd_soc_component *component) in alc5632_resume() argument
1041 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_resume()
1051 static int alc5632_probe(struct snd_soc_component *component) in alc5632_probe() argument
1053 struct alc5632_priv *alc5632 = snd_soc_component_get_drvdata(component); in alc5632_probe()
1057 snd_soc_add_component_controls(component, alc5632_vol_snd_controls, in alc5632_probe()