Lines Matching refs:component
52 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm899x_outpga_put_volsw_vu() local
64 val = snd_soc_component_read(component, reg); in wm899x_outpga_put_volsw_vu()
65 return snd_soc_component_write(component, reg, val | 0x0100); in wm899x_outpga_put_volsw_vu()
294 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in outmixer_event() local
301 reg = snd_soc_component_read(component, WM8990_OUTPUT_MIXER1); in outmixer_event()
309 reg = snd_soc_component_read(component, WM8990_OUTPUT_MIXER2); in outmixer_event()
317 reg = snd_soc_component_read(component, WM8990_SPEAKER_MIXER); in outmixer_event()
325 reg = snd_soc_component_read(component, WM8990_SPEAKER_MIXER); in outmixer_event()
846 struct snd_soc_component *component = codec_dai->component; in wm8990_set_dai_pll() local
853 snd_soc_component_update_bits(component, WM8990_POWER_MANAGEMENT_2, in wm8990_set_dai_pll()
857 snd_soc_component_update_bits(component, WM8990_CLOCKING_2, in wm8990_set_dai_pll()
861 snd_soc_component_write(component, WM8990_PLL1, pll_div.n | WM8990_SDM | in wm8990_set_dai_pll()
863 snd_soc_component_write(component, WM8990_PLL2, (u8)(pll_div.k>>8)); in wm8990_set_dai_pll()
864 snd_soc_component_write(component, WM8990_PLL3, (u8)(pll_div.k & 0xFF)); in wm8990_set_dai_pll()
867 snd_soc_component_update_bits(component, WM8990_POWER_MANAGEMENT_2, in wm8990_set_dai_pll()
879 struct snd_soc_component *component = codec_dai->component; in wm8990_set_dai_sysclk() local
880 struct wm8990_priv *wm8990 = snd_soc_component_get_drvdata(component); in wm8990_set_dai_sysclk()
892 struct snd_soc_component *component = codec_dai->component; in wm8990_set_dai_fmt() local
895 audio1 = snd_soc_component_read(component, WM8990_AUDIO_INTERFACE_1); in wm8990_set_dai_fmt()
896 audio3 = snd_soc_component_read(component, WM8990_AUDIO_INTERFACE_3); in wm8990_set_dai_fmt()
937 snd_soc_component_write(component, WM8990_AUDIO_INTERFACE_1, audio1); in wm8990_set_dai_fmt()
938 snd_soc_component_write(component, WM8990_AUDIO_INTERFACE_3, audio3); in wm8990_set_dai_fmt()
945 struct snd_soc_component *component = codec_dai->component; in wm8990_set_dai_clkdiv() local
949 snd_soc_component_update_bits(component, WM8990_CLOCKING_2, in wm8990_set_dai_clkdiv()
953 snd_soc_component_update_bits(component, WM8990_CLOCKING_2, in wm8990_set_dai_clkdiv()
957 snd_soc_component_update_bits(component, WM8990_CLOCKING_2, in wm8990_set_dai_clkdiv()
961 snd_soc_component_update_bits(component, WM8990_CLOCKING_1, in wm8990_set_dai_clkdiv()
978 struct snd_soc_component *component = dai->component; in wm8990_hw_params() local
979 u16 audio1 = snd_soc_component_read(component, WM8990_AUDIO_INTERFACE_1); in wm8990_hw_params()
997 snd_soc_component_write(component, WM8990_AUDIO_INTERFACE_1, audio1); in wm8990_hw_params()
1003 struct snd_soc_component *component = dai->component; in wm8990_mute() local
1006 val = snd_soc_component_read(component, WM8990_DAC_CTRL) & ~WM8990_DAC_MUTE; in wm8990_mute()
1009 snd_soc_component_write(component, WM8990_DAC_CTRL, val | WM8990_DAC_MUTE); in wm8990_mute()
1011 snd_soc_component_write(component, WM8990_DAC_CTRL, val); in wm8990_mute()
1016 static int wm8990_set_bias_level(struct snd_soc_component *component, in wm8990_set_bias_level() argument
1019 struct wm8990_priv *wm8990 = snd_soc_component_get_drvdata(component); in wm8990_set_bias_level()
1028 snd_soc_component_update_bits(component, WM8990_POWER_MANAGEMENT_1, in wm8990_set_bias_level()
1033 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8990_set_bias_level()
1036 dev_err(component->dev, "Failed to sync cache: %d\n", ret); in wm8990_set_bias_level()
1041 snd_soc_component_write(component, WM8990_ANTIPOP1, WM8990_DIS_LLINE | in wm8990_set_bias_level()
1047 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_SOFTST | in wm8990_set_bias_level()
1055 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_SOFTST | in wm8990_set_bias_level()
1059 snd_soc_component_write(component, WM8990_ANTIPOP1, 0); in wm8990_set_bias_level()
1062 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x1b00); in wm8990_set_bias_level()
1067 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x1f02); in wm8990_set_bias_level()
1072 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x1f03); in wm8990_set_bias_level()
1077 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_SOFTST | in wm8990_set_bias_level()
1082 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x3); in wm8990_set_bias_level()
1085 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_BUFIOEN); in wm8990_set_bias_level()
1088 snd_soc_component_write(component, WM8990_EXT_ACCESS_ENA, 0x2); in wm8990_set_bias_level()
1089 snd_soc_component_write(component, WM8990_EXT_CTL1, 0xa003); in wm8990_set_bias_level()
1090 snd_soc_component_write(component, WM8990_EXT_ACCESS_ENA, 0); in wm8990_set_bias_level()
1094 snd_soc_component_update_bits(component, WM8990_POWER_MANAGEMENT_1, in wm8990_set_bias_level()
1100 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_SOFTST | in wm8990_set_bias_level()
1104 snd_soc_component_write(component, WM8990_ANTIPOP2, WM8990_SOFTST | in wm8990_set_bias_level()
1109 snd_soc_component_update_bits(component, WM8990_DAC_CTRL, in wm8990_set_bias_level()
1113 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x1f03); in wm8990_set_bias_level()
1116 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x1f01); in wm8990_set_bias_level()
1121 snd_soc_component_write(component, WM8990_ANTIPOP1, WM8990_DIS_LLINE | in wm8990_set_bias_level()
1127 snd_soc_component_write(component, WM8990_POWER_MANAGEMENT_1, 0x0); in wm8990_set_bias_level()
1130 snd_soc_component_write(component, WM8990_ANTIPOP2, 0x0); in wm8990_set_bias_level()
1185 static int wm8990_probe(struct snd_soc_component *component) in wm8990_probe() argument
1187 wm8990_reset(component); in wm8990_probe()
1190 snd_soc_component_force_bias_level(component, SND_SOC_BIAS_STANDBY); in wm8990_probe()
1192 snd_soc_component_update_bits(component, WM8990_AUDIO_INTERFACE_4, in wm8990_probe()
1195 snd_soc_component_update_bits(component, WM8990_GPIO1_GPIO2, in wm8990_probe()
1198 snd_soc_component_update_bits(component, WM8990_POWER_MANAGEMENT_2, in wm8990_probe()
1201 snd_soc_component_write(component, WM8990_LEFT_OUTPUT_VOLUME, 0x50 | (1<<8)); in wm8990_probe()
1202 snd_soc_component_write(component, WM8990_RIGHT_OUTPUT_VOLUME, 0x50 | (1<<8)); in wm8990_probe()