Lines Matching refs:value

99    - An element usually includes one or more member(s) to have a value. For
104 at all (and thus no member count), they have just a single value. The
106 the same min/max values). The value of each member can be changed by both
156 bytes and IEC958 structure. This indicates the type of value for each member in
162 When the value of a member is changed, corresponding events are transferred to
517 * \param min Minimum value for each member of the elements.
518 * \param max Maximum value for each member of the elements.
519 * \param step The step of value for each member in the elements.
526 * The name field of \a id must be set with unique value to identify new control
530 * All of members in the new elements are locked. The value of each member is
531 * initialized with the minimum value.
538 * <dd>Some arguments include invalid value; i.e. ID field in \a info has no
566 info->value.integer.min = min;
567 info->value.integer.max = max;
568 info->value.integer.step = step;
575 /* Set initial value to all of members in all of added elements. */
581 data.value.integer.value[j] = min;
599 * \param min Minimum value for each member of the elements.
600 * \param max Maximum value for each member of the elements.
601 * \param step The step of value for each member in the elements.
608 * The name field of \a id must be set with unique value to identify new control
612 * All of members in the new elements are locked. The value of each member is
613 * initialized with the minimum value.
620 * <dd>Some arguments include invalid value; i.e. ID has no name, or the number
648 info->value.integer64.min = min;
649 info->value.integer64.max = max;
650 info->value.integer64.step = step;
657 /* Set initial value to all of members in all of added elements. */
663 data.value.integer64.value[j] = min;
686 * The name field of \a id must be set with unique value to identify new control
690 * All of members in the new elements are locked. The value of each member is
698 * <dd>Some parameters include invalid value; i.e. ID has no name, or the number
719 info->value.integer.min = 0;
720 info->value.integer.max = 1;
741 * The name field of \a id must be set with unique value to identify new control
745 * All of members in the new elements are locked. The value of each member is
753 * <dd>Some arguments include invalid value; i.e. \a element_count is not
784 info->value.enumerated.items = items;
794 info->value.enumerated.names_ptr = (uintptr_t)buf;
795 info->value.enumerated.names_length = bytes;
823 * The name field of \a id must be set with unique value to identify new control
827 * All of members in the new elements are locked. The value of each member is
828 * initialized with the minimum value.
835 * <dd>Some arguments include invalid value; i.e. ID has no name, or the number
953 * The name field of \a id must be set with unique value to identify a new
999 * \brief Get CTL element value.
1007 * \param data The element value. The ID must be set before calling
1008 * the function, and the actual value will be returned
1020 * \brief Set CTL element value.
1022 * Write new value(s) to the sound card. You must set the ID and the
1023 * value of the element before calling this function.
1028 * \param data The new value.
1031 * \retval >0 on success when value was changed
1078 * tlv[1]: Length. The length of value in units of byte.
1092 * and compare the returned value after ioctl for checking
1110 * \retval >0 on success when value was changed
1115 * tlv[1]: Length. The length of value in units of byte.
1135 * \retval >0 on success when value was changed
1140 * tlv[1]: Length. The length of value in units of byte.
1312 * \brief Set Power State to given SND_CTL_POWER_* value and do the power management
1328 * \param state Destination value
1927 * \retval zero when values are identical, other value on a difference (like strcmp)
1931 * The return value can be used for sorting like qsort(). It gives persistent
1953 * \retval zero when values are identical, other value on a difference (like strcmp)
1961 * The return value can be used for sorting like qsort(). It gives persistent
2646 * \return 0 if all element value changes are notified to subscribed applications, 1 otherwise
2657 * \return 0 if element value is not active, 1 if is active
2668 * \return 0 if element value is currently changeable, 1 if it's locked by another application
2679 * \return 0 if element value is currently changeable, 1 if it's locked by another application
2690 * \return 0 if element value is a system element, 1 if it's a user-created element
2732 * \brief (DEPRECATED) Get info about values passing policy from a CTL element value
2734 * \return 0 if element value need to be passed by contents, 1 if need to be passed with a pointer
2746 * \return value entries count
2755 * \brief Get number of value entries from a CTL element id/info
2757 * \return value entries count
2766 * \brief Get minimum value from a #SND_CTL_ELEM_TYPE_INTEGER CTL element id/info
2768 * \return Minimum value
2774 return obj->value.integer.min;
2778 * \brief Get maximum value from a #SND_CTL_ELEM_TYPE_INTEGER CTL element id/info
2780 * \return Maximum value
2786 return obj->value.integer.max;
2790 * \brief Get value step from a #SND_CTL_ELEM_TYPE_INTEGER CTL element id/info
2798 return obj->value.integer.step;
2802 * \brief Get minimum value from a #SND_CTL_ELEM_TYPE_INTEGER64 CTL element id/info
2804 * \return Minimum value
2810 return obj->value.integer64.min;
2814 * \brief Get maximum value from a #SND_CTL_ELEM_TYPE_INTEGER64 CTL element id/info
2816 * \return Maximum value
2822 return obj->value.integer64.max;
2826 * \brief Get value step from a #SND_CTL_ELEM_TYPE_INTEGER64 CTL element id/info
2834 return obj->value.integer64.step;
2846 return obj->value.enumerated.items;
2857 obj->value.enumerated.item = val;
2869 return obj->value.enumerated.name;
2875 * \return zero value if no dimensions are defined, otherwise positive value with count of dimensions
2904 * \return zero value if no dimension width is defined, otherwise positive value with with of specified dimension
3172 * Allocate space for a value object on the heap. The allocated memory
3214 * \brief Bitwise copy of a snd_ctl_elem_value_t value.
3228 * \param left First value.
3229 * \param right Second value.
3240 * \brief Get the element identifier from the given element value.
3244 * \param obj The element value.
3255 * \brief Get the identifiers 'numid' part from the given element value.
3259 * \param obj The element value.
3269 * \brief Get the identifiers 'interface' part from the given element value.
3273 * \param obj The element value.
3283 * \brief Get the identifiers 'device' part from the given element value.
3287 * \param obj The element value.
3297 * \brief Get the identifiers 'subdevice' part from the given element value.
3301 * \param obj The element value.
3311 * \brief Get the identifiers 'name' part from the given element value.
3315 * \param obj The element value.
3325 * \brief Get the identifiers 'index' part from the given element value.
3329 * \param obj The element value.
3340 * \brief Set the element identifier within the given element value.
3344 * \param obj The element value.
3354 * \brief Set the identifiers 'numid' part within the given element value.
3358 * \param obj The element value.
3368 * \brief Set the identifiers 'interface' part within the given element value.
3372 * \param obj The element value.
3382 * \brief Set the identifiers 'device' part within the given element value.
3386 * \param obj The element value.
3396 * \brief Set the identifiers 'subdevice' part within the given element value.
3400 * \param obj The element value.
3410 * \brief Set the identifiers 'name' part within the given element value.
3414 * \param obj The element value.
3424 * \brief Set the identifiers 'index' part within the given element value.
3428 * \param obj The element value.
3438 * \brief Get an element members value.
3441 * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref
3444 * \param obj The element value object
3446 * \return The members value.
3451 assert(idx < ARRAY_SIZE(obj->value.integer.value));
3452 return obj->value.integer.value[idx];
3456 * \brief Get an element members value.
3459 * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref
3462 * \param obj The element value object.
3464 * \return The members value.
3469 assert(idx < ARRAY_SIZE(obj->value.integer.value));
3470 return obj->value.integer.value[idx];
3474 * \brief Get an element members value.
3477 * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref
3480 * \param obj The element value object.
3482 * \return The members value.
3487 assert(idx < ARRAY_SIZE(obj->value.integer64.value));
3488 return obj->value.integer64.value[idx];
3492 * \brief Get an element members value.
3498 * \param obj The element value object.
3505 assert(idx < ARRAY_SIZE(obj->value.enumerated.item));
3506 return obj->value.enumerated.item[idx];
3510 * \brief Get an element members value.
3513 * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref
3516 * \param obj The element value object.
3518 * \return The members value.
3523 assert(idx < ARRAY_SIZE(obj->value.bytes.data));
3524 return obj->value.bytes.data[idx];
3528 * \brief Set an element members value.
3531 * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control
3534 * \param obj The element value object.
3536 * \param val The new value.
3541 assert(idx < ARRAY_SIZE(obj->value.integer.value));
3542 obj->value.integer.value[idx] = val;
3546 * \brief Set an element members value.
3549 * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control
3552 * \param obj The element value object.
3554 * \param val The new value.
3559 assert(idx < ARRAY_SIZE(obj->value.integer.value));
3560 obj->value.integer.value[idx] = val;
3564 * \brief Set an element members value.
3567 * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control
3570 * \param obj The element value object.
3572 * \param val The new value.
3577 assert(idx < ARRAY_SIZE(obj->value.integer64.value));
3578 obj->value.integer64.value[idx] = val;
3582 * \brief Set an element members value.
3588 * \param obj The element value object.
3595 assert(idx < ARRAY_SIZE(obj->value.enumerated.item));
3596 obj->value.enumerated.item[idx] = val;
3600 * \brief Set an element members value.
3603 * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control
3606 * \param obj The element value object.
3608 * \param val The new value.
3613 assert(idx < ARRAY_SIZE(obj->value.bytes.data));
3614 obj->value.bytes.data[idx] = val;
3626 * \param obj The element value object.
3633 assert(size <= ARRAY_SIZE(obj->value.bytes.data));
3634 memcpy(obj->value.bytes.data, data, size);
3646 * \param obj The element value object.
3652 return obj->value.bytes.data;
3664 * \param obj The element value object.
3670 memcpy(ptr, &obj->value.iec958, sizeof(*ptr));
3682 * \param obj The element value object.
3688 memcpy(&obj->value.iec958, ptr, sizeof(obj->value.iec958));