Import changeset
[linux-flexiantxendom0-3.2.10.git] / drivers / sound / ad1848.h
1 /*
2  * ad1848.c
3  *
4  * Copyright:   Christoph Hellwig <chhellwig@gmx.net>
5  */
6
7 #define AD_F_CS4231     0x0001  /* Returned if a CS4232 (or compatible) detected */
8 #define AD_F_CS4248     0x0001  /* Returned if a CS4248 (or compatible) detected */
9
10 #define         AD1848_SET_XTAL         1
11 #define         AD1848_MIXER_REROUTE    2
12
13 #define AD1848_REROUTE(oldctl, newctl) \
14                 ad1848_control(AD1848_MIXER_REROUTE, ((oldctl)<<8)|(newctl))
15                 
16
17 int ad1848_init(char *name, int io_base, int irq, int dma_playback,
18         int dma_capture, int share_dma, int *osp, struct module *owner);
19 void ad1848_unload (int io_base, int irq, int dma_playback, int dma_capture, int share_dma);
20
21 int ad1848_detect (int io_base, int *flags, int *osp);
22 int ad1848_control(int cmd, int arg);
23
24 void adintr(int irq, void *dev_id, struct pt_regs * dummy);
25 void attach_ms_sound(struct address_info * hw_config, struct module * owner);
26
27 int probe_ms_sound(struct address_info *hw_config);
28 void unload_ms_sound(struct address_info *hw_info);