tlv.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation; either version 2 of the License, or
  5. * (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __UAPI_SOUND_TLV_H
  13. #define __UAPI_SOUND_TLV_H
  14. #define SNDRV_CTL_TLVT_CONTAINER 0 /* one level down - group of TLVs */
  15. #define SNDRV_CTL_TLVT_DB_SCALE 1 /* dB scale */
  16. #define SNDRV_CTL_TLVT_DB_LINEAR 2 /* linear volume */
  17. #define SNDRV_CTL_TLVT_DB_RANGE 3 /* dB range container */
  18. #define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */
  19. #define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
  20. /*
  21. * channel-mapping TLV items
  22. * TLV length must match with num_channels
  23. */
  24. #define SNDRV_CTL_TLVT_CHMAP_FIXED 0x101 /* fixed channel position */
  25. #define SNDRV_CTL_TLVT_CHMAP_VAR 0x102 /* channels freely swappable */
  26. #define SNDRV_CTL_TLVT_CHMAP_PAIRED 0x103 /* pair-wise swappable */
  27. #endif