phase.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef __SOUND_PHASE_H
  3. #define __SOUND_PHASE_H
  4. /*
  5. * ALSA driver for ICEnsemble ICE1712 (Envy24)
  6. *
  7. * Lowlevel functions for Terratec PHASE 22
  8. *
  9. * Copyright (c) 2005 Misha Zhilin <[email protected]>
  10. */
  11. #define PHASE_DEVICE_DESC "{Terratec,Phase 22},"\
  12. "{Terratec,Phase 28},"\
  13. "{Terrasoniq,TS22},"
  14. #define VT1724_SUBDEVICE_PHASE22 0x3b155011
  15. #define VT1724_SUBDEVICE_PHASE28 0x3b154911
  16. #define VT1724_SUBDEVICE_TS22 0x3b157b11
  17. /* entry point */
  18. extern struct snd_ice1712_card_info snd_vt1724_phase_cards[];
  19. /* PHASE28 GPIO bits */
  20. #define PHASE28_SPI_MISO (1 << 21)
  21. #define PHASE28_WM_RESET (1 << 20)
  22. #define PHASE28_SPI_CLK (1 << 19)
  23. #define PHASE28_SPI_MOSI (1 << 18)
  24. #define PHASE28_WM_RW (1 << 17)
  25. #define PHASE28_AC97_RESET (1 << 16)
  26. #define PHASE28_DIGITAL_SEL1 (1 << 15)
  27. #define PHASE28_HP_SEL (1 << 14)
  28. #define PHASE28_WM_CS (1 << 12)
  29. #define PHASE28_AC97_COMMIT (1 << 11)
  30. #define PHASE28_AC97_ADDR (1 << 10)
  31. #define PHASE28_AC97_DATA_LOW (1 << 9)
  32. #define PHASE28_AC97_DATA_HIGH (1 << 8)
  33. #define PHASE28_AC97_DATA_MASK 0xFF
  34. #endif /* __SOUND_PHASE */