Lines Matching refs:i
199 unsigned int i; in spkr_volume_get() local
201 for (i = 0; i < spkr->mixer_channels; ++i) in spkr_volume_get()
202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get()
212 unsigned int i, changed_channels; in spkr_volume_put() local
217 for (i = 0; i < spkr->mixer_channels; ++i) { in spkr_volume_put()
218 if (value->value.integer.value[i] < spkr->volume_min || in spkr_volume_put()
219 value->value.integer.value[i] > spkr->volume_max) in spkr_volume_put()
221 if (value->value.integer.value[i] != in spkr_volume_put()
227 for (i = 0; i < spkr->mixer_channels; ++i) in spkr_volume_put()
228 if (value->value.integer.value[channel_map[i]] != in spkr_volume_put()
229 spkr->volume[i]) in spkr_volume_put()
230 changed_channels |= 1 << (i + 1); in spkr_volume_put()
235 for (i = 0; i <= spkr->mixer_channels; ++i) { in spkr_volume_put()
236 volume = value->value.integer.value[channel_map[i ? i - 1 : 0]]; in spkr_volume_put()
237 if (changed_channels & (1 << i)) { in spkr_volume_put()
240 i, CTL_CURRENT, CTL_WRITE); in spkr_volume_put()
244 if (i > 0) in spkr_volume_put()
245 spkr->volume[i - 1] = volume; in spkr_volume_put()
270 unsigned int i, first_ch; in snd_oxfw_add_spkr() local
303 for (i = 0; i < spkr->mixer_channels; ++i) { in snd_oxfw_add_spkr()
305 &spkr->volume[i], first_ch + i, in snd_oxfw_add_spkr()
311 for (i = 0; i < ARRAY_SIZE(controls); ++i) { in snd_oxfw_add_spkr()
313 snd_ctl_new1(&controls[i], oxfw)); in snd_oxfw_add_spkr()