Lines Matching refs:hubs

61 	struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component);  in wait_for_dc_servo()  local
74 if (hubs->dcs_done_irq) in wait_for_dc_servo()
82 if (hubs->dcs_done_irq) in wait_for_dc_servo()
83 wait_for_completion_timeout(&hubs->dcs_done, in wait_for_dc_servo()
99 struct wm_hubs_data *hubs = data; in wm_hubs_dcs_done() local
101 complete(&hubs->dcs_done); in wm_hubs_dcs_done()
151 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_dcs_cache_get() local
161 list_for_each_entry(cache, &hubs->dcs_cache, list) { in wm_hubs_dcs_cache_get()
174 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_dcs_cache_set() local
177 if (hubs->no_cache_dac_hp_direct) in wm_hubs_dcs_cache_set()
192 list_add_tail(&cache->list, &hubs->dcs_cache); in wm_hubs_dcs_cache_set()
198 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_read_dc_servo() local
202 switch (hubs->dcs_readback_mode) { in wm_hubs_read_dc_servo()
217 switch (hubs->dcs_readback_mode) { in wm_hubs_read_dc_servo()
243 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in enable_dc_servo() local
248 switch (hubs->dcs_readback_mode) { in enable_dc_servo()
270 if (hubs->series_startup) { in enable_dc_servo()
290 if (hubs->dcs_codes_l || hubs->dcs_codes_r) { in enable_dc_servo()
293 hubs->dcs_codes_l, hubs->dcs_codes_r); in enable_dc_servo()
298 offset + hubs->dcs_codes_r); in enable_dc_servo()
299 offset += hubs->dcs_codes_r; in enable_dc_servo()
305 offset + hubs->dcs_codes_l); in enable_dc_servo()
306 offset += hubs->dcs_codes_l; in enable_dc_servo()
334 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm8993_put_dc_servo() local
341 if (hubs->dcs_codes_l || hubs->dcs_codes_r || hubs->no_series_update) in wm8993_put_dc_servo()
499 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in hp_supply_event() local
503 switch (hubs->hp_startup_mode) { in hp_supply_event()
523 hubs->hp_startup_mode); in hp_supply_event()
618 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in lineout_event() local
623 flag = &hubs->lineout1n_ena; in lineout_event()
626 flag = &hubs->lineout1p_ena; in lineout_event()
629 flag = &hubs->lineout2n_ena; in lineout_event()
632 flag = &hubs->lineout2p_ena; in lineout_event()
648 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in micbias_event() local
652 if (hubs->micb1_delay) in micbias_event()
653 msleep(hubs->micb1_delay); in micbias_event()
656 if (hubs->micb2_delay) in micbias_event()
657 msleep(hubs->micb2_delay); in micbias_event()
668 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_update_class_w() local
674 if (hubs->check_class_w_digital && !hubs->check_class_w_digital(component)) in wm_hubs_update_class_w()
1157 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_add_analogue_routes() local
1160 hubs->component = component; in wm_hubs_add_analogue_routes()
1162 INIT_LIST_HEAD(&hubs->dcs_cache); in wm_hubs_add_analogue_routes()
1163 init_completion(&hubs->dcs_done); in wm_hubs_add_analogue_routes()
1197 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_handle_analogue_pdata() local
1199 hubs->lineout1_se = !lineout1_diff; in wm_hubs_handle_analogue_pdata()
1200 hubs->lineout2_se = !lineout2_diff; in wm_hubs_handle_analogue_pdata()
1201 hubs->micb1_delay = micbias1_delay; in wm_hubs_handle_analogue_pdata()
1202 hubs->micb2_delay = micbias2_delay; in wm_hubs_handle_analogue_pdata()
1226 if (!hubs->micd_scthr) in wm_hubs_handle_analogue_pdata()
1243 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_vmid_ena() local
1246 if (hubs->lineout1_se) in wm_hubs_vmid_ena()
1249 if (hubs->lineout2_se) in wm_hubs_vmid_ena()
1260 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wm_hubs_set_bias_level() local
1275 if (hubs->lineout1_se) in wm_hubs_set_bias_level()
1278 if (hubs->lineout2_se) in wm_hubs_set_bias_level()
1281 if (hubs->lineout1_se && hubs->lineout1n_ena) in wm_hubs_set_bias_level()
1284 if (hubs->lineout1_se && hubs->lineout1p_ena) in wm_hubs_set_bias_level()
1287 if (hubs->lineout2_se && hubs->lineout2n_ena) in wm_hubs_set_bias_level()
1290 if (hubs->lineout2_se && hubs->lineout2p_ena) in wm_hubs_set_bias_level()