Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git] / sound / pci / oxygen / xonar.h
blob0434c207e811a00e51b4c465617e7e299defbb9a
1 #ifndef XONAR_H_INCLUDED
2 #define XONAR_H_INCLUDED
4 #include "oxygen.h"
6 struct xonar_generic {
7 unsigned int anti_pop_delay;
8 u16 output_enable_bit;
9 u8 ext_power_reg;
10 u8 ext_power_int_reg;
11 u8 ext_power_bit;
12 u8 has_power;
15 struct xonar_hdmi {
16 u8 params[5];
19 /* generic helper functions */
21 void xonar_enable_output(struct oxygen *chip);
22 void xonar_disable_output(struct oxygen *chip);
23 void xonar_init_ext_power(struct oxygen *chip);
24 void xonar_init_cs53x1(struct oxygen *chip);
25 void xonar_set_cs53x1_params(struct oxygen *chip,
26 struct snd_pcm_hw_params *params);
28 #define XONAR_GPIO_BIT_INVERT (1 << 16)
29 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl,
30 struct snd_ctl_elem_value *value);
31 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl,
32 struct snd_ctl_elem_value *value);
34 /* model-specific card drivers */
36 int get_xonar_pcm179x_model(struct oxygen *chip,
37 const struct pci_device_id *id);
38 int get_xonar_cs43xx_model(struct oxygen *chip,
39 const struct pci_device_id *id);
40 int get_xonar_wm87x6_model(struct oxygen *chip,
41 const struct pci_device_id *id);
43 /* HDMI helper functions */
45 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *data);
46 void xonar_hdmi_cleanup(struct oxygen *chip);
47 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi);
48 void xonar_hdmi_pcm_hardware_filter(unsigned int channel,
49 struct snd_pcm_hardware *hardware);
50 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi,
51 struct snd_pcm_hw_params *params);
52 void xonar_hdmi_uart_input(struct oxygen *chip);
54 #endif