Lines Matching full:component

147 static void wcd_clsh_v3_set_buck_mode(struct snd_soc_component *component,  in wcd_clsh_v3_set_buck_mode()  argument
152 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_buck_mode()
156 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_buck_mode()
194 static void wcd_clsh_v3_buck_ctrl(struct snd_soc_component *component, in wcd_clsh_v3_buck_ctrl() argument
202 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl()
212 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl()
216 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl()
317 static void wcd_clsh_v3_set_hph_mode(struct snd_soc_component *component, in wcd_clsh_v3_set_hph_mode() argument
341 dev_err(component->dev, "%s:Invalid mode %d\n", __func__, mode); in wcd_clsh_v3_set_hph_mode()
345 snd_soc_component_update_bits(component, WCD9XXX_ANA_HPH, 0x0C, val); in wcd_clsh_v3_set_hph_mode()
385 static void wcd_clsh_v3_set_buck_regulator_mode(struct snd_soc_component *component, in wcd_clsh_v3_set_buck_regulator_mode() argument
388 snd_soc_component_update_bits(component, WCD9XXX_ANA_RX_SUPPLIES, in wcd_clsh_v3_set_buck_regulator_mode()
392 static void wcd_clsh_v3_set_flyback_mode(struct snd_soc_component *component, in wcd_clsh_v3_set_flyback_mode() argument
397 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_flyback_mode()
400 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_flyback_mode()
404 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_flyback_mode()
407 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_flyback_mode()
413 static void wcd_clsh_v3_force_iq_ctl(struct snd_soc_component *component, in wcd_clsh_v3_force_iq_ctl() argument
417 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
422 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
425 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
429 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
432 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
435 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
440 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
443 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
446 snd_soc_component_update_bits(component, in wcd_clsh_v3_force_iq_ctl()
452 static void wcd_clsh_v3_flyback_ctrl(struct snd_soc_component *component, in wcd_clsh_v3_flyback_ctrl() argument
460 snd_soc_component_update_bits(component, in wcd_clsh_v3_flyback_ctrl()
463 snd_soc_component_update_bits(component, in wcd_clsh_v3_flyback_ctrl()
471 snd_soc_component_update_bits(component, in wcd_clsh_v3_flyback_ctrl()
479 static void wcd_clsh_v3_set_flyback_current(struct snd_soc_component *component, in wcd_clsh_v3_set_flyback_current() argument
482 snd_soc_component_update_bits(component, WCD9XXX_V3_RX_BIAS_FLYB_BUFF, in wcd_clsh_v3_set_flyback_current()
484 snd_soc_component_update_bits(component, WCD9XXX_V3_RX_BIAS_FLYB_BUFF, in wcd_clsh_v3_set_flyback_current()
493 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_aux() local
496 wcd_clsh_v3_set_buck_mode(component, mode); in wcd_clsh_v3_state_aux()
497 wcd_clsh_v3_set_flyback_mode(component, mode); in wcd_clsh_v3_state_aux()
498 wcd_clsh_v3_flyback_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_aux()
499 wcd_clsh_v3_set_flyback_current(component, mode); in wcd_clsh_v3_state_aux()
500 wcd_clsh_v3_buck_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_aux()
502 wcd_clsh_v3_buck_ctrl(component, ctrl, mode, false); in wcd_clsh_v3_state_aux()
503 wcd_clsh_v3_flyback_ctrl(component, ctrl, mode, false); in wcd_clsh_v3_state_aux()
504 wcd_clsh_v3_set_flyback_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_aux()
505 wcd_clsh_v3_set_buck_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_aux()
539 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_hph_r() local
542 dev_dbg(component->dev, "%s: Normal mode not applicable for hph_r\n", in wcd_clsh_v3_state_hph_r()
548 wcd_clsh_v3_set_buck_regulator_mode(component, mode); in wcd_clsh_v3_state_hph_r()
549 wcd_clsh_v3_set_flyback_mode(component, mode); in wcd_clsh_v3_state_hph_r()
550 wcd_clsh_v3_force_iq_ctl(component, mode, true); in wcd_clsh_v3_state_hph_r()
551 wcd_clsh_v3_flyback_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_hph_r()
552 wcd_clsh_v3_set_flyback_current(component, mode); in wcd_clsh_v3_state_hph_r()
553 wcd_clsh_v3_set_buck_mode(component, mode); in wcd_clsh_v3_state_hph_r()
554 wcd_clsh_v3_buck_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_hph_r()
555 wcd_clsh_v3_set_hph_mode(component, mode); in wcd_clsh_v3_state_hph_r()
557 wcd_clsh_v3_set_hph_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_r()
560 wcd_clsh_v3_flyback_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_r()
561 wcd_clsh_v3_buck_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_r()
562 wcd_clsh_v3_force_iq_ctl(component, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_r()
563 wcd_clsh_v3_set_flyback_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_r()
564 wcd_clsh_v3_set_buck_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_r()
629 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_hph_l() local
632 dev_dbg(component->dev, "%s: Normal mode not applicable for hph_l\n", in wcd_clsh_v3_state_hph_l()
638 wcd_clsh_v3_set_buck_regulator_mode(component, mode); in wcd_clsh_v3_state_hph_l()
639 wcd_clsh_v3_set_flyback_mode(component, mode); in wcd_clsh_v3_state_hph_l()
640 wcd_clsh_v3_force_iq_ctl(component, mode, true); in wcd_clsh_v3_state_hph_l()
641 wcd_clsh_v3_flyback_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_hph_l()
642 wcd_clsh_v3_set_flyback_current(component, mode); in wcd_clsh_v3_state_hph_l()
643 wcd_clsh_v3_set_buck_mode(component, mode); in wcd_clsh_v3_state_hph_l()
644 wcd_clsh_v3_buck_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_hph_l()
645 wcd_clsh_v3_set_hph_mode(component, mode); in wcd_clsh_v3_state_hph_l()
647 wcd_clsh_v3_set_hph_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_l()
650 wcd_clsh_v3_flyback_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_l()
651 wcd_clsh_v3_buck_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_l()
652 wcd_clsh_v3_force_iq_ctl(component, CLS_H_NORMAL, false); in wcd_clsh_v3_state_hph_l()
653 wcd_clsh_v3_set_flyback_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_l()
654 wcd_clsh_v3_set_buck_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_hph_l()
719 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_ear() local
722 wcd_clsh_v3_set_buck_regulator_mode(component, mode); in wcd_clsh_v3_state_ear()
723 wcd_clsh_v3_set_flyback_mode(component, mode); in wcd_clsh_v3_state_ear()
724 wcd_clsh_v3_force_iq_ctl(component, mode, true); in wcd_clsh_v3_state_ear()
725 wcd_clsh_v3_flyback_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_ear()
726 wcd_clsh_v3_set_flyback_current(component, mode); in wcd_clsh_v3_state_ear()
727 wcd_clsh_v3_set_buck_mode(component, mode); in wcd_clsh_v3_state_ear()
728 wcd_clsh_v3_buck_ctrl(component, ctrl, mode, true); in wcd_clsh_v3_state_ear()
729 wcd_clsh_v3_set_hph_mode(component, mode); in wcd_clsh_v3_state_ear()
731 wcd_clsh_v3_set_hph_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_ear()
734 wcd_clsh_v3_flyback_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_ear()
735 wcd_clsh_v3_buck_ctrl(component, ctrl, CLS_H_NORMAL, false); in wcd_clsh_v3_state_ear()
736 wcd_clsh_v3_force_iq_ctl(component, CLS_H_NORMAL, false); in wcd_clsh_v3_state_ear()
737 wcd_clsh_v3_set_flyback_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_ear()
738 wcd_clsh_v3_set_buck_mode(component, CLS_H_NORMAL); in wcd_clsh_v3_state_ear()