usx2y.h 835 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Tascam US-X2Y USB soundcards
  4. *
  5. * Copyright (c) 2003 by Karsten Wiese <[email protected]>
  6. */
  7. #ifndef __SOUND_USX2Y_COMMON_H
  8. #define __SOUND_USX2Y_COMMON_H
  9. #define USX2Y_DRIVER_VERSION 0x0100 /* 0.1.0 */
  10. /* hwdep id string */
  11. #define SND_USX2Y_LOADER_ID "USX2Y Loader"
  12. #define SND_USX2Y_USBPCM_ID "USX2Y USBPCM"
  13. /* hardware type */
  14. enum {
  15. USX2Y_TYPE_122,
  16. USX2Y_TYPE_224,
  17. USX2Y_TYPE_428,
  18. USX2Y_TYPE_NUMS
  19. };
  20. #define USB_ID_US122 0x8007
  21. #define USB_ID_US224 0x8005
  22. #define USB_ID_US428 0x8001
  23. /* chip status */
  24. enum {
  25. USX2Y_STAT_CHIP_INIT = (1 << 0), /* all operational */
  26. USX2Y_STAT_CHIP_MMAP_PCM_URBS = (1 << 1), /* pcm transport over mmaped urbs */
  27. USX2Y_STAT_CHIP_HUP = (1 << 31), /* all operational */
  28. };
  29. #endif /* __SOUND_USX2Y_COMMON_H */