aureon.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __SOUND_AUREON_H
  2. #define __SOUND_AUREON_H
  3. /*
  4. * ALSA driver for VIA VT1724 (Envy24HT)
  5. *
  6. * Lowlevel functions for Terratec Aureon cards
  7. *
  8. * Copyright (c) 2003 Takashi Iwai <tiwai@suse.de>
  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 AUREON_DEVICE_DESC "{Terratec,Aureon 5.1 Sky},"\
  26. "{Terratec,Aureon 7.1 Space},"\
  27. "{Terratec,Aureon 7.1 Universe}," \
  28. "{AudioTrak,Prodigy 7.1}," \
  29. "{AudioTrak,Prodigy 7.1 LT},"\
  30. "{AudioTrak,Prodigy 7.1 XT},"
  31. #define VT1724_SUBDEVICE_AUREON51_SKY 0x3b154711 /* Aureon 5.1 Sky */
  32. #define VT1724_SUBDEVICE_AUREON71_SPACE 0x3b154511 /* Aureon 7.1 Space */
  33. #define VT1724_SUBDEVICE_AUREON71_UNIVERSE 0x3b155311 /* Aureon 7.1 Universe */
  34. #define VT1724_SUBDEVICE_PRODIGY71 0x33495345 /* PRODIGY 7.1 */
  35. #define VT1724_SUBDEVICE_PRODIGY71LT 0x32315441 /* PRODIGY 7.1 LT */
  36. #define VT1724_SUBDEVICE_PRODIGY71XT 0x36315441 /* PRODIGY 7.1 XT*/
  37. extern struct snd_ice1712_card_info snd_vt1724_aureon_cards[];
  38. /* GPIO bits */
  39. #define AUREON_CS8415_CS (1 << 22)
  40. #define AUREON_SPI_MISO (1 << 21)
  41. #define AUREON_WM_RESET (1 << 20)
  42. #define AUREON_SPI_CLK (1 << 19)
  43. #define AUREON_SPI_MOSI (1 << 18)
  44. #define AUREON_WM_RW (1 << 17)
  45. #define AUREON_AC97_RESET (1 << 16)
  46. #define AUREON_DIGITAL_SEL1 (1 << 15)
  47. #define AUREON_HP_SEL (1 << 14)
  48. #define AUREON_WM_CS (1 << 12)
  49. #define AUREON_AC97_COMMIT (1 << 11)
  50. #define AUREON_AC97_ADDR (1 << 10)
  51. #define AUREON_AC97_DATA_LOW (1 << 9)
  52. #define AUREON_AC97_DATA_HIGH (1 << 8)
  53. #define AUREON_AC97_DATA_MASK 0xFF
  54. #define PRODIGY_WM_CS (1 << 8)
  55. #define PRODIGY_SPI_MOSI (1 << 10)
  56. #define PRODIGY_SPI_CLK (1 << 9)
  57. #define PRODIGY_HP_SEL (1 << 5)
  58. #endif /* __SOUND_AUREON_H */