linux/sound/pci/oxygen/xonar_dg.h

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

#include "oxygen.h"

#define GPIO_MAGIC
#define GPIO_HP_DETECT
#define GPIO_INPUT_ROUTE
#define GPIO_HP_REAR
#define GPIO_OUTPUT_ENABLE

#define CAPTURE_SRC_MIC
#define CAPTURE_SRC_FP_MIC
#define CAPTURE_SRC_LINE
#define CAPTURE_SRC_AUX

#define PLAYBACK_DST_HP
#define PLAYBACK_DST_HP_FP
#define PLAYBACK_DST_MULTICH

enum cs4245_shadow_operation {};

struct dg {};

/* Xonar DG control routines */
int cs4245_write_spi(struct oxygen *chip, u8 reg);
int cs4245_read_spi(struct oxygen *chip, u8 reg);
int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op);
void dg_init(struct oxygen *chip);
void set_cs4245_dac_params(struct oxygen *chip,
				  struct snd_pcm_hw_params *params);
void set_cs4245_adc_params(struct oxygen *chip,
				  struct snd_pcm_hw_params *params);
unsigned int adjust_dg_dac_routing(struct oxygen *chip,
					  unsigned int play_routing);
void dump_cs4245_registers(struct oxygen *chip,
				struct snd_info_buffer *buffer);
void dg_suspend(struct oxygen *chip);
void dg_resume(struct oxygen *chip);
void dg_cleanup(struct oxygen *chip);

extern const struct oxygen_model model_xonar_dg;

#endif