Lines Matching refs:component

492 	struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);  in eqmode_get()  local
495 reg = snd_soc_component_read(component, WM8983_EQ1_LOW_SHELF); in eqmode_get()
507 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in eqmode_put() local
515 reg_eq = snd_soc_component_read(component, WM8983_EQ1_LOW_SHELF); in eqmode_put()
527 regpwr2 = snd_soc_component_read(component, WM8983_POWER_MANAGEMENT_2); in eqmode_put()
528 regpwr3 = snd_soc_component_read(component, WM8983_POWER_MANAGEMENT_3); in eqmode_put()
530 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_2, in eqmode_put()
532 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_3, in eqmode_put()
535 snd_soc_component_update_bits(component, WM8983_EQ1_LOW_SHELF, in eqmode_put()
540 snd_soc_component_write(component, WM8983_POWER_MANAGEMENT_2, regpwr2); in eqmode_put()
541 snd_soc_component_write(component, WM8983_POWER_MANAGEMENT_3, regpwr3); in eqmode_put()
562 struct snd_soc_component *component = dai->component; in wm8983_dac_mute() local
564 return snd_soc_component_update_bits(component, WM8983_DAC_CONTROL, in wm8983_dac_mute()
571 struct snd_soc_component *component = dai->component; in wm8983_set_fmt() local
593 snd_soc_component_update_bits(component, WM8983_AUDIO_INTERFACE, in wm8983_set_fmt()
608 snd_soc_component_update_bits(component, WM8983_CLOCK_GEN_CONTROL, in wm8983_set_fmt()
639 snd_soc_component_update_bits(component, WM8983_AUDIO_INTERFACE, in wm8983_set_fmt()
641 snd_soc_component_update_bits(component, WM8983_AUDIO_INTERFACE, in wm8983_set_fmt()
651 struct snd_soc_component *component = dai->component; in wm8983_hw_params() local
652 struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component); in wm8983_hw_params()
660 dev_err(component->dev, "Failed to convert params to bclk: %d\n", ret); in wm8983_hw_params()
685 snd_soc_component_update_bits(component, WM8983_AUDIO_INTERFACE, in wm8983_hw_params()
702 snd_soc_component_update_bits(component, WM8983_ADDITIONAL_CONTROL, in wm8983_hw_params()
721 snd_soc_component_update_bits(component, WM8983_CLOCK_GEN_CONTROL, in wm8983_hw_params()
737 snd_soc_component_update_bits(component, WM8983_CLOCK_GEN_CONTROL, in wm8983_hw_params()
789 struct snd_soc_component *component; in wm8983_set_pll() local
792 component = dai->component; in wm8983_set_pll()
795 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_pll()
804 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_pll()
808 snd_soc_component_write(component, WM8983_PLL_N, in wm8983_set_pll()
812 snd_soc_component_write(component, WM8983_PLL_K_3, pll_div.k & 0x1ff); in wm8983_set_pll()
813 snd_soc_component_write(component, WM8983_PLL_K_2, (pll_div.k >> 9) & 0x1ff); in wm8983_set_pll()
814 snd_soc_component_write(component, WM8983_PLL_K_1, (pll_div.k >> 18)); in wm8983_set_pll()
816 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_pll()
826 struct snd_soc_component *component = dai->component; in wm8983_set_sysclk() local
827 struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component); in wm8983_set_sysclk()
831 snd_soc_component_update_bits(component, WM8983_CLOCK_GEN_CONTROL, in wm8983_set_sysclk()
835 snd_soc_component_update_bits(component, WM8983_CLOCK_GEN_CONTROL, in wm8983_set_sysclk()
847 static int wm8983_set_bias_level(struct snd_soc_component *component, in wm8983_set_bias_level() argument
850 struct wm8983_priv *wm8983 = snd_soc_component_get_drvdata(component); in wm8983_set_bias_level()
857 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_bias_level()
862 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8983_set_bias_level()
865 dev_err(component->dev, "Failed to sync cache: %d\n", ret); in wm8983_set_bias_level()
869 snd_soc_component_update_bits(component, WM8983_OUT4_TO_ADC, in wm8983_set_bias_level()
873 snd_soc_component_update_bits(component, WM8983_OUTPUT_CTRL, in wm8983_set_bias_level()
876 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_bias_level()
879 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_bias_level()
884 snd_soc_component_update_bits(component, WM8983_OUT4_TO_ADC, in wm8983_set_bias_level()
890 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_bias_level()
896 snd_soc_component_update_bits(component, WM8983_OUTPUT_CTRL, in wm8983_set_bias_level()
899 snd_soc_component_update_bits(component, WM8983_POWER_MANAGEMENT_1, in wm8983_set_bias_level()
904 snd_soc_component_write(component, WM8983_POWER_MANAGEMENT_1, 0); in wm8983_set_bias_level()
905 snd_soc_component_write(component, WM8983_POWER_MANAGEMENT_2, 0); in wm8983_set_bias_level()
906 snd_soc_component_write(component, WM8983_POWER_MANAGEMENT_3, 0); in wm8983_set_bias_level()
913 static int wm8983_probe(struct snd_soc_component *component) in wm8983_probe() argument
918 ret = snd_soc_component_write(component, WM8983_SOFTWARE_RESET, 0); in wm8983_probe()
920 dev_err(component->dev, "Failed to issue reset: %d\n", ret); in wm8983_probe()
926 snd_soc_component_update_bits(component, vol_update_regs[i], in wm8983_probe()
932 snd_soc_component_update_bits(component, i, 0x40, 0x40); in wm8983_probe()
935 snd_soc_component_update_bits(component, WM8983_DAC_CONTROL, in wm8983_probe()
940 snd_soc_component_update_bits(component, WM8983_BIAS_CTRL, in wm8983_probe()