Lines Matching refs:value

140 			 u8 reg, u8 value)  in ak4396_write()  argument
153 AK4396_WRITE | (reg << 8) | value); in ak4396_write()
154 data->ak4396_regs[codec][reg] = value; in ak4396_write()
158 u8 reg, u8 value) in ak4396_write_cached() argument
162 if (value != data->ak4396_regs[codec][reg]) in ak4396_write_cached()
163 ak4396_write(chip, codec, reg, value); in ak4396_write_cached()
166 static void wm8785_write(struct oxygen *chip, u8 reg, unsigned int value) in wm8785_write() argument
175 (reg << 9) | value); in wm8785_write()
177 data->wm8785_regs[reg] = value; in wm8785_write()
335 u8 value; in set_ak4396_params() local
337 value = data->ak4396_regs[0][AK4396_CONTROL_2] & ~AK4396_DFS_MASK; in set_ak4396_params()
339 value |= AK4396_DFS_NORMAL; in set_ak4396_params()
341 value |= AK4396_DFS_DOUBLE; in set_ak4396_params()
343 value |= AK4396_DFS_QUAD; in set_ak4396_params()
347 if (value != data->ak4396_regs[0][AK4396_CONTROL_2]) { in set_ak4396_params()
351 ak4396_write(chip, i, AK4396_CONTROL_2, value); in set_ak4396_params()
375 u8 value; in update_ak4396_mute() local
377 value = data->ak4396_regs[0][AK4396_CONTROL_2] & ~AK4396_SMUTE; in update_ak4396_mute()
379 value |= AK4396_SMUTE; in update_ak4396_mute()
381 ak4396_write_cached(chip, i, AK4396_CONTROL_2, value); in update_ak4396_mute()
388 unsigned int value; in set_wm8785_params() local
390 value = WM8785_MCR_SLAVE | WM8785_FORMAT_LJUST; in set_wm8785_params()
392 value |= WM8785_OSR_SINGLE; in set_wm8785_params()
394 value |= WM8785_OSR_DOUBLE; in set_wm8785_params()
396 value |= WM8785_OSR_QUAD; in set_wm8785_params()
397 if (value != data->wm8785_regs[0]) { in set_wm8785_params()
399 wm8785_write(chip, WM8785_R0, value); in set_wm8785_params()
407 unsigned int value; in set_ak5385_params() local
410 value = GPIO_AK5385_DFS_NORMAL; in set_ak5385_params()
412 value = GPIO_AK5385_DFS_DOUBLE; in set_ak5385_params()
414 value = GPIO_AK5385_DFS_QUAD; in set_ak5385_params()
416 value, GPIO_AK5385_DFS_MASK); in set_ak5385_params()
434 struct snd_ctl_elem_value *value) in rolloff_get() argument
439 value->value.enumerated.item[0] = in rolloff_get()
445 struct snd_ctl_elem_value *value) in rolloff_put() argument
455 if (value->value.enumerated.item[0]) in rolloff_put()
485 static int hpf_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_get() argument
490 value->value.enumerated.item[0] = in hpf_get()
495 static int hpf_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_put() argument
504 if (value->value.enumerated.item[0]) in hpf_put()
538 struct snd_ctl_elem_value *value) in meridian_dig_source_get() argument
542 value->value.enumerated.item[0] = in meridian_dig_source_get()
549 struct snd_ctl_elem_value *value) in claro_dig_source_get() argument
553 value->value.enumerated.item[0] = in claro_dig_source_get()
560 struct snd_ctl_elem_value *value) in meridian_dig_source_put() argument
569 if (value->value.enumerated.item[0] == 0) in meridian_dig_source_put()
581 struct snd_ctl_elem_value *value) in claro_dig_source_put() argument
590 if (value->value.enumerated.item[0]) in claro_dig_source_put()