Ignore:
Timestamp:
Feb 16, 2008, 7:40:20 AM (18 years ago)
Author:
Brendan Oakley
Message:

Merged to ALSA 1.0.2

Location:
GPL/branches/alsa-resync1/alsa-kernel/include/sound
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/adriver.h

    r281 r290  
    8787#include <asm/page.h>
    8888#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 3)
    89 #define pci_set_dma_mask(pci, mask) pci->dma_mask = mask
     89#define pci_set_dma_mask(pci, mask) (pci->dma_mask = mask, 0)
    9090#endif
    9191#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 7)
     
    157157#endif
    158158
    159 #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE))
    160 #ifdef TARGET_OS2
    161 #include "isapnp.h"
    162 #else /* !TARGET_OS2 */
    163 #include <linux/isapnp.h>
    164 #endif /* !TARGET_OS2 */
    165 #ifndef CONFIG_PNP
    166 #define CONFIG_PNP
    167 #endif
    168 #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))
    169 #define isapnp_dev pci_dev
    170 #define isapnp_card pci_bus
    171 #endif
    172 #undef __ISAPNP__
    173 #define __ISAPNP__
    174 #else
     159/* isapnp support for 2.2 kernels */
     160#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
     161#undef CONFIG_ISAPNP
     162#ifdef CONFIG_SND_ISAPNP
     163#define CONFIG_ISAPNP
     164#endif
     165#endif
     166
     167/* support of pnp compatible layer for 2.2/2.4 kernels */
    175168#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
    176169#undef CONFIG_PNP
     170#ifdef CONFIG_SND_PNP
     171#define CONFIG_PNP
    177172#endif
    178173#endif
     
    288283
    289284#ifndef CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK
    290 #define pci_set_consistent_dma_mask(p,x) pci_set_dma_mask(p,x)
     285#define pci_set_consistent_dma_mask(p,x) 0 /* success */
     286#endif
     287
     288/* sysfs */
     289#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 2)
     290struct class_simple;
     291static inline void class_simple_device_add(struct class_simple *class, int devnum, ...) { return; }
     292static inline void class_simple_device_remove(int devnum) { return; }
    291293#endif
    292294
     
    298300#define ssleep(x) msleep((unsigned int)(x) * 1000)
    299301#endif
     302#endif
     303
     304#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
     305#define snd_card_set_dev(card,dev) /* no struct device */
    300306#endif
    301307
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/compat_22.h

    r281 r290  
    506506        { restore_flags(flags); }
    507507
    508 #ifndef CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK
    509 #define pci_set_consistent_dma_mask(p,x) pci_set_dma_mask(p,x)
    510 #endif
    511 
    512508struct completion {
    513509        unsigned int done;
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/config.h

    r281 r290  
    175175#endif
    176176
    177 #ifndef snd_card_set_dev
    178 #define snd_card_set_dev(card,devptr) ((card)->dev = (devptr))
    179 #endif
    180 
    181177/* for easier backward-porting */
    182178#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h

    r260 r290  
    310310int snd_card_file_remove(struct snd_card *card, struct file *file);
    311311
     312#ifndef snd_card_set_dev
     313#define snd_card_set_dev(card,devptr) ((card)->dev = (devptr))
     314#endif
     315
    312316/* device.c */
    313317
     
    333337int snd_task_name(struct task_struct *task, char *name, size_t size);
    334338#ifdef CONFIG_SND_VERBOSE_PRINTK
    335 void snd_verbose_printk(const char *file, int line, const char *format, ...);
     339void snd_verbose_printk(const char *file, int line, const char *format, ...)
     340     __attribute__ ((format (printf, 3, 4)));
    336341#endif
    337342#if defined(CONFIG_SND_DEBUG) && defined(CONFIG_SND_VERBOSE_PRINTK)
    338 void snd_verbose_printd(const char *file, int line, const char *format, ...);
     343void snd_verbose_printd(const char *file, int line, const char *format, ...)
     344     __attribute__ ((format (printf, 3, 4)));
    339345#endif
    340346
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/emu8000.h

    r96 r290  
    114114void snd_emu8000_update_reverb_mode(emu8000_t *emu);
    115115void snd_emu8000_update_equalizer(emu8000_t *emu);
    116 int snd_emu8000_load_chorus_fx(emu8000_t *emu, int mode, const void *buf, long len);
    117 int snd_emu8000_load_reverb_fx(emu8000_t *emu, int mode, const void *buf, long len);
     116int snd_emu8000_load_chorus_fx(emu8000_t *emu, int mode, const void __user *buf, long len);
     117int snd_emu8000_load_reverb_fx(emu8000_t *emu, int mode, const void __user *buf, long len);
    118118
    119119#endif /* __SOUND_EMU8000_H */
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm.h

    r61 r290  
    411411        struct snd_info_entry *proc_xrun_debug_entry;
    412412#endif
     413#ifdef CONFIG_SND_DEBUG
     414        unsigned int xrun_debug: 1;
     415        snd_info_entry_t *proc_xrun_debug_entry;
     416#endif
    413417};
    414418
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/version.h

    r281 r290  
    11/* include/version.h.  Generated by configure.  */
    2 #define CONFIG_SND_VERSION "1.0.1"
     2#define CONFIG_SND_VERSION "1.0.2"
    33#define CONFIG_SND_DATE ""
Note: See TracChangeset for help on using the changeset viewer.