Lines Matching refs:value

28 static int avc_audio_feature_mute(struct fw_unit *unit, u8 fb_id, bool *value,  in avc_audio_feature_mute()  argument
58 buf[10] = *value ? 0x70 : 0x60; in avc_audio_feature_mute()
74 *value = buf[10] == 0x70; in avc_audio_feature_mute()
84 static int avc_audio_feature_volume(struct fw_unit *unit, u8 fb_id, s16 *value, in avc_audio_feature_volume() argument
117 buf[10] = *value >> 8; in avc_audio_feature_volume()
118 buf[11] = *value; in avc_audio_feature_volume()
135 *value = (buf[10] << 8) | buf[11]; in avc_audio_feature_volume()
146 struct snd_ctl_elem_value *value) in spkr_mute_get() argument
151 value->value.integer.value[0] = !spkr->mute; in spkr_mute_get()
157 struct snd_ctl_elem_value *value) in spkr_mute_put() argument
164 mute = !value->value.integer.value[0]; in spkr_mute_put()
186 info->value.integer.min = spkr->volume_min; in spkr_volume_info()
187 info->value.integer.max = spkr->volume_max; in spkr_volume_info()
195 struct snd_ctl_elem_value *value) in spkr_volume_get() argument
202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get()
208 struct snd_ctl_elem_value *value) in spkr_volume_put() argument
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()
222 value->value.integer.value[0]) in spkr_volume_put()
228 if (value->value.integer.value[channel_map[i]] != in spkr_volume_put()
236 volume = value->value.integer.value[channel_map[i ? i - 1 : 0]]; in spkr_volume_put()