Lines Matching refs:u_ctrl_val
82 static inline unsigned int rt715_sdca_vol_gain(unsigned int u_ctrl_val, in rt715_sdca_vol_gain() argument
87 if (u_ctrl_val > vol_max) in rt715_sdca_vol_gain()
88 u_ctrl_val = vol_max; in rt715_sdca_vol_gain()
89 val = u_ctrl_val; in rt715_sdca_vol_gain()
90 u_ctrl_val = in rt715_sdca_vol_gain()
91 ((abs(u_ctrl_val - vol_gain_sft) * RT715_SDCA_DB_STEP) << 8) / 1000; in rt715_sdca_vol_gain()
93 u_ctrl_val = ~u_ctrl_val; in rt715_sdca_vol_gain()
94 u_ctrl_val += 1; in rt715_sdca_vol_gain()
96 u_ctrl_val &= 0xffff; in rt715_sdca_vol_gain()
98 return u_ctrl_val; in rt715_sdca_vol_gain()
101 static inline unsigned int rt715_sdca_boost_gain(unsigned int u_ctrl_val, in rt715_sdca_boost_gain() argument
104 if (u_ctrl_val > b_max) in rt715_sdca_boost_gain()
105 u_ctrl_val = b_max; in rt715_sdca_boost_gain()
107 return (u_ctrl_val * 10) << b_gain_sft; in rt715_sdca_boost_gain()