11da177e4SLinus Torvalds #ifndef __SOUND_REVO_H 21da177e4SLinus Torvalds #define __SOUND_REVO_H 31da177e4SLinus Torvalds 41da177e4SLinus Torvalds /* 51da177e4SLinus Torvalds * ALSA driver for ICEnsemble ICE1712 (Envy24) 61da177e4SLinus Torvalds * 71da177e4SLinus Torvalds * Lowlevel functions for M-Audio Revolution 7.1 81da177e4SLinus Torvalds * 91da177e4SLinus Torvalds * Copyright (c) 2003 Takashi Iwai <tiwai@suse.de> 101da177e4SLinus Torvalds * 111da177e4SLinus Torvalds * This program is free software; you can redistribute it and/or modify 121da177e4SLinus Torvalds * it under the terms of the GNU General Public License as published by 131da177e4SLinus Torvalds * the Free Software Foundation; either version 2 of the License, or 141da177e4SLinus Torvalds * (at your option) any later version. 151da177e4SLinus Torvalds * 161da177e4SLinus Torvalds * This program is distributed in the hope that it will be useful, 171da177e4SLinus Torvalds * but WITHOUT ANY WARRANTY; without even the implied warranty of 181da177e4SLinus Torvalds * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 191da177e4SLinus Torvalds * GNU General Public License for more details. 201da177e4SLinus Torvalds * 211da177e4SLinus Torvalds * You should have received a copy of the GNU General Public License 221da177e4SLinus Torvalds * along with this program; if not, write to the Free Software 231da177e4SLinus Torvalds * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 241da177e4SLinus Torvalds * 251da177e4SLinus Torvalds */ 261da177e4SLinus Torvalds 271da177e4SLinus Torvalds #define REVO_DEVICE_DESC \ 2859acf76eSTakashi Iwai "{MidiMan M Audio,Revolution 7.1},"\ 2959acf76eSTakashi Iwai "{MidiMan M Audio,Revolution 5.1}," 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds #define VT1724_SUBDEVICE_REVOLUTION71 0x12143036 3259acf76eSTakashi Iwai #define VT1724_SUBDEVICE_REVOLUTION51 0x12143136 331da177e4SLinus Torvalds 341da177e4SLinus Torvalds /* entry point */ 351da177e4SLinus Torvalds extern struct snd_ice1712_card_info snd_vt1724_revo_cards[]; 361da177e4SLinus Torvalds 371da177e4SLinus Torvalds 381da177e4SLinus Torvalds /* 391da177e4SLinus Torvalds * MidiMan M-Audio Revolution GPIO definitions 401da177e4SLinus Torvalds */ 411da177e4SLinus Torvalds 421da177e4SLinus Torvalds #define VT1724_REVO_CCLK 0x02 431da177e4SLinus Torvalds #define VT1724_REVO_CDIN 0x04 /* not used */ 441da177e4SLinus Torvalds #define VT1724_REVO_CDOUT 0x08 45feaa6a74SJochen Voss #define VT1724_REVO_CS0 0x10 /* AK5365 chipselect for (revo51) */ 461da177e4SLinus Torvalds #define VT1724_REVO_CS1 0x20 /* front AKM4381 chipselect */ 47feaa6a74SJochen Voss #define VT1724_REVO_CS2 0x40 /* surround AKM4355 CS (revo71) */ 48feaa6a74SJochen Voss #define VT1724_REVO_I2C_DATA 0x40 /* I2C: PT 2258 SDA (on revo51) */ 49feaa6a74SJochen Voss #define VT1724_REVO_I2C_CLOCK 0x80 /* I2C: PT 2258 SCL (on revo51) */ 501da177e4SLinus Torvalds #define VT1724_REVO_MUTE (1<<22) /* 0 = all mute, 1 = normal operation */ 511da177e4SLinus Torvalds 521da177e4SLinus Torvalds #endif /* __SOUND_REVO_H */ 53