#ifndef __SOUND_PHASE_H1#define __SOUND_PHASE_H23/*4* ALSA driver for ICEnsemble ICE1712 (Envy24)5*6* Lowlevel functions for Terratec PHASE 227*8* Copyright (c) 2005 Misha Zhilin <[email protected]>9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of the GNU General Public License as published by12* the Free Software Foundation; either version 2 of the License, or13* (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 of17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18* GNU General Public License for more details.19*20* You should have received a copy of the GNU General Public License21* along with this program; if not, write to the Free Software22* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA23*24*/2526#define PHASE_DEVICE_DESC "{Terratec,Phase 22},"\27"{Terratec,Phase 28},"\28"{Terrasoniq,TS22},"2930#define VT1724_SUBDEVICE_PHASE22 0x3b15501131#define VT1724_SUBDEVICE_PHASE28 0x3b15491132#define VT1724_SUBDEVICE_TS22 0x3b157b113334/* entry point */35extern struct snd_ice1712_card_info snd_vt1724_phase_cards[];3637/* PHASE28 GPIO bits */38#define PHASE28_SPI_MISO (1 << 21)39#define PHASE28_WM_RESET (1 << 20)40#define PHASE28_SPI_CLK (1 << 19)41#define PHASE28_SPI_MOSI (1 << 18)42#define PHASE28_WM_RW (1 << 17)43#define PHASE28_AC97_RESET (1 << 16)44#define PHASE28_DIGITAL_SEL1 (1 << 15)45#define PHASE28_HP_SEL (1 << 14)46#define PHASE28_WM_CS (1 << 12)47#define PHASE28_AC97_COMMIT (1 << 11)48#define PHASE28_AC97_ADDR (1 << 10)49#define PHASE28_AC97_DATA_LOW (1 << 9)50#define PHASE28_AC97_DATA_HIGH (1 << 8)51#define PHASE28_AC97_DATA_MASK 0xFF52#endif /* __SOUND_PHASE */535455