Lines Matching refs:mask
32 static void wm8904_update_reg(const struct device *dev, uint8_t reg, uint16_t mask, uint16_t val);
187 uint16_t mask in wm8904_out_update() argument
192 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT2_LEFT, mask, val); in wm8904_out_update()
196 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT2_RIGHT, mask, val); in wm8904_out_update()
200 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT1_LEFT, mask, val); in wm8904_out_update()
204 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT1_RIGHT, mask, val); in wm8904_out_update()
208 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT1_LEFT, mask, val); in wm8904_out_update()
209 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT1_RIGHT, mask, val); in wm8904_out_update()
210 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT2_LEFT, mask, val); in wm8904_out_update()
211 wm8904_update_reg(dev, WM8904_REG_ANALOG_OUT2_RIGHT, mask, val); in wm8904_out_update()
223 const uint16_t mask = WM8904_REGMASK_OUT_VU in wm8904_out_volume_config() local
227 return wm8904_out_update(dev, channel, val, mask); in wm8904_out_volume_config()
233 const uint16_t mask = WM8904_REGMASK_OUT_MUTE; in wm8904_out_mute_config() local
235 return wm8904_out_update(dev, channel, val, mask); in wm8904_out_mute_config()
241 uint16_t mask, in wm8904_in_update() argument
247 wm8904_update_reg(dev, WM8904_REG_ANALOG_LEFT_IN_0, mask, val); in wm8904_in_update()
251 wm8904_update_reg(dev, WM8904_REG_ANALOG_RIGHT_IN_0, mask, val); in wm8904_in_update()
255 wm8904_update_reg(dev, WM8904_REG_ANALOG_LEFT_IN_0, mask, val); in wm8904_in_update()
256 wm8904_update_reg(dev, WM8904_REG_ANALOG_RIGHT_IN_0, mask, val); in wm8904_in_update()
267 const uint16_t mask = WM8904_REGMASK_IN_MUTE; in wm8904_in_volume_config() local
269 return wm8904_in_update(dev, channel, val, mask); in wm8904_in_volume_config()
275 const uint16_t mask = WM8904_REGMASK_IN_MUTE; in wm8904_in_mute_config() local
277 return wm8904_in_update(dev, channel, val, mask); in wm8904_in_mute_config()
287 uint8_t mask = WM8904_REGMASK_INSEL_CMENA in wm8904_route_input() local
306 wm8904_update_reg(dev, reg, mask, val); in wm8904_route_input()
621 static void wm8904_update_reg(const struct device *dev, uint8_t reg, uint16_t mask, uint16_t val) in wm8904_update_reg() argument
627 LOG_DBG("try write mask %#x val %#x", mask, val); in wm8904_update_reg()
633 new_value = (reg_val & ~mask) | (val & mask); in wm8904_update_reg()