phase.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef __SOUND_PHASE_H
  2. #define __SOUND_PHASE_H
  3. /*
  4. * ALSA driver for ICEnsemble ICE1712 (Envy24)
  5. *
  6. * Lowlevel functions for Terratec PHASE 22
  7. *
  8. * Copyright (c) 2005 Misha Zhilin <misha@epiphan.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. *
  24. */
  25. #define PHASE_DEVICE_DESC "{Terratec,Phase 22},"\
  26. "{Terratec,Phase 28},"\
  27. "{Terrasoniq,TS22},"
  28. #define VT1724_SUBDEVICE_PHASE22 0x3b155011
  29. #define VT1724_SUBDEVICE_PHASE28 0x3b154911
  30. #define VT1724_SUBDEVICE_TS22 0x3b157b11
  31. /* entry point */
  32. extern struct snd_ice1712_card_info snd_vt1724_phase_cards[];
  33. /* PHASE28 GPIO bits */
  34. #define PHASE28_SPI_MISO (1 << 21)
  35. #define PHASE28_WM_RESET (1 << 20)
  36. #define PHASE28_SPI_CLK (1 << 19)
  37. #define PHASE28_SPI_MOSI (1 << 18)
  38. #define PHASE28_WM_RW (1 << 17)
  39. #define PHASE28_AC97_RESET (1 << 16)
  40. #define PHASE28_DIGITAL_SEL1 (1 << 15)
  41. #define PHASE28_HP_SEL (1 << 14)
  42. #define PHASE28_WM_CS (1 << 12)
  43. #define PHASE28_AC97_COMMIT (1 << 11)
  44. #define PHASE28_AC97_ADDR (1 << 10)
  45. #define PHASE28_AC97_DATA_LOW (1 << 9)
  46. #define PHASE28_AC97_DATA_HIGH (1 << 8)
  47. #define PHASE28_AC97_DATA_MASK 0xFF
  48. #endif /* __SOUND_PHASE */