• Home
  • Raw
  • Download

Lines Matching refs:w

1283 	struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc);  in slim_rx_mux_put()  local
1284 struct wcd9335_codec *wcd = dev_get_drvdata(w->dapm->dev); in slim_rx_mux_put()
1287 u32 port_id = w->shift; in slim_rx_mux_put()
1316 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value, in slim_rx_mux_put()
2573 static int __wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w, in __wcd9335_codec_enable_micbias() argument
2576 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in __wcd9335_codec_enable_micbias()
2579 if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1"))) in __wcd9335_codec_enable_micbias()
2581 else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2"))) in __wcd9335_codec_enable_micbias()
2583 else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3"))) in __wcd9335_codec_enable_micbias()
2585 else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4"))) in __wcd9335_codec_enable_micbias()
2611 static int wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_micbias() argument
2614 return __wcd9335_codec_enable_micbias(w, event); in wcd9335_codec_enable_micbias()
2652 static int wcd9335_codec_enable_adc(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_adc() argument
2655 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_adc()
2659 wcd9335_codec_set_tx_hold(comp, w->reg, true); in wcd9335_codec_enable_adc()
2722 static int wcd9335_codec_enable_dec(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_dec() argument
2725 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_dec()
2736 widget_name = kmemdup_nul(w->name, 15, GFP_KERNEL); in wcd9335_codec_enable_dec()
2744 __func__, w->name); in wcd9335_codec_enable_dec()
2909 static int wcd9335_codec_enable_dmic(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_dmic() argument
2912 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_dmic()
2922 wname = strpbrk(w->name, "012345"); in wcd9335_codec_enable_dmic()
3018 static int wcd9335_codec_enable_slim(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_slim() argument
3022 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_slim()
3024 struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift]; in wcd9335_codec_enable_slim()
3039 static int wcd9335_codec_enable_mix_path(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_mix_path() argument
3042 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_mix_path()
3047 switch (w->reg) { in wcd9335_codec_enable_mix_path()
3077 __func__, w->name); in wcd9335_codec_enable_mix_path()
3298 static int wcd9335_codec_enable_interpolator(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_interpolator() argument
3301 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_interpolator()
3307 if (!(strcmp(w->name, "RX INT0 INTERP"))) { in wcd9335_codec_enable_interpolator()
3310 } else if (!(strcmp(w->name, "RX INT1 INTERP"))) { in wcd9335_codec_enable_interpolator()
3313 } else if (!(strcmp(w->name, "RX INT2 INTERP"))) { in wcd9335_codec_enable_interpolator()
3316 } else if (!(strcmp(w->name, "RX INT3 INTERP"))) { in wcd9335_codec_enable_interpolator()
3319 } else if (!(strcmp(w->name, "RX INT4 INTERP"))) { in wcd9335_codec_enable_interpolator()
3322 } else if (!(strcmp(w->name, "RX INT5 INTERP"))) { in wcd9335_codec_enable_interpolator()
3325 } else if (!(strcmp(w->name, "RX INT6 INTERP"))) { in wcd9335_codec_enable_interpolator()
3328 } else if (!(strcmp(w->name, "RX INT7 INTERP"))) { in wcd9335_codec_enable_interpolator()
3331 } else if (!(strcmp(w->name, "RX INT8 INTERP"))) { in wcd9335_codec_enable_interpolator()
3346 wcd9335_config_compander(comp, w->shift, event); in wcd9335_codec_enable_interpolator()
3352 wcd9335_config_compander(comp, w->shift, event); in wcd9335_codec_enable_interpolator()
3533 static int wcd9335_codec_hphl_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_hphl_dac_event() argument
3537 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_hphl_dac_event()
3583 static int wcd9335_codec_lineout_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_lineout_dac_event() argument
3586 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_lineout_dac_event()
3603 static int wcd9335_codec_ear_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_ear_dac_event() argument
3606 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_ear_dac_event()
3684 static int wcd9335_codec_hphr_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_hphr_dac_event() argument
3688 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_hphr_dac_event()
3733 static int wcd9335_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_hphl_pa() argument
3737 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_hphl_pa()
3781 static int wcd9335_codec_enable_lineout_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_lineout_pa() argument
3785 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_lineout_pa()
3788 if (w->reg == WCD9335_ANA_LO_1_2) { in wcd9335_codec_enable_lineout_pa()
3789 if (w->shift == 7) { in wcd9335_codec_enable_lineout_pa()
3792 } else if (w->shift == 6) { in wcd9335_codec_enable_lineout_pa()
3796 } else if (w->reg == WCD9335_ANA_LO_3_4) { in wcd9335_codec_enable_lineout_pa()
3797 if (w->shift == 7) { in wcd9335_codec_enable_lineout_pa()
3800 } else if (w->shift == 6) { in wcd9335_codec_enable_lineout_pa()
3853 static int wcd9335_codec_enable_rx_bias(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_rx_bias() argument
3856 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_rx_bias()
3883 static int wcd9335_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_hphr_pa() argument
3886 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_hphr_pa()
3929 static int wcd9335_codec_enable_ear_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_ear_pa() argument
3932 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_ear_pa()
4308 static int wcd9335_codec_enable_mclk(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_mclk() argument
4311 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_mclk()