• Home
  • Raw
  • Download

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

1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
4 * it under the terms of the GNU General Public License as published by
15 #define __UAPI_SOUND_TLV_H
17 #define SNDRV_CTL_TLVT_CONTAINER 0 /* one level down - group of TLVs */
18 #define SNDRV_CTL_TLVT_DB_SCALE 1 /* dB scale */
19 #define SNDRV_CTL_TLVT_DB_LINEAR 2 /* linear volume */
20 #define SNDRV_CTL_TLVT_DB_RANGE 3 /* dB range container */
21 #define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */
22 #define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
25 * channel-mapping TLV items
28 #define SNDRV_CTL_TLVT_CHMAP_FIXED 0x101 /* fixed channel position */
29 #define SNDRV_CTL_TLVT_CHMAP_VAR 0x102 /* channels freely swappable */
30 #define SNDRV_CTL_TLVT_CHMAP_PAIRED 0x103 /* pair-wise swappable */
34 * unsigned int type - see SNDRV_CTL_TLVT_*
37 * block_length = (length + (sizeof(unsigned int) - 1)) &
38 * ~(sizeof(unsigned int) - 1)) ....
40 #define SNDRV_CTL_TLVD_ITEM(type, ...) \
42 #define SNDRV_CTL_TLVD_LENGTH(...) \
46 #define SNDRV_CTL_TLVO_TYPE 0
47 #define SNDRV_CTL_TLVO_LEN 1
49 #define SNDRV_CTL_TLVD_CONTAINER_ITEM(...) \
51 #define SNDRV_CTL_TLVD_DECLARE_CONTAINER(name, ...) \
56 #define SNDRV_CTL_TLVD_DB_SCALE_MASK 0xffff
57 #define SNDRV_CTL_TLVD_DB_SCALE_MUTE 0x10000
58 #define SNDRV_CTL_TLVD_DB_SCALE_ITEM(min, step, mute) \
63 #define SNDRV_CTL_TLVD_DECLARE_DB_SCALE(name, min, step, mute) \
69 #define SNDRV_CTL_TLVO_DB_SCALE_MIN 2
70 #define SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP 3
72 /* dB scale specified with min/max values instead of step */
73 #define SNDRV_CTL_TLVD_DB_MINMAX_ITEM(min_dB, max_dB) \
75 #define SNDRV_CTL_TLVD_DB_MINMAX_MUTE_ITEM(min_dB, max_dB) \
77 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(name, min_dB, max_dB) \
81 #define SNDRV_CTL_TLVD_DECLARE_DB_MINMAX_MUTE(name, min_dB, max_dB) \
86 /* Accessor offsets for min, max items in db-minmax types of TLV. */
87 #define SNDRV_CTL_TLVO_DB_MINMAX_MIN 2
88 #define SNDRV_CTL_TLVO_DB_MINMAX_MAX 3
91 #define SNDRV_CTL_TLVD_DB_LINEAR_ITEM(min_dB, max_dB) \
93 #define SNDRV_CTL_TLVD_DECLARE_DB_LINEAR(name, min_dB, max_dB) \
98 /* Accessor offsets for min, max items in db-linear type of TLV. */
99 #define SNDRV_CTL_TLVO_DB_LINEAR_MIN 2
100 #define SNDRV_CTL_TLVO_DB_LINEAR_MAX 3
103 * Items in dB range container must be ordered by their values and by their
107 /* Each item is: <min> <max> <TLV> */
108 #define SNDRV_CTL_TLVD_DB_RANGE_ITEM(...) \
110 #define SNDRV_CTL_TLVD_DECLARE_DB_RANGE(name, ...) \
115 #define SNDRV_CTL_TLVD_DB_GAIN_MUTE -9999999