18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci#ifndef __SOUND_AMP_H 38c2ecf20Sopenharmony_ci#define __SOUND_AMP_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * ALSA driver for VIA VT1724 (Envy24HT) 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Lowlevel functions for Advanced Micro Peripherals Ltd AUDIO2000 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz> 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define AMP_AUDIO2000_DEVICE_DESC "{AMP Ltd,AUDIO2000},"\ 148c2ecf20Sopenharmony_ci "{Chaintech,AV-710}," 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#if 0 178c2ecf20Sopenharmony_ci#define VT1724_SUBDEVICE_AUDIO2000 0x12142417 /* Advanced Micro Peripherals Ltd AUDIO2000 */ 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci#define VT1724_SUBDEVICE_AUDIO2000 0x00030003 /* a dummy ID for AMP Audio2000 */ 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci#define VT1724_SUBDEVICE_AV710 0x12142417 /* AV710 - the same ID with Audio2000! */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* WM8728 on I2C for AV710 */ 248c2ecf20Sopenharmony_ci#define WM_DEV 0x36 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#define WM_ATTEN_L 0x00 278c2ecf20Sopenharmony_ci#define WM_ATTEN_R 0x01 288c2ecf20Sopenharmony_ci#define WM_DAC_CTRL 0x02 298c2ecf20Sopenharmony_ci#define WM_INT_CTRL 0x03 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciextern struct snd_ice1712_card_info snd_vt1724_amp_cards[]; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* __SOUND_AMP_H */ 35