162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci#ifndef __SOUND_AUREON_H
362306a36Sopenharmony_ci#define __SOUND_AUREON_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci/*
662306a36Sopenharmony_ci *   ALSA driver for VIA VT1724 (Envy24HT)
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci *   Lowlevel functions for Terratec Aureon cards
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci *	Copyright (c) 2003 Takashi Iwai <tiwai@suse.de>
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define  AUREON_DEVICE_DESC 	       "{Terratec,Aureon 5.1 Sky},"\
1462306a36Sopenharmony_ci				       "{Terratec,Aureon 7.1 Space},"\
1562306a36Sopenharmony_ci				       "{Terratec,Aureon 7.1 Universe}," \
1662306a36Sopenharmony_ci					"{AudioTrak,Prodigy 7.1}," \
1762306a36Sopenharmony_ci					"{AudioTrak,Prodigy 7.1 LT},"\
1862306a36Sopenharmony_ci					"{AudioTrak,Prodigy 7.1 XT},"
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define VT1724_SUBDEVICE_AUREON51_SKY	0x3b154711	/* Aureon 5.1 Sky */
2162306a36Sopenharmony_ci#define VT1724_SUBDEVICE_AUREON71_SPACE	0x3b154511	/* Aureon 7.1 Space */
2262306a36Sopenharmony_ci#define VT1724_SUBDEVICE_AUREON71_UNIVERSE	0x3b155311	/* Aureon 7.1 Universe */
2362306a36Sopenharmony_ci#define VT1724_SUBDEVICE_PRODIGY71	0x33495345	/* PRODIGY 7.1 */
2462306a36Sopenharmony_ci#define VT1724_SUBDEVICE_PRODIGY71LT	0x32315441	/* PRODIGY 7.1 LT */
2562306a36Sopenharmony_ci#define VT1724_SUBDEVICE_PRODIGY71XT	0x36315441	/* PRODIGY 7.1 XT*/
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciextern struct snd_ice1712_card_info  snd_vt1724_aureon_cards[];
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci/* GPIO bits */
3062306a36Sopenharmony_ci#define AUREON_CS8415_CS	(1 << 22)
3162306a36Sopenharmony_ci#define AUREON_SPI_MISO		(1 << 21)
3262306a36Sopenharmony_ci#define AUREON_WM_RESET		(1 << 20)
3362306a36Sopenharmony_ci#define AUREON_SPI_CLK		(1 << 19)
3462306a36Sopenharmony_ci#define AUREON_SPI_MOSI		(1 << 18)
3562306a36Sopenharmony_ci#define AUREON_WM_RW		(1 << 17)
3662306a36Sopenharmony_ci#define AUREON_AC97_RESET	(1 << 16)
3762306a36Sopenharmony_ci#define AUREON_DIGITAL_SEL1	(1 << 15)
3862306a36Sopenharmony_ci#define AUREON_HP_SEL		(1 << 14)
3962306a36Sopenharmony_ci#define AUREON_WM_CS		(1 << 12)
4062306a36Sopenharmony_ci#define AUREON_AC97_COMMIT	(1 << 11)
4162306a36Sopenharmony_ci#define AUREON_AC97_ADDR	(1 << 10)
4262306a36Sopenharmony_ci#define AUREON_AC97_DATA_LOW	(1 << 9)
4362306a36Sopenharmony_ci#define AUREON_AC97_DATA_HIGH	(1 << 8)
4462306a36Sopenharmony_ci#define AUREON_AC97_DATA_MASK	0xFF
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci#define PRODIGY_WM_CS		(1 << 8)
4762306a36Sopenharmony_ci#define PRODIGY_SPI_MOSI	(1 << 10)
4862306a36Sopenharmony_ci#define PRODIGY_SPI_CLK		(1 << 9)
4962306a36Sopenharmony_ci#define PRODIGY_HP_SEL		(1 << 5)
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#endif /* __SOUND_AUREON_H */
52