Changeset 96
- Timestamp:
- May 6, 2007, 4:25:12 AM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel/include/sound
- Files:
-
- 32 edited
-
ad1816a.h (modified) (3 diffs)
-
ad1848.h (modified) (5 diffs)
-
ainstr_gf1.h (modified) (2 diffs)
-
ainstr_iw.h (modified) (2 diffs)
-
ainstr_simple.h (modified) (2 diffs)
-
asequencer.h (modified) (2 diffs)
-
asound.h (modified) (1 diff)
-
asoundef.h (modified) (3 diffs)
-
compat_22.h (modified) (8 diffs)
-
control.h (modified) (3 diffs)
-
cs4231.h (modified) (3 diffs)
-
emu8000.h (modified) (3 diffs)
-
emu8000_reg.h (modified) (3 diffs)
-
emux_legacy.h (modified) (3 diffs)
-
es1688.h (modified) (3 diffs)
-
gus.h (modified) (7 diffs)
-
hal2.h (modified) (3 diffs)
-
i2c.h (modified) (4 diffs)
-
minors.h (modified) (3 diffs)
-
mixer_oss.h (modified) (3 diffs)
-
pcm_oss.h (modified) (3 diffs)
-
pcm_params.h (modified) (1 diff)
-
sb16_csp.h (modified) (3 diffs)
-
seq_oss.h (modified) (3 diffs)
-
seq_oss_legacy.h (modified) (3 diffs)
-
snd_wavefront.h (modified) (2 diffs)
-
tea6330t.h (modified) (4 diffs)
-
util_mem.h (modified) (3 diffs)
-
version.h.in (modified) (1 diff)
-
wavefront.h (modified) (15 diffs)
-
wavefront_fx.h (modified) (2 diffs)
-
yss225.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ad1816a.h
r32 r96 1 2 #ifndef __AD1816A_H 3 #define __AD1816A_H 1 #ifndef __SOUND_AD1816A_H 2 #define __SOUND_AD1816A_H 4 3 5 4 /* … … 19 18 You should have received a copy of the GNU General Public License 20 19 along with this program; if not, write to the Free Software 21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 21 */ 23 22 … … 173 172 extern int snd_ad1816a_mixer(ad1816a_t *chip); 174 173 175 #endif /* __AD1816A_H */ 176 174 #endif /* __SOUND_AD1816A_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ad1848.h
r32 r96 1 #ifndef __ AD1848_H2 #define __ AD1848_H1 #ifndef __SOUND_AD1848_H 2 #define __SOUND_AD1848_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 112 112 #define AD1848_MODE_TIMER 0x0004 113 113 #define AD1848_MODE_OPEN (AD1848_MODE_PLAY|AD1848_MODE_CAPTURE|AD1848_MODE_TIMER) 114 #define AD1848_MODE_RUNNING 0x0010 114 115 115 116 /* defines for codec.hardware */ … … 151 152 152 153 void snd_ad1848_out(ad1848_t *chip, unsigned char reg, unsigned char value); 154 void snd_ad1848_dout(ad1848_t *chip, unsigned char reg, unsigned char value); 155 unsigned char snd_ad1848_in(ad1848_t *chip, unsigned char reg); 156 void snd_ad1848_mce_up(ad1848_t *chip); 157 void snd_ad1848_mce_down(ad1848_t *chip); 153 158 154 159 int snd_ad1848_create(snd_card_t * card, … … 202 207 #endif 203 208 204 #endif /* __AD1848_H */209 #endif /* __SOUND_AD1848_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ainstr_gf1.h
r32 r96 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * 22 */ 23 24 #ifndef __ AINSTR_GF1_H25 #define __ AINSTR_GF1_H20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * 22 */ 23 24 #ifndef __SOUND_AINSTR_GF1_H 25 #define __SOUND_AINSTR_GF1_H 26 26 27 27 #ifndef __KERNEL__ … … 225 225 #endif 226 226 227 #endif /* __S EQ_INSTR_GF1_H */227 #endif /* __SOUND_AINSTR_GF1_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ainstr_iw.h
r32 r96 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * 22 */ 23 24 #ifndef __ AINSTR_IW_H25 #define __ AINSTR_IW_H20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * 22 */ 23 24 #ifndef __SOUND_AINSTR_IW_H 25 #define __SOUND_AINSTR_IW_H 26 26 27 27 #ifndef __KERNEL__ … … 373 373 #endif 374 374 375 #endif /* __S EQ_INSTR_IW_H */375 #endif /* __SOUND_AINSTR_IW_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ainstr_simple.h
r34 r96 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 * 22 22 */ 23 23 24 #ifndef __ AINSTR_SIMPLE_H25 #define __ AINSTR_SIMPLE_H24 #ifndef __SOUND_AINSTR_SIMPLE_H 25 #define __SOUND_AINSTR_SIMPLE_H 26 26 27 27 #ifndef __KERNEL__ … … 156 156 #endif 157 157 158 #endif /* __S EQ_INSTR_SIMPLE_H */158 #endif /* __SOUND_AINSTR_SIMPLE_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/asequencer.h
r32 r96 1 1 /* 2 2 * Main header file for the ALSA sequencer 3 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@ coil.demon.nl>3 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@home.nl> 4 4 * (c) 1998-1999 by Jaroslav Kysela <perex@suse.cz> 5 5 * … … 27 27 #include <sound/asound.h> 28 28 #endif 29 30 #include <sound/asound.h> 29 31 30 32 /** version of the sequencer */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/asound.h
r84 r96 1 1 /* 2 2 * Advanced Linux Sound Architecture - ALSA - Driver 3 * Copyright (c) 1994-200 3by Jaroslav Kysela <perex@suse.cz>,3 * Copyright (c) 1994-2000 by Jaroslav Kysela <perex@suse.cz>, 4 4 * Abramo Bagnara <abramo@alsa-project.org> 5 5 * -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/asoundef.h
r34 r96 1 #ifndef __SOUND_ASOUNDEF_H 2 #define __SOUND_ASOUNDEF_H 3 1 4 /* 2 5 * Advanced Linux Sound Architecture - ALSA - Driver … … 16 19 * You should have received a copy of the GNU General Public License 17 20 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 22 * 20 23 */ 21 22 #ifndef __ASOUNDEF_H23 #define __ASOUNDEF_H24 24 25 25 /**************************************************************************** … … 225 225 #define MIDI_CTL_MONO2 0x7f 226 226 227 #endif /* __ASOUNDEF_H */227 #endif /* __SOUND_ASOUNDEF_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/compat_22.h
r77 r96 6 6 */ 7 7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) 8 9 #include <linux/list.h> 10 #include <linux/pagemap.h> 11 #include <linux/ioport.h> 8 12 9 13 #ifndef CONFIG_HAVE_DMA_ADDR_T … … 33 37 #endif /* !CONFIG_HAVE_MUTEX_MACROS */ 34 38 39 /** 40 * list_del_init - deletes entry from list and reinitialize it. 41 * @entry: the element to delete from the list. 42 */ 43 static __inline__ void list_del_init(struct list_head *entry) 44 { 45 __list_del(entry->prev, entry->next); 46 INIT_LIST_HEAD(entry); 47 } 48 49 /** 50 * list_for_each_safe - iterate over a list safe against removal of list entry 51 * @pos: the &struct list_head to use as a loop counter. 52 * @n: another &struct list_head to use as temporary storage 53 * @head: the head for your list. 54 */ 55 #define list_for_each_safe(pos, n, head) \ 56 for (pos = (head)->next, n = pos->next; pos != (head); \ 57 pos = n, n = pos->next) 58 59 /* rw_semaphore - replaced with mutex */ 60 #define rw_semaphore semaphore 61 #define init_rwsem(x) init_MUTEX(x) 62 #define down_read(x) down(x) 63 #define down_write(x) down(x) 64 #define up_read(x) up(x) 65 #define up_write(x) up(x) 35 66 36 67 #define virt_to_page(x) (&mem_map[MAP_NR(x)]) … … 50 81 51 82 /* Some distributions use modified kill_fasync */ 52 #ifdef CONFIG_OLD_KILL_FASYNC 53 #define snd_kill_fasync(fp, sig, band) kill_fasync(*(fp), sig) 54 #else 55 #define snd_kill_fasync(fp, sig, band) kill_fasync(*(fp), sig, band) 56 #endif 83 #include <linux/fs.h> 84 #undef kill_fasync 85 #define kill_fasync(fp, sig, band) snd_wrapper_kill_fasync(fp, sig, band) 86 void snd_wrapper_kill_fasync(struct fasync_struct **, int, int); 57 87 58 88 #define tasklet_hi_schedule(t) queue_task((t), &tq_immediate); \ … … 70 100 #define rwlock_init(x) do { *(x) = RW_LOCK_UNLOCKED; } while(0) 71 101 102 #ifndef __init 72 103 #define __init 104 #endif 105 #ifndef __initdata 73 106 #define __initdata 107 #endif 108 #ifndef __exit 74 109 #define __exit 110 #endif 111 #ifndef __exitdata 75 112 #define __exitdata 113 #endif 114 #ifndef __devinit 76 115 #define __devinit 116 #endif 117 #ifndef __devinitdata 77 118 #define __devinitdata 119 #endif 120 #ifndef __devexit 78 121 #define __devexit 122 #endif 123 #ifndef __devexitdata 79 124 #define __devexitdata 125 #endif 80 126 81 127 #ifdef MODULE … … 167 213 #define PCI_ANY_ID (~0) 168 214 169 #define PCI_GET_DRIVER_DATAsnd_pci_compat_get_driver_data170 #define PCI_SET_DRIVER_DATAsnd_pci_compat_set_driver_data215 #define pci_get_drvdata snd_pci_compat_get_driver_data 216 #define pci_set_drvdata snd_pci_compat_set_driver_data 171 217 172 218 #define pci_set_dma_mask snd_pci_compat_set_dma_mask 173 219 220 #undef pci_enable_device 174 221 #define pci_enable_device snd_pci_compat_enable_device 175 222 #define pci_register_driver snd_pci_compat_register_driver … … 187 234 for(dev = pci_devices; dev; dev = dev->next) 188 235 236 #undef pci_resource_start 189 237 #define pci_resource_start(dev,bar) \ 190 238 (((dev)->base_address[(bar)] & PCI_BASE_ADDRESS_SPACE) ? \ 191 239 ((dev)->base_address[(bar)] & PCI_BASE_ADDRESS_IO_MASK) : \ 192 240 ((dev)->base_address[(bar)] & PCI_BASE_ADDRESS_MEM_MASK)) 241 #undef pci_resource_end 193 242 #define pci_resource_end(dev,bar) \ 194 243 (pci_resource_start(dev,bar) + snd_pci_compat_get_size((dev),(bar))) 244 #undef pci_resource_len 245 #define pci_resource_len(dev,bar) \ 246 ((pci_resource_start((dev),(bar)) == 0 && \ 247 pci_resource_end((dev),(bar)) == \ 248 pci_resource_start((dev),(bar))) ? 0 : \ 249 \ 250 (pci_resource_end((dev),(bar)) - \ 251 pci_resource_start((dev),(bar)) + 1)) 252 #undef pci_resource_flags 195 253 #define pci_resource_flags(dev,bar) (snd_pci_compat_get_flags((dev),(bar))) 196 254 … … 201 259 unsigned long driver_data; /* Data private to the driver */ 202 260 }; 261 262 #ifndef PCI_OLD_SUSPEND 263 #define PCI_OLD_SUSPEND 264 #endif 203 265 204 266 struct pci_driver { … … 294 356 }; 295 357 358 #define __LINUX_PM_H /* <linux/pm.h> in 2.2.18 is a bit stripped */ 359 296 360 /* 297 361 * Device identifier -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/control.h
r84 r96 1 #ifndef __ CONTROL_H2 #define __ CONTROL_H1 #ifndef __SOUND_CONTROL_H 2 #define __SOUND_CONTROL_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ 24 25 #include <sound/asound.h> 26 27 typedef struct sndrv_aes_iec958 snd_aes_iec958_t; 28 typedef struct sndrv_ctl_card_info snd_ctl_card_info_t; 29 typedef enum sndrv_ctl_elem_type snd_ctl_elem_type_t; 30 typedef enum sndrv_ctl_elem_iface snd_ctl_elem_iface_t; 31 typedef struct sndrv_ctl_elem_id snd_ctl_elem_id_t; 32 typedef struct sndrv_ctl_elem_list snd_ctl_elem_list_t; 33 typedef struct sndrv_ctl_elem_info snd_ctl_elem_info_t; 34 typedef struct sndrv_ctl_elem_value snd_ctl_elem_value_t; 35 typedef enum sndrv_ctl_event_type snd_ctl_event_type_t; 36 typedef struct sndrv_ctl_event snd_ctl_event_t; 24 37 25 38 #define snd_kcontrol_chip(kcontrol) ((kcontrol)->private_data) … … 160 173 } 161 174 162 #endif /* __CONTROL_H */175 #endif /* __SOUND_CONTROL_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/cs4231.h
r32 r96 1 #ifndef __ CS4231_H2 #define __ CS4231_H1 #ifndef __SOUND_CS4231_H 2 #define __SOUND_CS4231_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 337 337 #endif 338 338 339 #endif /* __CS4231_H */339 #endif /* __SOUND_CS4231_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/emu8000.h
r32 r96 1 #ifndef __ EMU8000_H2 #define __ EMU8000_H1 #ifndef __SOUND_EMU8000_H 2 #define __SOUND_EMU8000_H 3 3 /* 4 4 * Defines for the emu8000 (AWE32/64) … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 */ 23 23 24 #include "driver.h"25 24 #include "emux_synth.h" 26 25 #include "seq_kernel.h" … … 118 117 int snd_emu8000_load_reverb_fx(emu8000_t *emu, int mode, const void *buf, long len); 119 118 120 121 #endif 119 #endif /* __SOUND_EMU8000_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/emu8000_reg.h
r32 r96 1 #ifndef __ EMU8000_REG_H2 #define __ EMU8000_REG_H1 #ifndef __SOUND_EMU8000_REG_H 2 #define __SOUND_EMU8000_REG_H 3 3 /* 4 4 * Register operations for the EMU8000 … … 20 20 * You should have received a copy of the GNU General Public License 21 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 23 * 24 24 */ … … 205 205 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(5, (chan)), (val)) 206 206 207 #endif 207 #endif /* __SOUND_EMU8000_REG_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/emux_legacy.h
r32 r96 1 #ifndef __SOUND_EMUX_LEGACY_H 2 #define __SOUND_EMUX_LEGACY_H 3 1 4 /* 2 5 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> … … 16 19 * You should have received a copy of the GNU General Public License 17 20 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 22 * 20 23 */ 21 22 #ifndef __EMUX_LEGACY_H23 #define __EMUX_LEGACY_H24 24 25 25 #include "seq_oss_legacy.h" … … 144 144 145 145 146 #endif 146 #endif /* __SOUND_EMUX_LEGACY_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/es1688.h
r32 r96 1 #ifndef __ ES1688_H2 #define __ ES1688_H1 #ifndef __SOUND_ES1688_H 2 #define __SOUND_ES1688_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 123 123 int snd_es1688_mixer(es1688_t *chip); 124 124 125 #endif /* __ES1688_H */125 #endif /* __SOUND_ES1688_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/gus.h
r32 r96 1 #ifndef __ GUS_H2 #define __ GUS_H1 #ifndef __SOUND_GUS_H 2 #define __SOUND_GUS_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 31 31 #include "ainstr_gf1.h" 32 32 #include "ainstr_simple.h" 33 34 #define SNDRV_SEQ_DEV_ID_GUS "synth-gus" 33 #include <asm/io.h> 34 35 #define SNDRV_SEQ_DEV_ID_GUS "gus-synth" 35 36 36 37 /* IO ports */ … … 216 217 typedef struct snd_gf1_dma_block { 217 218 void *buffer; /* buffer in computer's RAM */ 219 unsigned long buf_addr; /* buffer address */ 218 220 unsigned int addr; /* address in onboard memory */ 219 221 unsigned int count; /* count in bytes */ … … 605 607 606 608 void snd_gf1_dma_program(snd_gus_card_t * gus, unsigned int addr, 607 const void *buf, unsigned int count,609 unsigned long buf_addr, unsigned int count, 608 610 unsigned int cmd); 609 611 void snd_gf1_dma_ack(snd_gus_card_t * gus); … … 696 698 unsigned int addr, unsigned int size, int rom); 697 699 698 #if def CONFIG_SND_SEQUENCER700 #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) 699 701 700 702 /* gus_sample.c */ … … 724 726 int atomic); 725 727 726 #endif /* CONFIG_SND_SEQUENCER */727 728 #endif /* __GUS_H */728 #endif /* CONFIG_SND_SEQUENCER */ 729 730 #endif /* __SOUND_GUS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/hal2.h
r32 r96 1 #ifndef __ HAL2_H2 #define __ HAL2_H1 #ifndef __SOUND_HAL2_H 2 #define __SOUND_HAL2_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 403 403 extern snd_pcm_t *snd_hal2_pcm(snd_hal2_card_t *hal2); 404 404 405 #endif /* __HAL2_H */405 #endif /* __SOUND_HAL2_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/i2c.h
r32 r96 1 #ifndef __S ND_I2C_H2 #define __S ND_I2C_H1 #ifndef __SOUND_I2C_H 2 #define __SOUND_I2C_H 3 3 4 4 /* … … 17 17 * You should have received a copy of the GNU General Public License 18 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 * 21 21 * 22 22 */ 23 23 24 #define SNDRV_LOCK_I2C_BUS(bus) spin_lock_irqsave(&bus->lock, flags) 25 #define SNDRV_UNLOCK_I2C_BUS(bus) spin_unlock_irqrestore(&bus->lock, flags) 24 typedef struct _snd_i2c_device snd_i2c_device_t; 25 typedef struct _snd_i2c_bus snd_i2c_bus_t; 26 26 27 27 typedef struct _snd_i2c_device snd_i2c_device_t; 28 typedef struct _snd_i2c_bus snd_i2c_bus_t; 28 #define SND_I2C_DEVICE_ADDRTEN (1<<0) /* 10-bit I2C address */ 29 29 30 30 struct _snd_i2c_device { … … 61 61 }; 62 62 63 #define snd_i2c_slave_bus(n) list_entry(n, snd_i2c_bus_t, buses) 63 64 64 65 int snd_i2c_bus_create(snd_card_t *card, const char *name, snd_i2c_bus_t **ri2c); … … 83 84 int snd_i2c_dev_write(snd_i2c_device_t *device, unsigned char b1, unsigned char b2, int both); 84 85 85 #endif /* __SND_I2C_H */86 #endif /* __SOUND_I2C_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/minors.h
r32 r96 1 #ifndef __ MINORS_H2 #define __ MINORS_H1 #ifndef __SOUND_MINORS_H 2 #define __SOUND_MINORS_H 3 3 4 4 /* … … 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 * 22 22 */ … … 84 84 #endif 85 85 86 #endif /* __MINORS_H */86 #endif /* __SOUND_MINORS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/mixer_oss.h
r32 r96 1 #ifndef __ MIXER_OSS_H2 #define __ MIXER_OSS_H1 #ifndef __SOUND_MIXER_OSS_H 2 #define __SOUND_MIXER_OSS_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ … … 67 67 }; 68 68 69 #endif /* CONFIG_SND_OSSEMUL */69 #endif /* CONFIG_SND_OSSEMUL */ 70 70 71 #endif /* __MIXER_OSS_H */71 #endif /* __SOUND_MIXER_OSS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm_oss.h
r32 r96 1 #ifndef __ PCM_OSS_H2 #define __ PCM_OSS_H1 #ifndef __SOUND_PCM_OSS_H 2 #define __SOUND_PCM_OSS_H 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 * 23 23 */ 24 24 25 #include "pcm_plugin.h" 26 25 typedef struct _snd_pcm_plugin snd_pcm_plugin_t; 27 26 typedef struct _snd_pcm_oss_setup snd_pcm_oss_setup_t; 28 27 … … 81 80 } snd_pcm_oss_t; 82 81 83 #endif /* __ PCM_OSS_H */82 #endif /* __SOUND_PCM_OSS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm_params.h
r92 r96 22 22 * 23 23 */ 24 25 #include <linux/bitops.h> 24 26 25 27 extern int snd_pcm_hw_param_mask(snd_pcm_substream_t *pcm, snd_pcm_hw_params_t *params, -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/sb16_csp.h
r32 r96 1 #ifndef __S B16_CSP_H2 #define __S B16_CSP_H1 #ifndef __SOUND_SB16_CSP_H 2 #define __SOUND_SB16_CSP_H 3 3 4 4 /* … … 20 20 * You should have received a copy of the GNU General Public License 21 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 23 * 24 24 */ … … 166 166 #endif 167 167 168 #endif 168 #endif /* __SOUND_SB16_CSP */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/seq_oss.h
r32 r96 1 #ifndef __SOUND_SEQ_OSS_H 2 #define __SOUND_SEQ_OSS_H 3 1 4 /* 2 5 * OSS compatible sequencer driver … … 16 19 * You should have received a copy of the GNU General Public License 17 20 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 22 */ 20 21 #ifndef __SEQ_OSS_H22 #define __SEQ_OSS_H23 23 24 24 #include "asequencer.h" … … 100 100 #define SNDRV_SEQ_DEV_ID_OSS "seq-oss" 101 101 102 #endif 102 #endif /* __SOUND_SEQ_OSS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/seq_oss_legacy.h
r32 r96 1 #ifndef __SOUND_SEQ_OSS_LEGACY_H 2 #define __SOUND_SEQ_OSS_LEGACY_H 3 1 4 /* 2 5 * OSS compatible macro definitions … … 16 19 * You should have received a copy of the GNU General Public License 17 20 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 22 */ 20 21 #ifndef __SEQ_OSS_LEGACY_H22 #define __SEQ_OSS_LEGACY_H23 23 24 24 #include <linux/soundcard.h> … … 28 28 #endif 29 29 30 #endif 30 #endif /* __SOUND_SEQ_OSS_LEGACY_H */ 31 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/snd_wavefront.h
r32 r96 1 #ifndef __S ND_WAVEFRONT_H__2 #define __S ND_WAVEFRONT_H__1 #ifndef __SOUND_SND_WAVEFRONT_H__ 2 #define __SOUND_SND_WAVEFRONT_H__ 3 3 4 4 #include "cs4231.h" … … 139 139 #define LOGNAME "WaveFront: " 140 140 141 #endif /* __SND_WAVEFRONT_H__ */ 142 141 #endif /* __SOUND_SND_WAVEFRONT_H__ */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/tea6330t.h
r32 r96 1 #ifndef __ TEA6330T_H2 #define __ TEA6330T_H1 #ifndef __SOUND_TEA6330T_H 2 #define __SOUND_TEA6330T_H 3 3 4 4 /* … … 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 * 22 22 * … … 34 34 unsigned char bass, treble; 35 35 unsigned char max_bass, max_treble; 36 spinlock_t reg_lock;37 36 } tea6330t_t; 38 37 … … 40 39 extern int snd_tea6330t_update_mixer(snd_card_t * card, snd_i2c_bus_t * bus, int equalizer, int fader); 41 40 42 #endif /* __TEA6330T_H */41 #endif /* __SOUND_TEA6330T_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/util_mem.h
r32 r96 1 #ifndef __ UTIL_MEM_H2 #define __ UTIL_MEM_H1 #ifndef __SOUND_UTIL_MEM_H 2 #define __SOUND_UTIL_MEM_H 3 3 /* 4 4 * Copyright (C) 2000 Takashi Iwai <tiwai@suse.de> … … 18 18 * You should have received a copy of the GNU General Public License 19 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 */ 22 22 … … 62 62 snd_util_memblk_t *__snd_util_memblk_new(snd_util_memhdr_t *hdr, snd_util_unit_t units, struct list_head *prev); 63 63 64 #endif /* __ UTIL_MEM_H */64 #endif /* __SOUND_UTIL_MEM_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/version.h.in
r32 r96 1 1 #undef CONFIG_SND_VERSION 2 #undef CONFIG_SND_DATE -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/wavefront.h
r32 r96 1 #ifndef __ WAVEFRONT_H__2 #define __ WAVEFRONT_H__1 #ifndef __SOUND_WAVEFRONT_H__ 2 #define __SOUND_WAVEFRONT_H__ 3 3 4 4 /* … … 19 19 * You should have received a copy of the GNU General Public License 20 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 22 */ 23 23 … … 65 65 */ 66 66 67 typedef short INT16; 68 typedef unsigned short UINT16; 69 typedef int INT32; 70 typedef unsigned int UINT32; 71 typedef char CHAR8; 72 typedef unsigned char UCHAR8; 67 #ifndef __KERNEL__ 68 /* keep them for compatibility */ 69 typedef short s16; 70 typedef unsigned short u16; 71 typedef int s32; 72 typedef unsigned int u32; 73 typedef char s8; 74 typedef unsigned char u8; 75 typedef s16 INT16; 76 typedef u16 UINT16; 77 typedef s32 INT32; 78 typedef u32 UINT32; 79 typedef s8 CHAR8; 80 typedef u8 UCHAR8; 81 #endif 73 82 74 83 /* Pseudo-commands not part of the WaveFront command set. … … 198 207 struct wf_envelope 199 208 { 200 UCHAR8 attack_time:7;201 UCHAR8 Unused1:1;202 203 UCHAR8 decay1_time:7;204 UCHAR8 Unused2:1;205 206 UCHAR8 decay2_time:7;207 UCHAR8 Unused3:1;208 209 UCHAR8 sustain_time:7;210 UCHAR8 Unused4:1;211 212 UCHAR8 release_time:7;213 UCHAR8 Unused5:1;214 215 UCHAR8 release2_time:7;216 UCHAR8 Unused6:1;217 218 CHAR8 attack_level;219 CHAR8 decay1_level;220 CHAR8 decay2_level;221 CHAR8 sustain_level;222 CHAR8 release_level;223 224 UCHAR8 attack_velocity:7;225 UCHAR8 Unused7:1;226 227 UCHAR8 volume_velocity:7;228 UCHAR8 Unused8:1;229 230 UCHAR8 keyboard_scaling:7;231 UCHAR8 Unused9:1;209 u8 attack_time:7; 210 u8 Unused1:1; 211 212 u8 decay1_time:7; 213 u8 Unused2:1; 214 215 u8 decay2_time:7; 216 u8 Unused3:1; 217 218 u8 sustain_time:7; 219 u8 Unused4:1; 220 221 u8 release_time:7; 222 u8 Unused5:1; 223 224 u8 release2_time:7; 225 u8 Unused6:1; 226 227 s8 attack_level; 228 s8 decay1_level; 229 s8 decay2_level; 230 s8 sustain_level; 231 s8 release_level; 232 233 u8 attack_velocity:7; 234 u8 Unused7:1; 235 236 u8 volume_velocity:7; 237 u8 Unused8:1; 238 239 u8 keyboard_scaling:7; 240 u8 Unused9:1; 232 241 }; 233 242 typedef struct wf_envelope wavefront_envelope; … … 235 244 struct wf_lfo 236 245 { 237 UCHAR8 sample_number;238 239 UCHAR8 frequency:7;240 UCHAR8 Unused1:1;241 242 UCHAR8 am_src:4;243 UCHAR8 fm_src:4;244 245 CHAR8 fm_amount;246 CHAR8 am_amount;247 CHAR8 start_level;248 CHAR8 end_level;249 250 UCHAR8 ramp_delay:7;251 UCHAR8 wave_restart:1; /* for LFO2 only */252 253 UCHAR8 ramp_time:7;254 UCHAR8 Unused2:1;246 u8 sample_number; 247 248 u8 frequency:7; 249 u8 Unused1:1; 250 251 u8 am_src:4; 252 u8 fm_src:4; 253 254 s8 fm_amount; 255 s8 am_amount; 256 s8 start_level; 257 s8 end_level; 258 259 u8 ramp_delay:7; 260 u8 wave_restart:1; /* for LFO2 only */ 261 262 u8 ramp_time:7; 263 u8 Unused2:1; 255 264 }; 256 265 typedef struct wf_lfo wavefront_lfo; … … 258 267 struct wf_patch 259 268 { 260 INT16 frequency_bias; /* ** THIS IS IN MOTOROLA FORMAT!! ** */261 262 UCHAR8 amplitude_bias:7;263 UCHAR8 Unused1:1;264 265 UCHAR8 portamento:7;266 UCHAR8 Unused2:1;267 268 UCHAR8 sample_number;269 270 UCHAR8 pitch_bend:4;271 UCHAR8 sample_msb:1;272 UCHAR8 Unused3:3;273 274 UCHAR8 mono:1;275 UCHAR8 retrigger:1;276 UCHAR8 nohold:1;277 UCHAR8 restart:1;278 UCHAR8 filterconfig:2; /* SDK says "not used" */279 UCHAR8 reuse:1;280 UCHAR8 reset_lfo:1;281 282 UCHAR8 fm_src2:4;283 UCHAR8 fm_src1:4;284 285 CHAR8 fm_amount1;286 CHAR8 fm_amount2;287 288 UCHAR8 am_src:4;289 UCHAR8 Unused4:4;290 291 CHAR8 am_amount;292 293 UCHAR8 fc1_mode:4;294 UCHAR8 fc2_mode:4;295 296 CHAR8 fc1_mod_amount;297 CHAR8 fc1_keyboard_scaling;298 CHAR8 fc1_bias;299 CHAR8 fc2_mod_amount;300 CHAR8 fc2_keyboard_scaling;301 CHAR8 fc2_bias;302 303 UCHAR8 randomizer:7;304 UCHAR8 Unused5:1;269 s16 frequency_bias; /* ** THIS IS IN MOTOROLA FORMAT!! ** */ 270 271 u8 amplitude_bias:7; 272 u8 Unused1:1; 273 274 u8 portamento:7; 275 u8 Unused2:1; 276 277 u8 sample_number; 278 279 u8 pitch_bend:4; 280 u8 sample_msb:1; 281 u8 Unused3:3; 282 283 u8 mono:1; 284 u8 retrigger:1; 285 u8 nohold:1; 286 u8 restart:1; 287 u8 filterconfig:2; /* SDK says "not used" */ 288 u8 reuse:1; 289 u8 reset_lfo:1; 290 291 u8 fm_src2:4; 292 u8 fm_src1:4; 293 294 s8 fm_amount1; 295 s8 fm_amount2; 296 297 u8 am_src:4; 298 u8 Unused4:4; 299 300 s8 am_amount; 301 302 u8 fc1_mode:4; 303 u8 fc2_mode:4; 304 305 s8 fc1_mod_amount; 306 s8 fc1_keyboard_scaling; 307 s8 fc1_bias; 308 s8 fc2_mod_amount; 309 s8 fc2_keyboard_scaling; 310 s8 fc2_bias; 311 312 u8 randomizer:7; 313 u8 Unused5:1; 305 314 306 315 struct wf_envelope envelope1; … … 313 322 struct wf_layer 314 323 { 315 UCHAR8 patch_number;316 317 UCHAR8 mix_level:7;318 UCHAR8 mute:1;319 320 UCHAR8 split_point:7;321 UCHAR8 play_below:1;322 323 UCHAR8 pan_mod_src:2;324 UCHAR8 pan_or_mod:1;325 UCHAR8 pan:4;326 UCHAR8 split_type:1;324 u8 patch_number; 325 326 u8 mix_level:7; 327 u8 mute:1; 328 329 u8 split_point:7; 330 u8 play_below:1; 331 332 u8 pan_mod_src:2; 333 u8 pan_or_mod:1; 334 u8 pan:4; 335 u8 split_type:1; 327 336 }; 328 337 typedef struct wf_layer wavefront_layer; … … 336 345 struct wf_sample_offset 337 346 { 338 INT32 Fraction:4;339 INT32 Integer:20;340 INT32 Unused:8;347 s32 Fraction:4; 348 s32 Integer:20; 349 s32 Unused:8; 341 350 }; 342 351 typedef struct wf_sample_offset wavefront_sample_offset; … … 430 439 struct wf_sample_offset loopEndOffset; 431 440 struct wf_sample_offset sampleEndOffset; 432 INT16 FrequencyBias;433 UCHAR8 SampleResolution:2; /* sample_format */434 UCHAR8 Unused1:1;435 UCHAR8 Loop:1;436 UCHAR8 Bidirectional:1;437 UCHAR8 Unused2:1;438 UCHAR8 Reverse:1;439 UCHAR8 Unused3:1;441 s16 FrequencyBias; 442 u8 SampleResolution:2; /* sample_format */ 443 u8 Unused1:1; 444 u8 Loop:1; 445 u8 Bidirectional:1; 446 u8 Unused2:1; 447 u8 Reverse:1; 448 u8 Unused3:1; 440 449 } wavefront_sample; 441 450 442 451 typedef struct wf_multisample { 443 INT16 NumberOfSamples; /* log2 of the number of samples */444 INT16 SampleNumber[NUM_MIDIKEYS];452 s16 NumberOfSamples; /* log2 of the number of samples */ 453 s16 SampleNumber[NUM_MIDIKEYS]; 445 454 } wavefront_multisample; 446 455 447 456 typedef struct wf_alias { 448 INT16 OriginalSample __attribute__ ((packed));457 s16 OriginalSample __attribute__ ((packed)); 449 458 450 459 struct wf_sample_offset sampleStartOffset __attribute__ ((packed)); … … 453 462 struct wf_sample_offset loopEndOffset __attribute__ ((packed)); 454 463 455 INT16 FrequencyBias __attribute__ ((packed));456 457 UCHAR8 SampleResolution:2 __attribute__ ((packed));458 UCHAR8 Unused1:1 __attribute__ ((packed));459 UCHAR8 Loop:1 __attribute__ ((packed));460 UCHAR8 Bidirectional:1 __attribute__ ((packed));461 UCHAR8 Unused2:1 __attribute__ ((packed));462 UCHAR8 Reverse:1 __attribute__ ((packed));463 UCHAR8 Unused3:1 __attribute__ ((packed));464 s16 FrequencyBias __attribute__ ((packed)); 465 466 u8 SampleResolution:2 __attribute__ ((packed)); 467 u8 Unused1:1 __attribute__ ((packed)); 468 u8 Loop:1 __attribute__ ((packed)); 469 u8 Bidirectional:1 __attribute__ ((packed)); 470 u8 Unused2:1 __attribute__ ((packed)); 471 u8 Reverse:1 __attribute__ ((packed)); 472 u8 Unused3:1 __attribute__ ((packed)); 464 473 465 474 /* This structure is meant to be padded only to 16 bits on their … … 472 481 */ 473 482 474 UCHAR8 sixteen_bit_padding __attribute__ ((packed));483 u8 sixteen_bit_padding __attribute__ ((packed)); 475 484 } wavefront_alias; 476 485 477 486 typedef struct wf_drum { 478 UCHAR8 PatchNumber;479 UCHAR8 MixLevel:7;480 UCHAR8 Unmute:1;481 UCHAR8 Group:4;482 UCHAR8 Unused1:4;483 UCHAR8 PanModSource:2;484 UCHAR8 PanModulated:1;485 UCHAR8 PanAmount:4;486 UCHAR8 Unused2:1;487 u8 PatchNumber; 488 u8 MixLevel:7; 489 u8 Unmute:1; 490 u8 Group:4; 491 u8 Unused1:4; 492 u8 PanModSource:2; 493 u8 PanModulated:1; 494 u8 PanAmount:4; 495 u8 Unused2:1; 487 496 } wavefront_drum; 488 497 … … 492 501 493 502 typedef struct wf_channel_programs { 494 UCHAR8 Program[NUM_MIDICHANNELS];503 u8 Program[NUM_MIDICHANNELS]; 495 504 } wavefront_channel_programs; 496 505 … … 523 532 */ 524 533 525 INT16 key; /* Use WAVEFRONT_PATCH here */526 UINT16 devno; /* fill in when sending */527 UCHAR8 subkey; /* WF_ST_{SAMPLE,ALIAS,etc.} */534 s16 key; /* Use WAVEFRONT_PATCH here */ 535 u16 devno; /* fill in when sending */ 536 u8 subkey; /* WF_ST_{SAMPLE,ALIAS,etc.} */ 528 537 529 538 #define WAVEFRONT_FIND_FREE_SAMPLE_SLOT 999 530 539 531 UINT16 number; /* patch/sample/prog number */532 533 UINT32 size; /* size of any data included in540 u16 number; /* patch/sample/prog number */ 541 542 u32 size; /* size of any data included in 534 543 one of the fields in `hdrptr', or 535 544 as `dataptr'. … … 547 556 */ 548 557 wavefront_any *hdrptr; /* user-space ptr to hdr bytes */ 549 UINT16 *dataptr; /* actual sample data */558 u16 *dataptr; /* actual sample data */ 550 559 551 560 wavefront_any hdr; /* kernel-space copy of hdr bytes */ … … 684 693 #define WFFX_MEMSET 69 685 694 686 #endif /* __WAVEFRONT_H__ */ 687 695 #endif /* __SOUND_WAVEFRONT_H__ */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/wavefront_fx.h
r32 r96 1 #ifndef __ WAVEFRONT_FX_H__2 #define __ WAVEFRONT_FX_H__1 #ifndef __SOUND_WAVEFRONT_FX_H 2 #define __SOUND_WAVEFRONT_FX_H 3 3 4 4 extern int snd_wavefront_fx_detect (snd_wavefront_t *); … … 7 7 unsigned long arg); 8 8 9 #endif __ WAVEFRONT_FX_H__9 #endif __SOUND_WAVEFRONT_FX_H -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/yss225.h
r32 r96 1 #ifndef __ yss255_h__2 #define __ yss255_h__1 #ifndef __SOUND_YSS225_H 2 #define __SOUND_YSS225_H 3 3 4 4 extern unsigned char page_zero[256]; … … 21 21 22 22 23 #endif /* __ys225_h__ */ 24 23 #endif /* __SOUND_YSS225_H */
Note:
See TracChangeset
for help on using the changeset viewer.
