Lines Matching refs:component
195 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm9713_voice_shutdown() local
201 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0f00, 0x0200); in wm9713_voice_shutdown()
203 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0f00, 0x0f00); in wm9713_voice_shutdown()
204 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0x1000, 0x1000); in wm9713_voice_shutdown()
228 struct snd_soc_component *component = snd_soc_dapm_to_component(dapm); in wm9713_hp_mixer_put() local
229 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_hp_mixer_put()
272 struct snd_soc_component *component = snd_soc_dapm_to_component(dapm); in wm9713_hp_mixer_get() local
273 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_hp_mixer_get()
752 static void pll_factors(struct snd_soc_component *component, in pll_factors() argument
788 dev_warn(component->dev, in pll_factors()
814 static int wm9713_set_pll(struct snd_soc_component *component, in wm9713_set_pll() argument
817 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_set_pll()
824 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0080, 0x0080); in wm9713_set_pll()
825 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0x0200, 0x0200); in wm9713_set_pll()
830 pll_factors(component, &pll_div, freq_in); in wm9713_set_pll()
835 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
843 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
847 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
851 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
855 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
859 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
862 snd_soc_component_write(component, AC97_LINE1_LEVEL, reg); in wm9713_set_pll()
866 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0x0200, 0x0000); in wm9713_set_pll()
867 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0080, 0x0000); in wm9713_set_pll()
878 struct snd_soc_component *component = codec_dai->component; in wm9713_set_dai_pll() local
879 return wm9713_set_pll(component, pll_id, freq_in, freq_out); in wm9713_set_dai_pll()
889 struct snd_soc_component *component = codec_dai->component; in wm9713_set_dai_tristate() local
892 snd_soc_component_update_bits(component, AC97_CENTER_LFE_MASTER, in wm9713_set_dai_tristate()
905 struct snd_soc_component *component = codec_dai->component; in wm9713_set_dai_clkdiv() local
909 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0f00, div); in wm9713_set_dai_clkdiv()
912 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0002, div); in wm9713_set_dai_clkdiv()
915 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x0004, div); in wm9713_set_dai_clkdiv()
918 snd_soc_component_update_bits(component, AC97_HANDSET_RATE, 0x7000, div); in wm9713_set_dai_clkdiv()
921 snd_soc_component_update_bits(component, AC97_CENTER_LFE_MASTER, 0x0e00, div); in wm9713_set_dai_clkdiv()
924 snd_soc_component_update_bits(component, AC97_LINE1_LEVEL, in wm9713_set_dai_clkdiv()
928 snd_soc_component_update_bits(component, AC97_LINE1_LEVEL, in wm9713_set_dai_clkdiv()
941 struct snd_soc_component *component = codec_dai->component; in wm9713_set_dai_fmt() local
942 u16 gpio = snd_soc_component_read(component, AC97_GPIO_CFG) & 0xffc5; in wm9713_set_dai_fmt()
995 snd_soc_component_write(component, AC97_GPIO_CFG, gpio); in wm9713_set_dai_fmt()
996 snd_soc_component_write(component, AC97_CENTER_LFE_MASTER, reg); in wm9713_set_dai_fmt()
1004 struct snd_soc_component *component = dai->component; in wm9713_pcm_hw_params() local
1011 snd_soc_component_update_bits(component, AC97_CENTER_LFE_MASTER, in wm9713_pcm_hw_params()
1015 snd_soc_component_update_bits(component, AC97_CENTER_LFE_MASTER, in wm9713_pcm_hw_params()
1019 snd_soc_component_update_bits(component, AC97_CENTER_LFE_MASTER, in wm9713_pcm_hw_params()
1029 struct snd_soc_component *component = dai->component; in ac97_hifi_prepare() local
1033 snd_soc_component_update_bits(component, AC97_EXTENDED_STATUS, 0x0001, 0x0001); in ac97_hifi_prepare()
1040 return snd_soc_component_write(component, reg, runtime->rate); in ac97_hifi_prepare()
1046 struct snd_soc_component *component = dai->component; in ac97_aux_prepare() local
1049 snd_soc_component_update_bits(component, AC97_EXTENDED_STATUS, 0x0001, 0x0001); in ac97_aux_prepare()
1050 snd_soc_component_update_bits(component, AC97_PCI_SID, 0x8000, 0x8000); in ac97_aux_prepare()
1055 return snd_soc_component_write(component, AC97_PCM_SURR_DAC_RATE, runtime->rate); in ac97_aux_prepare()
1141 static int wm9713_set_bias_level(struct snd_soc_component *component, in wm9713_set_bias_level() argument
1147 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0xe400, 0x0000); in wm9713_set_bias_level()
1153 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0xc400, 0x0000); in wm9713_set_bias_level()
1154 snd_soc_component_write(component, AC97_POWERDOWN, 0x0000); in wm9713_set_bias_level()
1158 snd_soc_component_write(component, AC97_EXTENDED_MID, 0xffff); in wm9713_set_bias_level()
1159 snd_soc_component_write(component, AC97_EXTENDED_MSTATUS, 0xffff); in wm9713_set_bias_level()
1160 snd_soc_component_write(component, AC97_POWERDOWN, 0xffff); in wm9713_set_bias_level()
1166 static int wm9713_soc_suspend(struct snd_soc_component *component) in wm9713_soc_suspend() argument
1171 snd_soc_component_update_bits(component, AC97_EXTENDED_MID, 0x7fff, in wm9713_soc_suspend()
1173 snd_soc_component_write(component, AC97_EXTENDED_MSTATUS, 0xffff); in wm9713_soc_suspend()
1174 snd_soc_component_write(component, AC97_POWERDOWN, 0x6f00); in wm9713_soc_suspend()
1175 snd_soc_component_write(component, AC97_POWERDOWN, 0xffff); in wm9713_soc_suspend()
1180 static int wm9713_soc_resume(struct snd_soc_component *component) in wm9713_soc_resume() argument
1182 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_resume()
1190 snd_soc_component_force_bias_level(component, SND_SOC_BIAS_STANDBY); in wm9713_soc_resume()
1194 wm9713_set_pll(component, 0, wm9713->pll_in, 0); in wm9713_soc_resume()
1198 regcache_mark_dirty(component->regmap); in wm9713_soc_resume()
1199 snd_soc_component_cache_sync(component); in wm9713_soc_resume()
1205 static int wm9713_soc_probe(struct snd_soc_component *component) in wm9713_soc_probe() argument
1207 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_probe()
1214 wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID, in wm9713_soc_probe()
1227 snd_soc_component_init_regmap(component, regmap); in wm9713_soc_probe()
1230 snd_soc_component_update_bits(component, AC97_CD, 0x7fff, 0x0000); in wm9713_soc_probe()
1235 static void wm9713_soc_remove(struct snd_soc_component *component) in wm9713_soc_remove() argument
1237 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_remove()
1240 snd_soc_component_exit_regmap(component); in wm9713_soc_remove()