linux/include/sound/aci.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ACI_H_
#define _ACI_H_

#define ACI_REG_COMMAND
#define ACI_REG_STATUS
#define ACI_REG_BUSY
#define ACI_REG_RDS
#define ACI_MINTIME

#define ACI_SET_MUTE
#define ACI_SET_POWERAMP
#define ACI_SET_TUNERMUTE
#define ACI_SET_TUNERMONO
#define ACI_SET_IDE
#define ACI_SET_WSS
#define ACI_SET_SOLOMODE
#define ACI_SET_PREAMP
#define ACI_GET_PREAMP
#define ACI_WRITE_TUNE
#define ACI_READ_TUNERSTEREO
#define ACI_READ_TUNERSTATION
#define ACI_READ_VERSION
#define ACI_READ_IDCODE
#define ACI_INIT
#define ACI_STATUS
#define ACI_S_GENERAL
#define ACI_ERROR_OP

/* ACI Mixer */

/* These are the values for the right channel GET registers.
   Add an offset of 0x01 for the left channel register.
   (left=right+0x01) */

#define ACI_GET_MASTER
#define ACI_GET_MIC
#define ACI_GET_LINE
#define ACI_GET_CD
#define ACI_GET_SYNTH
#define ACI_GET_PCM
#define ACI_GET_LINE1
#define ACI_GET_LINE2

#define ACI_GET_EQ1
#define ACI_GET_EQ2
#define ACI_GET_EQ3
#define ACI_GET_EQ4
#define ACI_GET_EQ5
#define ACI_GET_EQ6
#define ACI_GET_EQ7

/* And these are the values for the right channel SET registers.
   For left channel access you have to add an offset of 0x08.
   MASTER is an exception, which needs an offset of 0x01 */

#define ACI_SET_MASTER
#define ACI_SET_MIC
#define ACI_SET_LINE
#define ACI_SET_CD
#define ACI_SET_SYNTH
#define ACI_SET_PCM
#define ACI_SET_LINE1
#define ACI_SET_LINE2

#define ACI_SET_EQ1
#define ACI_SET_EQ2
#define ACI_SET_EQ3
#define ACI_SET_EQ4
#define ACI_SET_EQ5
#define ACI_SET_EQ6
#define ACI_SET_EQ7

struct snd_miro_aci {};

int snd_aci_cmd(struct snd_miro_aci *aci, int write1, int write2, int write3);

struct snd_miro_aci *snd_aci_get_aci(void);

#endif  /* _ACI_H_ */