Lines Matching refs:new
222 u32 old, new; in hal2_gain_put() local
231 new = old & ~(H2I_C2_L_ATT_M | H2I_C2_R_ATT_M | H2I_C2_MUTE); in hal2_gain_put()
235 new |= (l << H2I_C2_L_ATT_SHIFT); in hal2_gain_put()
236 new |= (r << H2I_C2_R_ATT_SHIFT); in hal2_gain_put()
238 new |= H2I_C2_L_ATT_M | H2I_C2_R_ATT_M | H2I_C2_MUTE; in hal2_gain_put()
239 hal2_i_write32(hal2, H2I_DAC_C2, new); in hal2_gain_put()
243 new = old & ~(H2I_C2_L_GAIN_M | H2I_C2_R_GAIN_M); in hal2_gain_put()
244 new |= (l << H2I_C2_L_GAIN_SHIFT); in hal2_gain_put()
245 new |= (r << H2I_C2_R_GAIN_SHIFT); in hal2_gain_put()
246 hal2_i_write32(hal2, H2I_ADC_C2, new); in hal2_gain_put()
251 return old != new; in hal2_gain_put()