linux/sound/pci/vx222/vx222.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Driver for Digigram VX222 PCI soundcards
 *
 * Copyright (c) 2002 by Takashi Iwai <[email protected]>
 */

#ifndef __VX222_H
#define __VX222_H

#include <sound/vx_core.h>

struct snd_vx222 {};

#define to_vx222(x)

/* we use a lookup table with 148 values, see vx_mixer.c */
#define VX2_AKM_LEVEL_MAX

extern const struct snd_vx_ops vx222_ops;
extern const struct snd_vx_ops vx222_old_ops;

/* Offset of registers with base equal to portDSP. */
#define VX_RESET_DMA_REGISTER_OFFSET

/* Constants used to access the INTCSR register. */
#define VX_INTCSR_VALUE
#define VX_PCI_INTERRUPT_MASK

/* Constants used to access the CDSP register (0x20). */
#define VX_CDSP_TEST1_MASK
#define VX_CDSP_TOR1_MASK
#define VX_CDSP_TOR2_MASK
#define VX_CDSP_RESERVED0_0_MASK
#define VX_CDSP_CODEC_RESET_MASK
#define VX_CDSP_VALID_IRQ_MASK
#define VX_CDSP_TEST0_MASK
#define VX_CDSP_DSP_RESET_MASK

#define VX_CDSP_GPIO_OUT_MASK
#define VX_GPIO_OUT_BIT_OFFSET

/* Constants used to access the CFG register (0x24). */
#define VX_CFG_SYNCDSP_MASK
#define VX_CFG_RESERVED0_0_MASK
#define VX_CFG_RESERVED1_0_MASK
#define VX_CFG_RESERVED2_0_MASK
#define VX_CFG_DATAIN_SEL_MASK
#define VX_CFG_RESERVED3_0_MASK
#define VX_CFG_RESERVED4_0_MASK
#define VX_CFG_CLOCKIN_SEL_MASK

/* Constants used to access the STATUS register (0x30). */
#define VX_STATUS_DATA_XICOR_MASK
#define VX_STATUS_VAL_TEST1_MASK
#define VX_STATUS_VAL_TEST0_MASK
#define VX_STATUS_RESERVED0_MASK
#define VX_STATUS_VAL_TOR1_MASK
#define VX_STATUS_VAL_TOR0_MASK
#define VX_STATUS_LEVEL_IN_MASK
#define VX_STATUS_MEMIRQ_MASK

#define VX_STATUS_GPIO_IN_MASK
#define VX_GPIO_IN_BIT_OFFSET

/* Constants used to access the MICRO INPUT SELECT register (0x40). */
#define MICRO_SELECT_INPUT_NORM
#define MICRO_SELECT_INPUT_MUTE
#define MICRO_SELECT_INPUT_LIMIT
#define MICRO_SELECT_INPUT_MASK

#define MICRO_SELECT_PREAMPLI_G_0
#define MICRO_SELECT_PREAMPLI_G_1
#define MICRO_SELECT_PREAMPLI_G_2
#define MICRO_SELECT_PREAMPLI_G_3
#define MICRO_SELECT_PREAMPLI_MASK
#define MICRO_SELECT_PREAMPLI_OFFSET

#define MICRO_SELECT_RAISE_COMPR

#define MICRO_SELECT_NOISE_T_52DB
#define MICRO_SELECT_NOISE_T_42DB
#define MICRO_SELECT_NOISE_T_32DB
#define MICRO_SELECT_NOISE_T_MASK

#define MICRO_SELECT_PHANTOM_ALIM


#endif /* __VX222_H */