Lines Matching full:comp

19 	struct snd_soc_component *comp;  member
122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() local
126 snd_soc_component_update_bits(comp, WCD9XXX_A_CDC_CLSH_CRC, in wcd_enable_clsh_block()
133 static inline bool wcd_clsh_enable_status(struct snd_soc_component *comp) in wcd_clsh_enable_status() argument
135 return snd_soc_component_read(comp, WCD9XXX_A_CDC_CLSH_CRC) & in wcd_clsh_enable_status()
139 static inline void wcd_clsh_set_buck_mode(struct snd_soc_component *comp, in wcd_clsh_set_buck_mode() argument
144 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_buck_mode()
148 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_buck_mode()
167 static inline void wcd_clsh_set_flyback_mode(struct snd_soc_component *comp, in wcd_clsh_set_flyback_mode() argument
172 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_flyback_mode()
176 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_flyback_mode()
185 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_buck_ctrl() local
190 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_buck_ctrl()
234 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_flyback_ctrl() local
239 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_flyback_ctrl()
254 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_set_gain_path() local
270 snd_soc_component_update_bits(comp, WCD9XXX_HPH_L_EN, in wcd_clsh_set_gain_path()
274 snd_soc_component_update_bits(comp, WCD9XXX_HPH_R_EN, in wcd_clsh_set_gain_path()
279 static void wcd_clsh_v2_set_hph_mode(struct snd_soc_component *comp, int mode) in wcd_clsh_v2_set_hph_mode() argument
308 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_HPH, in wcd_clsh_v2_set_hph_mode()
310 snd_soc_component_update_bits(comp, WCD9XXX_CLASSH_CTRL_VCL_2, in wcd_clsh_v2_set_hph_mode()
314 snd_soc_component_update_bits(comp, in wcd_clsh_v2_set_hph_mode()
318 snd_soc_component_update_bits(comp, WCD9XXX_CLASSH_CTRL_CCL_1, in wcd_clsh_v2_set_hph_mode()
356 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_set_hph_mode() local
359 wcd_clsh_v3_set_hph_mode(comp, mode); in wcd_clsh_set_hph_mode()
361 wcd_clsh_v2_set_hph_mode(comp, mode); in wcd_clsh_set_hph_mode()
365 static void wcd_clsh_set_flyback_current(struct snd_soc_component *comp, in wcd_clsh_set_flyback_current() argument
369 snd_soc_component_update_bits(comp, WCD9XXX_RX_BIAS_FLYB_BUFF, in wcd_clsh_set_flyback_current()
371 snd_soc_component_update_bits(comp, WCD9XXX_RX_BIAS_FLYB_BUFF, in wcd_clsh_set_flyback_current()
377 static void wcd_clsh_set_buck_regulator_mode(struct snd_soc_component *comp, in wcd_clsh_set_buck_regulator_mode() argument
381 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_buck_regulator_mode()
385 snd_soc_component_update_bits(comp, WCD9XXX_A_ANA_RX_SUPPLIES, in wcd_clsh_set_buck_regulator_mode()
498 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_aux()
517 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_lo() local
520 dev_err(comp->dev, "%s: LO cannot be in this mode: %d\n", in wcd_clsh_state_lo()
526 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_lo()
527 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_lo()
528 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_lo()
530 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_lo()
535 wcd_clsh_set_flyback_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_lo()
536 wcd_clsh_set_buck_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_lo()
537 wcd_clsh_set_buck_regulator_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_lo()
544 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_hph_r()
576 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_hph_r() local
579 dev_err(comp->dev, "%s: Normal mode not applicable for hph_r\n", in wcd_clsh_state_hph_r()
591 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_r()
595 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_r()
599 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_r()
604 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_hph_r()
605 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_hph_r()
607 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_hph_r()
608 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_hph_r()
610 wcd_clsh_v2_set_hph_mode(comp, mode); in wcd_clsh_state_hph_r()
613 wcd_clsh_v2_set_hph_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_r()
616 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_r()
625 wcd_clsh_set_flyback_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_r()
626 wcd_clsh_set_buck_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_r()
627 wcd_clsh_set_buck_regulator_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_r()
634 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_hph_l()
666 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_hph_l() local
669 dev_err(comp->dev, "%s: Normal mode not applicable for hph_l\n", in wcd_clsh_state_hph_l()
681 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_l()
685 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_l()
689 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_l()
694 wcd_clsh_set_buck_regulator_mode(comp, mode); in wcd_clsh_state_hph_l()
695 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_hph_l()
697 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_hph_l()
698 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_hph_l()
700 wcd_clsh_v2_set_hph_mode(comp, mode); in wcd_clsh_state_hph_l()
703 wcd_clsh_v2_set_hph_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_l()
706 snd_soc_component_update_bits(comp, in wcd_clsh_state_hph_l()
715 wcd_clsh_set_flyback_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_l()
716 wcd_clsh_set_buck_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_l()
717 wcd_clsh_set_buck_regulator_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_hph_l()
724 struct snd_soc_component *component = ctrl->comp; in wcd_clsh_v3_state_ear()
750 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_ear() local
753 dev_err(comp->dev, "%s: mode: %d cannot be used for EAR\n", in wcd_clsh_state_ear()
760 snd_soc_component_update_bits(comp, in wcd_clsh_state_ear()
764 wcd_clsh_set_buck_mode(comp, mode); in wcd_clsh_state_ear()
765 wcd_clsh_set_flyback_mode(comp, mode); in wcd_clsh_state_ear()
767 wcd_clsh_set_flyback_current(comp, mode); in wcd_clsh_state_ear()
770 snd_soc_component_update_bits(comp, in wcd_clsh_state_ear()
777 wcd_clsh_set_flyback_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_ear()
778 wcd_clsh_set_buck_mode(comp, CLS_H_NORMAL); in wcd_clsh_state_ear()
854 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_ctrl_set_state() local
860 dev_err(comp->dev, "Class-H not a valid new state:\n"); in wcd_clsh_ctrl_set_state()
884 struct wcd_clsh_ctrl *wcd_clsh_ctrl_alloc(struct snd_soc_component *comp, in wcd_clsh_ctrl_alloc() argument
894 ctrl->comp = comp; in wcd_clsh_ctrl_alloc()