• Home
  • Raw
  • Download

Lines Matching refs:i

26 	int i;  in ipc_to_mixer()  local
28 for (i = 0; i < size; i++) { in ipc_to_mixer()
29 if (volume_map[i] >= value) in ipc_to_mixer()
30 return i; in ipc_to_mixer()
33 return i - 1; in ipc_to_mixer()
43 unsigned int i, channels = scontrol->num_channels; in snd_sof_volume_get() local
46 for (i = 0; i < channels; i++) in snd_sof_volume_get()
47 ucontrol->value.integer.value[i] = in snd_sof_volume_get()
48 ipc_to_mixer(cdata->chanv[i].value, in snd_sof_volume_get()
62 unsigned int i, channels = scontrol->num_channels; in snd_sof_volume_put() local
67 for (i = 0; i < channels; i++) { in snd_sof_volume_put()
68 value = mixer_to_ipc(ucontrol->value.integer.value[i], in snd_sof_volume_put()
70 change = change || (value != cdata->chanv[i].value); in snd_sof_volume_put()
71 cdata->chanv[i].channel = i; in snd_sof_volume_put()
72 cdata->chanv[i].value = value; in snd_sof_volume_put()
92 unsigned int i, channels = scontrol->num_channels; in snd_sof_switch_get() local
95 for (i = 0; i < channels; i++) in snd_sof_switch_get()
96 ucontrol->value.integer.value[i] = cdata->chanv[i].value; in snd_sof_switch_get()
109 unsigned int i, channels = scontrol->num_channels; in snd_sof_switch_put() local
114 for (i = 0; i < channels; i++) { in snd_sof_switch_put()
115 value = ucontrol->value.integer.value[i]; in snd_sof_switch_put()
116 change = change || (value != cdata->chanv[i].value); in snd_sof_switch_put()
117 cdata->chanv[i].channel = i; in snd_sof_switch_put()
118 cdata->chanv[i].value = value; in snd_sof_switch_put()
139 unsigned int i, channels = scontrol->num_channels; in snd_sof_enum_get() local
142 for (i = 0; i < channels; i++) in snd_sof_enum_get()
143 ucontrol->value.enumerated.item[i] = cdata->chanv[i].value; in snd_sof_enum_get()
156 unsigned int i, channels = scontrol->num_channels; in snd_sof_enum_put() local
161 for (i = 0; i < channels; i++) { in snd_sof_enum_put()
162 value = ucontrol->value.enumerated.item[i]; in snd_sof_enum_put()
163 change = change || (value != cdata->chanv[i].value); in snd_sof_enum_put()
164 cdata->chanv[i].channel = i; in snd_sof_enum_put()
165 cdata->chanv[i].value = value; in snd_sof_enum_put()