linux/sound/pci/ice1712/wm8766.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __SOUND_WM8766_H
#define __SOUND_WM8766_H

/*
 *   ALSA driver for ICEnsemble VT17xx
 *
 *   Lowlevel functions for WM8766 codec
 *
 *	Copyright (c) 2012 Ondrej Zary <[email protected]>
 */

#define WM8766_REG_DACL1
#define WM8766_REG_DACR1
#define WM8766_VOL_MASK
#define WM8766_VOL_UPDATE
#define WM8766_REG_DACCTRL1
#define WM8766_DAC_MUTEALL
#define WM8766_DAC_DEEMPALL
#define WM8766_DAC_PDWN
#define WM8766_DAC_ATC
#define WM8766_DAC_IZD
#define WM8766_DAC_PL_MASK
#define WM8766_DAC_PL_LL
#define WM8766_DAC_PL_LR
#define WM8766_DAC_PL_LB
#define WM8766_DAC_PL_RL
#define WM8766_DAC_PL_RR
#define WM8766_DAC_PL_RB
#define WM8766_REG_IFCTRL
#define WM8766_IF_FMT_RIGHTJ
#define WM8766_IF_FMT_LEFTJ
#define WM8766_IF_FMT_I2S
#define WM8766_IF_FMT_DSP
#define WM8766_IF_DSP_LATE
#define WM8766_IF_LRC_INVERTED
#define WM8766_IF_BCLK_INVERTED
#define WM8766_IF_IWL_16BIT
#define WM8766_IF_IWL_20BIT
#define WM8766_IF_IWL_24BIT
#define WM8766_IF_IWL_32BIT
#define WM8766_IF_MASK
#define WM8766_PHASE_INVERT1
#define WM8766_PHASE_INVERT2
#define WM8766_PHASE_INVERT3
#define WM8766_REG_DACL2
#define WM8766_REG_DACR2
#define WM8766_REG_DACL3
#define WM8766_REG_DACR3
#define WM8766_REG_MASTDA
#define WM8766_REG_DACCTRL2
#define WM8766_DAC2_ZCD
#define WM8766_DAC2_ZFLAG_ALL
#define WM8766_DAC2_ZFLAG_1
#define WM8766_DAC2_ZFLAG_2
#define WM8766_DAC2_ZFLAG_3
#define WM8766_DAC2_MUTE1
#define WM8766_DAC2_MUTE2
#define WM8766_DAC2_MUTE3
#define WM8766_DAC2_DEEMP1
#define WM8766_DAC2_DEEMP2
#define WM8766_DAC2_DEEMP3
#define WM8766_REG_DACCTRL3
#define WM8766_DAC3_DACPD1
#define WM8766_DAC3_DACPD2
#define WM8766_DAC3_DACPD3
#define WM8766_DAC3_PWRDNALL
#define WM8766_DAC3_POWER_MASK
#define WM8766_DAC3_MASTER
#define WM8766_DAC3_DAC128FS
#define WM8766_DAC3_DAC192FS
#define WM8766_DAC3_DAC256FS
#define WM8766_DAC3_DAC384FS
#define WM8766_DAC3_DAC512FS
#define WM8766_DAC3_DAC768FS
#define WM8766_DAC3_MSTR_MASK
#define WM8766_REG_MUTE1
#define WM8766_MUTE1_MPD
#define WM8766_REG_MUTE2
#define WM8766_MUTE2_MPD
#define WM8766_REG_RESET

#define WM8766_REG_COUNT

struct snd_wm8766;

struct snd_wm8766_ops {};

enum snd_wm8766_ctl_id {};

#define WM8766_ENUM_MAX

#define WM8766_FLAG_STEREO
#define WM8766_FLAG_VOL_UPDATE
#define WM8766_FLAG_INVERT
#define WM8766_FLAG_LIM
#define WM8766_FLAG_ALC

struct snd_wm8766_ctl {};

enum snd_wm8766_agc_mode {};

struct snd_wm8766 {};



void snd_wm8766_init(struct snd_wm8766 *wm);
void snd_wm8766_resume(struct snd_wm8766 *wm);
void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac);
void snd_wm8766_volume_restore(struct snd_wm8766 *wm);
int snd_wm8766_build_controls(struct snd_wm8766 *wm);

#endif /* __SOUND_WM8766_H */