Lines Matching refs:value

55  * Callback to get the value of a double enumerated mixer.
70 ucontrol->value.enumerated.item[0] = item;
74 ucontrol->value.enumerated.item[1] = item;
86 * Callback to set the value of a double enumerated mixer.
95 unsigned int *item = ucontrol->value.enumerated.item;
115 * snd_soc_read_signed - Read a codec register and interpret as signed value
118 * @mask: Mask to use after shifting the register value
119 * @shift: Right shift of register value
121 * @signed_val: Pointer to where the read value should be stored
123 * This functions reads a codec register. The register value is shifted right
127 * Returns 0 on sucess, otherwise an error value
192 uinfo->value.integer.min = 0;
193 uinfo->value.integer.max = platform_max - mc->min;
218 * maximum value, so add the minimum value back on
220 uinfo->value.integer.max += mc->min;
231 * Callback to get the value of a single mixer control, or a double mixer
261 ucontrol->value.integer.value[0] = val - min;
263 ucontrol->value.integer.value[0] =
264 max - ucontrol->value.integer.value[0];
276 ucontrol->value.integer.value[1] = val - min;
278 ucontrol->value.integer.value[1] =
279 max - ucontrol->value.integer.value[1];
291 * Callback to set the value of a single mixer control, or a double mixer
319 val = ucontrol->value.integer.value[0];
332 val2 = ucontrol->value.integer.value[1];
373 * Callback to get the value of a single mixer control, or a double mixer
394 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask;
399 ucontrol->value.integer.value[1] = val;
411 * Callback to set the value of a double mixer control that spans 2 registers.
432 val = ucontrol->value.integer.value[0];
448 val2 = ucontrol->value.integer.value[1];
490 uinfo->value.integer.min = 0;
491 uinfo->value.integer.max = platform_max - min;
498 * snd_soc_put_volsw_range - single mixer put value callback with range.
502 * Callback to set the value, within a range, for a single mixer control.
522 tmp = ucontrol->value.integer.value[0];
531 val = (max - ucontrol->value.integer.value[0]) & mask;
533 val = ((ucontrol->value.integer.value[0] + min) & mask);
543 tmp = ucontrol->value.integer.value[1];
552 val = (max - ucontrol->value.integer.value[1]) & mask;
554 val = ((ucontrol->value.integer.value[1] + min) & mask);
575 * Callback to get the value, within a range, of a single mixer control.
595 ucontrol->value.integer.value[0] = (val >> shift) & mask;
597 ucontrol->value.integer.value[0] =
598 max - ucontrol->value.integer.value[0];
600 ucontrol->value.integer.value[0] =
601 ucontrol->value.integer.value[0] - min;
605 ucontrol->value.integer.value[1] = (val >> shift) & mask;
607 ucontrol->value.integer.value[1] =
608 max - ucontrol->value.integer.value[1];
610 ucontrol->value.integer.value[1] =
611 ucontrol->value.integer.value[1] - min;
672 ucontrol->value.bytes.data,
681 ucontrol->value.bytes.data[0] &= ~params->mask;
684 ((u16 *)(&ucontrol->value.bytes.data))[0]
688 ((u32 *)(&ucontrol->value.bytes.data))[0]
714 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA);
823 * forms a single signed value in a MSB/LSB manner.
834 uinfo->value.integer.min = mc->min;
835 uinfo->value.integer.max = mc->max;
846 * Callback to get the value of a control that can span
848 * signed value in a MSB/LSB manner. The control supports
881 ucontrol->value.integer.value[0] = val;
892 * Callback to set the value of a control that can span
894 * signed value in a MSB/LSB manner. The control supports
913 long val = ucontrol->value.integer.value[0];
940 * Callback get the value of a strobe mixer control.
961 ucontrol->value.enumerated.item[0] = val ^ invert;
987 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0;