• Home
  • Raw
  • Download

Lines Matching refs:value

29 		if (ucontrol->value.integer.value[i]) {  in update_mute_led()
48 static inline u32 mixer_to_ipc(unsigned int value, u32 *volume_map, int size) in mixer_to_ipc() argument
50 if (value >= size) in mixer_to_ipc()
53 return volume_map[value]; in mixer_to_ipc()
56 static inline u32 ipc_to_mixer(u32 value, u32 *volume_map, int size) in ipc_to_mixer() argument
61 if (volume_map[i] >= value) in ipc_to_mixer()
79 ucontrol->value.integer.value[i] = in snd_sof_volume_get()
80 ipc_to_mixer(cdata->chanv[i].value, in snd_sof_volume_get()
96 u32 value; in snd_sof_volume_put() local
100 value = mixer_to_ipc(ucontrol->value.integer.value[i], in snd_sof_volume_put()
102 change = change || (value != cdata->chanv[i].value); in snd_sof_volume_put()
104 cdata->chanv[i].value = value; in snd_sof_volume_put()
128 ucontrol->value.integer.value[i] = cdata->chanv[i].value; in snd_sof_switch_get()
143 u32 value; in snd_sof_switch_put() local
147 value = ucontrol->value.integer.value[i]; in snd_sof_switch_put()
148 change = change || (value != cdata->chanv[i].value); in snd_sof_switch_put()
150 cdata->chanv[i].value = value; in snd_sof_switch_put()
178 ucontrol->value.enumerated.item[i] = cdata->chanv[i].value; in snd_sof_enum_get()
193 u32 value; in snd_sof_enum_put() local
197 value = ucontrol->value.enumerated.item[i]; in snd_sof_enum_put()
198 change = change || (value != cdata->chanv[i].value); in snd_sof_enum_put()
200 cdata->chanv[i].value = value; in snd_sof_enum_put()
225 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_get()
243 memcpy(ucontrol->value.bytes.data, data, size); in snd_sof_bytes_get()
259 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_put()
277 memcpy(data, ucontrol->value.bytes.data, size); in snd_sof_bytes_put()