• Home
  • Raw
  • Download

Lines Matching refs:mode

14 	int mode;  member
127 int mode) in wcd_clsh_set_buck_mode() argument
130 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode()
141 int mode) in wcd_clsh_set_flyback_mode() argument
144 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode()
155 int mode, in wcd_clsh_buck_ctrl() argument
174 int mode, in wcd_clsh_flyback_ctrl() argument
195 static void wcd_clsh_set_gain_path(struct wcd_clsh_ctrl *ctrl, int mode) in wcd_clsh_set_gain_path() argument
200 switch (mode) { in wcd_clsh_set_gain_path()
223 int mode) in wcd_clsh_set_hph_mode() argument
229 switch (mode) { in wcd_clsh_set_hph_mode()
257 if (mode != CLS_H_LP) in wcd_clsh_set_hph_mode()
268 int mode) in wcd_clsh_set_flyback_current() argument
280 int mode) in wcd_clsh_set_buck_regulator_mode() argument
282 if (mode == CLS_AB) in wcd_clsh_set_buck_regulator_mode()
293 bool is_enable, int mode) in wcd_clsh_state_lo() argument
297 if (mode != CLS_AB) { in wcd_clsh_state_lo()
299 __func__, mode); in wcd_clsh_state_lo()
304 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_lo()
305 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_lo()
306 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_lo()
307 wcd_clsh_flyback_ctrl(ctrl, mode, true); in wcd_clsh_state_lo()
308 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_lo()
309 wcd_clsh_buck_ctrl(ctrl, mode, true); in wcd_clsh_state_lo()
311 wcd_clsh_buck_ctrl(ctrl, mode, false); in wcd_clsh_state_lo()
312 wcd_clsh_flyback_ctrl(ctrl, mode, false); in wcd_clsh_state_lo()
320 bool is_enable, int mode) in wcd_clsh_state_hph_r() argument
324 if (mode == CLS_H_NORMAL) { in wcd_clsh_state_hph_r()
331 if (mode != CLS_AB) { in wcd_clsh_state_hph_r()
350 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_hph_r()
351 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_hph_r()
352 wcd_clsh_flyback_ctrl(ctrl, mode, true); in wcd_clsh_state_hph_r()
353 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_hph_r()
354 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_hph_r()
355 wcd_clsh_buck_ctrl(ctrl, mode, true); in wcd_clsh_state_hph_r()
356 wcd_clsh_set_hph_mode(comp, mode); in wcd_clsh_state_hph_r()
357 wcd_clsh_set_gain_path(ctrl, mode); in wcd_clsh_state_hph_r()
361 if (mode != CLS_AB) { in wcd_clsh_state_hph_r()
378 bool is_enable, int mode) in wcd_clsh_state_hph_l() argument
382 if (mode == CLS_H_NORMAL) { in wcd_clsh_state_hph_l()
389 if (mode != CLS_AB) { in wcd_clsh_state_hph_l()
408 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_hph_l()
409 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_hph_l()
410 wcd_clsh_flyback_ctrl(ctrl, mode, true); in wcd_clsh_state_hph_l()
411 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_hph_l()
412 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_hph_l()
413 wcd_clsh_buck_ctrl(ctrl, mode, true); in wcd_clsh_state_hph_l()
414 wcd_clsh_set_hph_mode(comp, mode); in wcd_clsh_state_hph_l()
415 wcd_clsh_set_gain_path(ctrl, mode); in wcd_clsh_state_hph_l()
419 if (mode != CLS_AB) { in wcd_clsh_state_hph_l()
436 bool is_enable, int mode) in wcd_clsh_state_ear() argument
440 if (mode != CLS_H_NORMAL) { in wcd_clsh_state_ear()
442 __func__, mode); in wcd_clsh_state_ear()
452 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_ear()
453 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_ear()
454 wcd_clsh_flyback_ctrl(ctrl, mode, true); in wcd_clsh_state_ear()
455 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_ear()
456 wcd_clsh_buck_ctrl(ctrl, mode, true); in wcd_clsh_state_ear()
463 wcd_clsh_buck_ctrl(ctrl, mode, false); in wcd_clsh_state_ear()
464 wcd_clsh_flyback_ctrl(ctrl, mode, false); in wcd_clsh_state_ear()
471 bool is_enable, int mode) in _wcd_clsh_ctrl_set_state() argument
475 wcd_clsh_state_ear(ctrl, req_state, is_enable, mode); in _wcd_clsh_ctrl_set_state()
478 wcd_clsh_state_hph_l(ctrl, req_state, is_enable, mode); in _wcd_clsh_ctrl_set_state()
481 wcd_clsh_state_hph_r(ctrl, req_state, is_enable, mode); in _wcd_clsh_ctrl_set_state()
485 wcd_clsh_state_lo(ctrl, req_state, is_enable, mode); in _wcd_clsh_ctrl_set_state()
526 enum wcd_clsh_mode mode) in wcd_clsh_ctrl_set_state() argument
540 _wcd_clsh_ctrl_set_state(ctrl, nstate, CLSH_REQ_ENABLE, mode); in wcd_clsh_ctrl_set_state()
543 _wcd_clsh_ctrl_set_state(ctrl, nstate, CLSH_REQ_DISABLE, mode); in wcd_clsh_ctrl_set_state()
548 ctrl->mode = mode; in wcd_clsh_ctrl_set_state()