1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef XONAR_H_INCLUDED
3 #define XONAR_H_INCLUDED
8 unsigned int anti_pop_delay;
20 /* generic helper functions */
22 void xonar_enable_output(struct oxygen *chip);
23 void xonar_disable_output(struct oxygen *chip);
24 void xonar_init_ext_power(struct oxygen *chip);
25 void xonar_init_cs53x1(struct oxygen *chip);
26 void xonar_set_cs53x1_params(struct oxygen *chip,
27 struct snd_pcm_hw_params *params);
29 #define XONAR_GPIO_BIT_INVERT (1 << 16)
30 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl,
31 struct snd_ctl_elem_value *value);
32 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl,
33 struct snd_ctl_elem_value *value);
35 /* model-specific card drivers */
37 int get_xonar_pcm179x_model(struct oxygen *chip,
38 const struct pci_device_id *id);
39 int get_xonar_cs43xx_model(struct oxygen *chip,
40 const struct pci_device_id *id);
41 int get_xonar_wm87x6_model(struct oxygen *chip,
42 const struct pci_device_id *id);
44 /* HDMI helper functions */
46 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *data);
47 void xonar_hdmi_cleanup(struct oxygen *chip);
48 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi);
49 void xonar_hdmi_pcm_hardware_filter(unsigned int channel,
50 struct snd_pcm_hardware *hardware);
51 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi,
52 struct snd_pcm_hw_params *params);
53 void xonar_hdmi_uart_input(struct oxygen *chip);