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()
2564 static int __wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w, in __wcd9335_codec_enable_micbias() argument
2567 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in __wcd9335_codec_enable_micbias()
2570 if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1"))) in __wcd9335_codec_enable_micbias()
2572 else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2"))) in __wcd9335_codec_enable_micbias()
2574 else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3"))) in __wcd9335_codec_enable_micbias()
2576 else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4"))) in __wcd9335_codec_enable_micbias()
2602 static int wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_micbias() argument
2605 return __wcd9335_codec_enable_micbias(w, event); in wcd9335_codec_enable_micbias()
2643 static int wcd9335_codec_enable_adc(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_adc() argument
2646 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_adc()
2650 wcd9335_codec_set_tx_hold(comp, w->reg, true); in wcd9335_codec_enable_adc()
2713 static int wcd9335_codec_enable_dec(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_dec() argument
2716 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_dec()
2727 widget_name = kmemdup_nul(w->name, 15, GFP_KERNEL); in wcd9335_codec_enable_dec()
2735 __func__, w->name); in wcd9335_codec_enable_dec()
2900 static int wcd9335_codec_enable_dmic(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_dmic() argument
2903 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_dmic()
2913 wname = strpbrk(w->name, "012345"); in wcd9335_codec_enable_dmic()
3009 static int wcd9335_codec_enable_slim(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_slim() argument
3013 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_slim()
3015 struct wcd_slim_codec_dai_data *dai = &wcd->dai[w->shift]; in wcd9335_codec_enable_slim()
3030 static int wcd9335_codec_enable_mix_path(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_mix_path() argument
3033 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_mix_path()
3038 switch (w->reg) { in wcd9335_codec_enable_mix_path()
3068 __func__, w->name); in wcd9335_codec_enable_mix_path()
3289 static int wcd9335_codec_enable_interpolator(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_interpolator() argument
3292 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_interpolator()
3298 if (!(strcmp(w->name, "RX INT0 INTERP"))) { in wcd9335_codec_enable_interpolator()
3301 } else if (!(strcmp(w->name, "RX INT1 INTERP"))) { in wcd9335_codec_enable_interpolator()
3304 } else if (!(strcmp(w->name, "RX INT2 INTERP"))) { in wcd9335_codec_enable_interpolator()
3307 } else if (!(strcmp(w->name, "RX INT3 INTERP"))) { in wcd9335_codec_enable_interpolator()
3310 } else if (!(strcmp(w->name, "RX INT4 INTERP"))) { in wcd9335_codec_enable_interpolator()
3313 } else if (!(strcmp(w->name, "RX INT5 INTERP"))) { in wcd9335_codec_enable_interpolator()
3316 } else if (!(strcmp(w->name, "RX INT6 INTERP"))) { in wcd9335_codec_enable_interpolator()
3319 } else if (!(strcmp(w->name, "RX INT7 INTERP"))) { in wcd9335_codec_enable_interpolator()
3322 } else if (!(strcmp(w->name, "RX INT8 INTERP"))) { in wcd9335_codec_enable_interpolator()
3337 wcd9335_config_compander(comp, w->shift, event); in wcd9335_codec_enable_interpolator()
3343 wcd9335_config_compander(comp, w->shift, event); in wcd9335_codec_enable_interpolator()
3524 static int wcd9335_codec_hphl_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_hphl_dac_event() argument
3528 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_hphl_dac_event()
3574 static int wcd9335_codec_lineout_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_lineout_dac_event() argument
3577 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_lineout_dac_event()
3594 static int wcd9335_codec_ear_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_ear_dac_event() argument
3597 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_ear_dac_event()
3675 static int wcd9335_codec_hphr_dac_event(struct snd_soc_dapm_widget *w, in wcd9335_codec_hphr_dac_event() argument
3679 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_hphr_dac_event()
3724 static int wcd9335_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_hphl_pa() argument
3728 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_hphl_pa()
3772 static int wcd9335_codec_enable_lineout_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_lineout_pa() argument
3776 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_lineout_pa()
3779 if (w->reg == WCD9335_ANA_LO_1_2) { in wcd9335_codec_enable_lineout_pa()
3780 if (w->shift == 7) { in wcd9335_codec_enable_lineout_pa()
3783 } else if (w->shift == 6) { in wcd9335_codec_enable_lineout_pa()
3787 } else if (w->reg == WCD9335_ANA_LO_3_4) { in wcd9335_codec_enable_lineout_pa()
3788 if (w->shift == 7) { in wcd9335_codec_enable_lineout_pa()
3791 } else if (w->shift == 6) { in wcd9335_codec_enable_lineout_pa()
3844 static int wcd9335_codec_enable_rx_bias(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_rx_bias() argument
3847 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_rx_bias()
3874 static int wcd9335_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_hphr_pa() argument
3877 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_hphr_pa()
3920 static int wcd9335_codec_enable_ear_pa(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_ear_pa() argument
3923 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_ear_pa()
4309 static int wcd9335_codec_enable_mclk(struct snd_soc_dapm_widget *w, in wcd9335_codec_enable_mclk() argument
4312 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd9335_codec_enable_mclk()