Lines Matching +full:max +full:- +full:by +full:- +full:define

1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
4 #define __UAPI_SOUND_TLV_H
6 #define SNDRV_CTL_TLVT_CONTAINER 0 /* one level down - group of TLVs */
7 #define SNDRV_CTL_TLVT_DB_SCALE 1 /* dB scale */
8 #define SNDRV_CTL_TLVT_DB_LINEAR 2 /* linear volume */
9 #define SNDRV_CTL_TLVT_DB_RANGE 3 /* dB range container */
10 #define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */
11 #define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
14 * channel-mapping TLV items
17 #define SNDRV_CTL_TLVT_CHMAP_FIXED 0x101 /* fixed channel position */
18 #define SNDRV_CTL_TLVT_CHMAP_VAR 0x102 /* channels freely swappable */
19 #define SNDRV_CTL_TLVT_CHMAP_PAIRED 0x103 /* pair-wise swappable */
23 * unsigned int type - see SNDRV_CTL_TLVT_*
26 * block_length = (length + (sizeof(unsigned int) - 1)) &
27 * ~(sizeof(unsigned int) - 1)) ....
29 #define SNDRV_CTL_TLVD_ITEM(type, ...) \
31 #define SNDRV_CTL_TLVD_LENGTH(...) \
35 #define SNDRV_CTL_TLVO_TYPE 0
36 #define SNDRV_CTL_TLVO_LEN 1
38 #define SNDRV_CTL_TLVD_CONTAINER_ITEM(...) \
40 #define SNDRV_CTL_TLVD_DECLARE_CONTAINER(name, ...) \
45 #define SNDRV_CTL_TLVD_DB_SCALE_MASK 0xffff
46 #define SNDRV_CTL_TLVD_DB_SCALE_MUTE 0x10000
47 #define SNDRV_CTL_TLVD_DB_SCALE_ITEM(min, step, mute) \
52 #define SNDRV_CTL_TLVD_DECLARE_DB_SCALE(name, min, step, mute) \
58 #define SNDRV_CTL_TLVO_DB_SCALE_MIN 2
59 #define SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP 3
61 /* dB scale specified with min/max values instead of step */
62 #define SNDRV_CTL_TLVD_DB_MINMAX_ITEM(min_dB, max_dB) \
64 #define SNDRV_CTL_TLVD_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) \
66 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(name, min_dB, max_dB) \
70 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX_MUTE(name, min_dB, max_dB) \
75 /* Accessor offsets for min, max items in db-minmax types of TLV. */
76 #define SNDRV_CTL_TLVO_DB_MINMAX_MIN 2
77 #define SNDRV_CTL_TLVO_DB_MINMAX_MAX 3
80 #define SNDRV_CTL_TLVD_DB_LINEAR_ITEM(min_dB, max_dB) \
82 #define SNDRV_CTL_TLVD_DECLARE_DB_LINEAR(name, min_dB, max_dB) \
87 /* Accessor offsets for min, max items in db-linear type of TLV. */
88 #define SNDRV_CTL_TLVO_DB_LINEAR_MIN 2
89 #define SNDRV_CTL_TLVO_DB_LINEAR_MAX 3
92 * Items in dB range container must be ordered by their values and by their
96 /* Each item is: <min> <max> <TLV> */
97 #define SNDRV_CTL_TLVD_DB_RANGE_ITEM(...) \
99 #define SNDRV_CTL_TLVD_DECLARE_DB_RANGE(name, ...) \
104 #define SNDRV_CTL_TLVD_DB_GAIN_MUTE -9999999