162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci#ifndef __SOUND_PHASE_H
362306a36Sopenharmony_ci#define __SOUND_PHASE_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci/*
662306a36Sopenharmony_ci *   ALSA driver for ICEnsemble ICE1712 (Envy24)
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci *   Lowlevel functions for Terratec PHASE 22
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci *	Copyright (c) 2005 Misha Zhilin <misha@epiphan.com>
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define PHASE_DEVICE_DESC	"{Terratec,Phase 22},"\
1462306a36Sopenharmony_ci				"{Terratec,Phase 28},"\
1562306a36Sopenharmony_ci				"{Terrasoniq,TS22},"
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define VT1724_SUBDEVICE_PHASE22	0x3b155011
1862306a36Sopenharmony_ci#define VT1724_SUBDEVICE_PHASE28	0x3b154911
1962306a36Sopenharmony_ci#define VT1724_SUBDEVICE_TS22		0x3b157b11
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/* entry point */
2262306a36Sopenharmony_ciextern struct snd_ice1712_card_info snd_vt1724_phase_cards[];
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci/* PHASE28 GPIO bits */
2562306a36Sopenharmony_ci#define PHASE28_SPI_MISO	(1 << 21)
2662306a36Sopenharmony_ci#define PHASE28_WM_RESET	(1 << 20)
2762306a36Sopenharmony_ci#define PHASE28_SPI_CLK		(1 << 19)
2862306a36Sopenharmony_ci#define PHASE28_SPI_MOSI	(1 << 18)
2962306a36Sopenharmony_ci#define PHASE28_WM_RW		(1 << 17)
3062306a36Sopenharmony_ci#define PHASE28_AC97_RESET	(1 << 16)
3162306a36Sopenharmony_ci#define PHASE28_DIGITAL_SEL1	(1 << 15)
3262306a36Sopenharmony_ci#define PHASE28_HP_SEL		(1 << 14)
3362306a36Sopenharmony_ci#define PHASE28_WM_CS		(1 << 12)
3462306a36Sopenharmony_ci#define PHASE28_AC97_COMMIT	(1 << 11)
3562306a36Sopenharmony_ci#define PHASE28_AC97_ADDR	(1 << 10)
3662306a36Sopenharmony_ci#define PHASE28_AC97_DATA_LOW	(1 << 9)
3762306a36Sopenharmony_ci#define PHASE28_AC97_DATA_HIGH	(1 << 8)
3862306a36Sopenharmony_ci#define PHASE28_AC97_DATA_MASK	0xFF
3962306a36Sopenharmony_ci#endif /* __SOUND_PHASE */
40