Lines Matching defs:dst
187 static int copy_value(struct loopback_control *dst,
193 type = snd_ctl_elem_info_get_type(dst->info);
194 count = snd_ctl_elem_info_get_count(dst->info);
198 snd_ctl_elem_value_set_boolean(dst->value,
203 snd_ctl_elem_value_set_integer(dst->value,
249 snd_ctl_elem_info_copy(mix->dst.info, mix->src.info);
250 snd_ctl_elem_info_set_id(mix->dst.info, mix->dst.id);
251 snd_ctl_elem_value_clear(mix->dst.value);
252 snd_ctl_elem_value_set_id(mix->dst.value, mix->dst.id);
253 type = snd_ctl_elem_info_get_type(mix->dst.info);
254 count = snd_ctl_elem_info_get_count(mix->dst.info);
255 snd_ctl_elem_remove(loop->capt->ctl, mix->dst.id);
259 mix->dst.id, count);
260 copy_value(&mix->dst, &mix->src);
264 mix->dst.id, count,
265 snd_ctl_elem_info_get_min(mix->dst.info),
266 snd_ctl_elem_info_get_max(mix->dst.info),
267 snd_ctl_elem_info_get_step(mix->dst.info));
268 copy_value(&mix->dst, &mix->src);
276 logit(LOG_CRIT, "Unable to create control '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
279 err = snd_ctl_elem_unlock(loop->capt->ctl, mix->dst.id);
281 logit(LOG_CRIT, "Unable to unlock control info '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
284 err = snd_ctl_elem_info(loop->capt->ctl, mix->dst.info);
286 logit(LOG_CRIT, "Unable to read control info '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
289 if (snd_ctl_elem_info_is_tlv_writable(mix->dst.info)) {
299 mix->dst.id,
306 err = snd_ctl_elem_write(loop->capt->ctl, mix->dst.value);
308 logit(LOG_CRIT, "Unable to write control value '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
359 err = snd_ctl_elem_remove(loop->capt->ctl, mix->dst.id);
361 logit(LOG_WARNING, "%s: Unable to remove control '%s': %s\n", loop->id, id_str(mix->dst.id), snd_strerror(err));
385 copy_value(&mix->dst, &mix->src);
386 err = snd_ctl_elem_write(loop->capt->ctl, mix->dst.value);
388 logit(LOG_CRIT, "Unable to write control value (event1) '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
392 err = snd_ctl_elem_read(loop->capt->ctl, mix->dst.value);
394 logit(LOG_CRIT, "Unable to read control value (event2) '%s': %s\n", id_str(mix->dst.id), snd_strerror(err));
397 copy_value(&mix->src, &mix->dst);
419 if (control_id_match(id2, capt ? mix->dst.id : mix->src.id)) {