ews.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #ifndef __SOUND_EWS_H
  2. #define __SOUND_EWS_H
  3. /*
  4. * ALSA driver for ICEnsemble ICE1712 (Envy24)
  5. *
  6. * Lowlevel functions for Terratec EWS88MT/D, EWX24/96, DMX 6Fire
  7. *
  8. * Copyright (c) 2000 Jaroslav Kysela <perex@suse.cz>
  9. * 2002 Takashi Iwai <tiwai@suse.de>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24. *
  25. */
  26. #define EWS_DEVICE_DESC \
  27. "{TerraTec,EWX 24/96},"\
  28. "{TerraTec,EWS 88MT},"\
  29. "{TerraTec,EWS 88D},"\
  30. "{TerraTec,DMX 6Fire},"\
  31. "{TerraTec,Phase 88},"
  32. #define ICE1712_SUBDEVICE_EWX2496 0x3b153011
  33. #define ICE1712_SUBDEVICE_EWS88MT 0x3b151511
  34. #define ICE1712_SUBDEVICE_EWS88MT_NEW 0x3b152511
  35. #define ICE1712_SUBDEVICE_EWS88D 0x3b152b11
  36. #define ICE1712_SUBDEVICE_DMX6FIRE 0x3b153811
  37. #define ICE1712_SUBDEVICE_PHASE88 0x3b155111
  38. /* entry point */
  39. extern const struct snd_ice1712_card_info snd_ice1712_ews_cards[];
  40. /* TerraTec EWX 24/96 configuration definitions */
  41. #define ICE1712_EWX2496_AK4524_CS 0x01 /* AK4524 chip select; low = active */
  42. #define ICE1712_EWX2496_AIN_SEL 0x02 /* input sensitivity switch; high = louder */
  43. #define ICE1712_EWX2496_AOUT_SEL 0x04 /* output sensitivity switch; high = louder */
  44. #define ICE1712_EWX2496_RW 0x08 /* read/write switch for i2c; high = write */
  45. #define ICE1712_EWX2496_SERIAL_DATA 0x10 /* i2c & ak4524 data */
  46. #define ICE1712_EWX2496_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */
  47. #define ICE1712_EWX2496_TX2 0x40 /* MIDI2 (not used) */
  48. #define ICE1712_EWX2496_RX2 0x80 /* MIDI2 (not used) */
  49. /* TerraTec EWS 88MT/D configuration definitions */
  50. /* RW, SDA snd SCLK are identical with EWX24/96 */
  51. #define ICE1712_EWS88_CS8414_RATE 0x07 /* CS8414 sample rate: gpio 0-2 */
  52. #define ICE1712_EWS88_RW 0x08 /* read/write switch for i2c; high = write */
  53. #define ICE1712_EWS88_SERIAL_DATA 0x10 /* i2c & ak4524 data */
  54. #define ICE1712_EWS88_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */
  55. #define ICE1712_EWS88_TX2 0x40 /* MIDI2 (only on 88D) */
  56. #define ICE1712_EWS88_RX2 0x80 /* MIDI2 (only on 88D) */
  57. /* i2c address */
  58. #define ICE1712_EWS88MT_CS8404_ADDR (0x40>>1)
  59. #define ICE1712_EWS88MT_INPUT_ADDR (0x46>>1)
  60. #define ICE1712_EWS88MT_OUTPUT_ADDR (0x48>>1)
  61. #define ICE1712_EWS88MT_OUTPUT_SENSE 0x40 /* mask */
  62. #define ICE1712_EWS88D_PCF_ADDR (0x40>>1)
  63. /* TerraTec DMX 6Fire configuration definitions */
  64. #define ICE1712_6FIRE_AK4524_CS_MASK 0x07 /* AK4524 chip select #1-#3 */
  65. #define ICE1712_6FIRE_RW 0x08 /* read/write switch for i2c; high = write */
  66. #define ICE1712_6FIRE_SERIAL_DATA 0x10 /* i2c & ak4524 data */
  67. #define ICE1712_6FIRE_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */
  68. #define ICE1712_6FIRE_TX2 0x40 /* MIDI2 */
  69. #define ICE1712_6FIRE_RX2 0x80 /* MIDI2 */
  70. #define ICE1712_6FIRE_PCF9554_ADDR (0x40>>1)
  71. #define ICE1712_6FIRE_CS8427_ADDR (0x22)
  72. #endif /* __SOUND_EWS_H */