/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> * Driver p17v chips
*/
/******************************************************************************/ /* Audigy2Value Tina (P17V) pointer-offset register set, */ /* accessed through the PTR2 and DATA2 registers */ /******************************************************************************/
/* 00 - 07: Not used */ #define P17V_PLAYBACK_FIFO_PTR 0x08 /* Current playback fifo pointer * and number of sound samples in cache.
*/ /* 09 - 12: Not used */ #define P17V_CAPTURE_FIFO_PTR 0x13 /* Current capture fifo pointer * and number of sound samples in cache.
*/ /* 14 - 17: Not used */ #define P17V_PB_CHN_SEL 0x18 /* P17v playback channel select */ #define P17V_SE_SLOT_SEL_L 0x19 /* Sound Engine slot select low */ #define P17V_SE_SLOT_SEL_H 0x1a /* Sound Engine slot select high */ /* 1b - 1f: Not used */ /* 20 - 2f: Not used */ /* 30 - 3b: Not used */ #define P17V_SPI 0x3c /* SPI interface register */ #define P17V_I2C_ADDR 0x3d /* I2C Address */ #define P17V_I2C_0 0x3e /* I2C Data */ #define P17V_I2C_1 0x3f /* I2C Data */ /* I2C values */ #define I2C_A_ADC_ADD_MASK 0x000000fe /*The address is a 7 bit address */ #define I2C_A_ADC_RW_MASK 0x00000001 /*bit mask for R/W */ #define I2C_A_ADC_TRANS_MASK 0x00000010 /*Bit mask for I2c address DAC value */ #define I2C_A_ADC_ABORT_MASK 0x00000020 /*Bit mask for I2C transaction abort flag */ #define I2C_A_ADC_LAST_MASK 0x00000040 /*Bit mask for Last word transaction */ #define I2C_A_ADC_BYTE_MASK 0x00000080 /*Bit mask for Byte Mode */
#define I2C_A_ADC_ADD 0x00000034 /*This is the Device address for ADC */ #define I2C_A_ADC_READ 0x00000001 /*To perform a read operation */ #define I2C_A_ADC_START 0x00000100 /*Start I2C transaction */ #define I2C_A_ADC_ABORT 0x00000200 /*I2C transaction abort */ #define I2C_A_ADC_LAST 0x00000400 /*I2C last transaction */ #define I2C_A_ADC_BYTE 0x00000800 /*I2C one byte mode */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.