Lines Matching refs:component
257 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pga_event() local
258 struct wm8350_data *wm8350_data = snd_soc_component_get_drvdata(component); in pga_event()
300 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8350_put_volsw_2r_vu() local
301 struct wm8350_data *wm8350_priv = snd_soc_component_get_drvdata(component); in wm8350_put_volsw_2r_vu()
335 val = snd_soc_component_read(component, reg); in wm8350_put_volsw_2r_vu()
336 snd_soc_component_write(component, reg, val | WM8350_OUT1_VU); in wm8350_put_volsw_2r_vu()
343 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8350_get_volsw_2r() local
344 struct wm8350_data *wm8350_priv = snd_soc_component_get_drvdata(component); in wm8350_get_volsw_2r()
754 struct snd_soc_component *component = codec_dai->component; in wm8350_set_dai_sysclk() local
755 struct wm8350_data *wm8350_data = snd_soc_component_get_drvdata(component); in wm8350_set_dai_sysclk()
770 fll_4 = snd_soc_component_read(component, WM8350_FLL_CONTROL_4) & in wm8350_set_dai_sysclk()
772 snd_soc_component_write(component, WM8350_FLL_CONTROL_4, fll_4 | clk_id); in wm8350_set_dai_sysclk()
789 struct snd_soc_component *component = codec_dai->component; in wm8350_set_clkdiv() local
794 val = snd_soc_component_read(component, WM8350_ADC_DIVIDER) & in wm8350_set_clkdiv()
796 snd_soc_component_write(component, WM8350_ADC_DIVIDER, val | div); in wm8350_set_clkdiv()
799 val = snd_soc_component_read(component, WM8350_DAC_CLOCK_CONTROL) & in wm8350_set_clkdiv()
801 snd_soc_component_write(component, WM8350_DAC_CLOCK_CONTROL, val | div); in wm8350_set_clkdiv()
804 val = snd_soc_component_read(component, WM8350_CLOCK_CONTROL_1) & in wm8350_set_clkdiv()
806 snd_soc_component_write(component, WM8350_CLOCK_CONTROL_1, val | div); in wm8350_set_clkdiv()
809 val = snd_soc_component_read(component, WM8350_CLOCK_CONTROL_1) & in wm8350_set_clkdiv()
811 snd_soc_component_write(component, WM8350_CLOCK_CONTROL_1, val | div); in wm8350_set_clkdiv()
814 val = snd_soc_component_read(component, WM8350_CLOCK_CONTROL_1) & in wm8350_set_clkdiv()
816 snd_soc_component_write(component, WM8350_CLOCK_CONTROL_1, val | div); in wm8350_set_clkdiv()
819 val = snd_soc_component_read(component, WM8350_DAC_LR_RATE) & in wm8350_set_clkdiv()
821 snd_soc_component_write(component, WM8350_DAC_LR_RATE, val | div); in wm8350_set_clkdiv()
824 val = snd_soc_component_read(component, WM8350_ADC_LR_RATE) & in wm8350_set_clkdiv()
826 snd_soc_component_write(component, WM8350_ADC_LR_RATE, val | div); in wm8350_set_clkdiv()
837 struct snd_soc_component *component = codec_dai->component; in wm8350_set_dai_fmt() local
838 u16 iface = snd_soc_component_read(component, WM8350_AI_FORMATING) & in wm8350_set_dai_fmt()
840 u16 master = snd_soc_component_read(component, WM8350_AI_DAC_CONTROL) & in wm8350_set_dai_fmt()
842 u16 dac_lrc = snd_soc_component_read(component, WM8350_DAC_LR_RATE) & in wm8350_set_dai_fmt()
844 u16 adc_lrc = snd_soc_component_read(component, WM8350_ADC_LR_RATE) & in wm8350_set_dai_fmt()
897 snd_soc_component_write(component, WM8350_AI_FORMATING, iface); in wm8350_set_dai_fmt()
898 snd_soc_component_write(component, WM8350_AI_DAC_CONTROL, master); in wm8350_set_dai_fmt()
899 snd_soc_component_write(component, WM8350_DAC_LR_RATE, dac_lrc); in wm8350_set_dai_fmt()
900 snd_soc_component_write(component, WM8350_ADC_LR_RATE, adc_lrc); in wm8350_set_dai_fmt()
908 struct snd_soc_component *component = codec_dai->component; in wm8350_pcm_hw_params() local
909 struct wm8350_data *wm8350_data = snd_soc_component_get_drvdata(component); in wm8350_pcm_hw_params()
911 u16 iface = snd_soc_component_read(component, WM8350_AI_FORMATING) & in wm8350_pcm_hw_params()
929 snd_soc_component_write(component, WM8350_AI_FORMATING, iface); in wm8350_pcm_hw_params()
948 struct snd_soc_component *component = dai->component; in wm8350_mute() local
956 snd_soc_component_update_bits(component, WM8350_DAC_MUTE, WM8350_DAC_MUTE_ENA, val); in wm8350_mute()
1025 struct snd_soc_component *component = codec_dai->component; in wm8350_set_fll() local
1026 struct wm8350_data *priv = snd_soc_component_get_drvdata(component); in wm8350_set_fll()
1051 fll_1 = snd_soc_component_read(component, WM8350_FLL_CONTROL_1) & in wm8350_set_fll()
1053 snd_soc_component_write(component, WM8350_FLL_CONTROL_1, in wm8350_set_fll()
1055 snd_soc_component_write(component, WM8350_FLL_CONTROL_2, in wm8350_set_fll()
1058 snd_soc_component_write(component, WM8350_FLL_CONTROL_3, fll_div.k); in wm8350_set_fll()
1059 fll_4 = snd_soc_component_read(component, WM8350_FLL_CONTROL_4) & in wm8350_set_fll()
1061 snd_soc_component_write(component, WM8350_FLL_CONTROL_4, in wm8350_set_fll()
1075 static int wm8350_set_bias_level(struct snd_soc_component *component, in wm8350_set_bias_level() argument
1078 struct wm8350_data *priv = snd_soc_component_get_drvdata(component); in wm8350_set_bias_level()
1102 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8350_set_bias_level()
1319 int wm8350_hp_jack_detect(struct snd_soc_component *component, enum wm8350_jack which, in wm8350_hp_jack_detect() argument
1322 struct wm8350_data *priv = snd_soc_component_get_drvdata(component); in wm8350_hp_jack_detect()
1398 int wm8350_mic_jack_detect(struct snd_soc_component *component, in wm8350_mic_jack_detect() argument
1402 struct wm8350_data *priv = snd_soc_component_get_drvdata(component); in wm8350_mic_jack_detect()
1457 static int wm8350_component_probe(struct snd_soc_component *component) in wm8350_component_probe() argument
1459 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_probe()
1466 dev_err(component->dev, "No audio platform data supplied\n"); in wm8350_component_probe()
1470 priv = devm_kzalloc(component->dev, sizeof(struct wm8350_data), in wm8350_component_probe()
1475 snd_soc_component_init_regmap(component, wm8350->regmap); in wm8350_component_probe()
1476 snd_soc_component_set_drvdata(component, priv); in wm8350_component_probe()
1499 snd_soc_component_write(component, WM8350_SECURITY, 0xa7); in wm8350_component_probe()
1500 snd_soc_component_write(component, 0xde, 0x13); in wm8350_component_probe()
1501 snd_soc_component_write(component, WM8350_SECURITY, 0); in wm8350_component_probe()
1574 static void wm8350_component_remove(struct snd_soc_component *component) in wm8350_component_remove() argument
1576 struct wm8350_data *priv = snd_soc_component_get_drvdata(component); in wm8350_component_remove()
1577 struct wm8350 *wm8350 = dev_get_platdata(component->dev); in wm8350_component_remove()