Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef __SOUND_PHASE_H
0003 #define __SOUND_PHASE_H
0004 
0005 /*
0006  *   ALSA driver for ICEnsemble ICE1712 (Envy24)
0007  *
0008  *   Lowlevel functions for Terratec PHASE 22
0009  *
0010  *  Copyright (c) 2005 Misha Zhilin <misha@epiphan.com>
0011  */
0012 
0013 #define PHASE_DEVICE_DESC   "{Terratec,Phase 22},"\
0014                 "{Terratec,Phase 28},"\
0015                 "{Terrasoniq,TS22},"
0016 
0017 #define VT1724_SUBDEVICE_PHASE22    0x3b155011
0018 #define VT1724_SUBDEVICE_PHASE28    0x3b154911
0019 #define VT1724_SUBDEVICE_TS22       0x3b157b11
0020 
0021 /* entry point */
0022 extern struct snd_ice1712_card_info snd_vt1724_phase_cards[];
0023 
0024 /* PHASE28 GPIO bits */
0025 #define PHASE28_SPI_MISO    (1 << 21)
0026 #define PHASE28_WM_RESET    (1 << 20)
0027 #define PHASE28_SPI_CLK     (1 << 19)
0028 #define PHASE28_SPI_MOSI    (1 << 18)
0029 #define PHASE28_WM_RW       (1 << 17)
0030 #define PHASE28_AC97_RESET  (1 << 16)
0031 #define PHASE28_DIGITAL_SEL1    (1 << 15)
0032 #define PHASE28_HP_SEL      (1 << 14)
0033 #define PHASE28_WM_CS       (1 << 12)
0034 #define PHASE28_AC97_COMMIT (1 << 11)
0035 #define PHASE28_AC97_ADDR   (1 << 10)
0036 #define PHASE28_AC97_DATA_LOW   (1 << 9)
0037 #define PHASE28_AC97_DATA_HIGH  (1 << 8)
0038 #define PHASE28_AC97_DATA_MASK  0xFF
0039 #endif /* __SOUND_PHASE */