Ignore:
Timestamp:
Aug 27, 2007, 7:41:50 PM (18 years ago)
Author:
Brendan Oakley
Message:

Merged to ALSA 0.9.5

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

Legend:

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

    r246 r250  
    121121#define AD1848_HW_CS4248        0x0003  /* CS4248 chip */
    122122#define AD1848_HW_CMI8330       0x0004  /* CMI8330 chip */
     123#define AD1848_HW_THINKPAD      0x0005  /* Thinkpad 360/750/755 */
     124
     125/* IBM Thinkpad specific stuff */
     126#define AD1848_THINKPAD_CTL_PORT1               0x15e8
     127#define AD1848_THINKPAD_CTL_PORT2               0x15e9
     128#define AD1848_THINKPAD_CS4248_ENABLE_BIT       0x02
    123129
    124130struct _snd_ad1848 {
     
    142148        int dma_size;
    143149        int thinkpad_flag;              /* Thinkpad CS4248 needs some extra help */
     150        int thinkpad_flag;              /* Thinkpad CS4248 needs some extra help */
     151#ifdef CONFIG_PM
     152        struct pm_dev *thinkpad_pmstate;
     153#endif
    144154
    145155        spinlock_t reg_lock;
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/adriver.h

    r246 r250  
    5151#include <linux/module.h>
    5252
     53#ifdef CONFIG_HAVE_OLD_REQUEST_MODULE
     54#include <linux/kmod.h>
     55#undef request_module
     56void snd_compat_request_module(const char *name, ...);
     57#define request_module(name, args...) snd_compat_request_module(name, ##args)
     58#endif
     59
     60#ifndef TARGET_OS2
     61#include <linux/compiler.h>
     62#endif /* !TARGET_OS2 */
     63#ifndef __user
     64#define __user
     65#endif
     66
    5367#ifdef CONFIG_PCI
    5468#include <linux/pci.h>
     
    7185#include <linux/init.h>
    7286#include <linux/pm.h>
     87#include <asm/page.h>
    7388#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 3)
    7489#define pci_set_dma_mask(pci, mask) pci->dma_mask = mask
     
    109124#endif
    110125
    111 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3)
     126#include <linux/sched.h>
     127#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) && !defined(need_resched)
    112128#define need_resched() (current->need_resched)
    113129#endif
     
    136152
    137153#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE))
    138 #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))
    139 #include <linux/isapnp.h>
    140 #define isapnp_dev pci_dev
    141 #define isapnp_card pci_bus
    142 #else
    143154#ifdef TARGET_OS2
    144155#include "isapnp.h"
    145156#else /* !TARGET_OS2 */
    146157#include <linux/isapnp.h>
    147 #endif /* TARGET_OS2 */
     158#endif /* !TARGET_OS2 */
     159#ifndef CONFIG_PNP
     160#define CONFIG_PNP
     161#endif
     162#if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))
     163#define isapnp_dev pci_dev
     164#define isapnp_card pci_bus
    148165#endif
    149166#undef __ISAPNP__
    150167#define __ISAPNP__
     168#else
     169#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
     170#undef CONFIG_PNP
     171#endif
    151172#endif
    152173
     
    159180#endif
    160181
    161 /* no vsnprintf yet? */
    162 /* FIXME: the version number is not sure.. at least it exists already on 2.4.10 */
    163 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 10) && !TARGET_OS2
    164 #define snprintf(buf,size,fmt,args...) sprintf(buf,fmt,##args)
    165 #define vsnprintf(buf,size,fmt,args) vsprintf(buf,fmt,args)
     182#if !defined CONFIG_HAVE_STRLCPY && !defined TARGET_OS2
     183size_t snd_compat_strlcpy(char *dest, const char *src, size_t size);
     184#define strlcpy(dest, src, size) snd_compat_strlcpy(dest, src, size)
     185size_t snd_compat_strlcat(char *dest, const char *src, size_t size);
     186#define strlcat(dest, src, size) snd_compat_strlcat(dest, src, size)
     187#endif
     188
     189#if !defined CONFIG_HAVE_SNPRINTF && !defined TARGET_OS2
     190#include <stdarg.h>
     191int snd_compat_snprintf(char * buf, size_t size, const char * fmt, ...);
     192int snd_compat_vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
     193#define snprintf(buf,size,fmt,args...) snd_compat_snprintf(buf,size,fmt,##args)
     194#define vsnprintf(buf,size,fmt,args) snd_compat_vsnprintf(buf,size,fmt,args)
    166195#endif
    167196
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/ak4xxx-adda.h

    r246 r250  
    3838};
    3939
     40#define AK4XXX_IMAGE_SIZE       (AK4XXX_MAX_CHIPS * 16) /* 64 bytes */
     41
    4042struct snd_akm4xxx {
    4143        snd_card_t *card;
    4244        unsigned int num_adcs;                          /* AK4524 or AK4528 ADCs */
    4345        unsigned int num_dacs;                          /* AK4524 or AK4528 DACs */
    44         unsigned char images[AK4XXX_MAX_CHIPS][16];     /* saved register image */
     46        unsigned char images[AK4XXX_IMAGE_SIZE];        /* saved register image */
    4547        unsigned char ipga_gain[AK4XXX_MAX_CHIPS][2];   /* saved register image for IPGA (AK4528) */
    4648        unsigned long private_value[AK4XXX_MAX_CHIPS];  /* helper for driver */
     
    5961int snd_akm4xxx_build_controls(akm4xxx_t *ak);
    6062
     63#define snd_akm4xxx_get(ak,chip,reg) (ak)->images[(chip) * 16 + (reg)]
     64#define snd_akm4xxx_set(ak,chip,reg,val) ((ak)->images[(chip) * 16 + (reg)] = (val))
     65#define snd_akm4xxx_get_ipga(ak,chip,reg) (ak)->ipga_gain[chip][(reg)-4]
     66#define snd_akm4xxx_set_ipga(ak,chip,reg,val) ((ak)->ipga_gain[chip][(reg)-4] = (val))
     67
    6168#endif /* __SOUND_AK4XXX_ADDA_H */
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/compat_22.h

    r234 r250  
    9090
    9191/* Some distributions use modified kill_fasync */
     92#ifdef CONFIG_OLD_KILL_FASYNC
    9293#include <linux/fs.h>
    9394#undef kill_fasync
    9495#define kill_fasync(fp, sig, band) snd_wrapper_kill_fasync(fp, sig, band)
    9596void snd_wrapper_kill_fasync(struct fasync_struct **, int, int);
     97#endif
    9698
    9799/* this is identical with tq_struct but the "routine" field is renamed to "func" */
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h

    r246 r250  
    2525#include <linux/sched.h>                /* wake_up() */
    2626#include <asm/semaphore.h>
    27 #ifndef TARGET_OS2 //TODO: implement linux/rwsem.h
     27#ifndef TARGET_OS2 //TODO: implement linux/rwsem.h, workqueue.h
    2828#include <linux/rwsem.h>                /* struct rw_semaphore */
     29#include <linux/workqueue.h>            /* struct workqueue_struct */
    2930#endif /* !TARGET_OS2 */
    3031#include <sound/typedefs.h>
     
    213214        int device;                     /* device number */
    214215        const char *comment;            /* for /proc/asound/devices */
    215         snd_info_entry_t *dev;          /* for /proc/asound/dev */
    216216        struct file_operations *f_ops;  /* file operations */
    217217        char name[1];
     
    241241
    242242#ifdef CONFIG_SND_OSSEMUL
    243 
    244243int snd_minor_info_oss_init(void);
    245244int snd_minor_info_oss_done(void);
    246 
    247245int snd_oss_init_module(void);
    248 
     246#else
     247#define snd_minor_info_oss_init() /*NOP*/
     248#define snd_minor_info_oss_done() /*NOP*/
     249#define snd_oss_init_module() /*NOP*/
    249250#endif
    250251
     
    269270#define kstrdup(s, flags)  snd_hidden_kstrdup(s, flags)
    270271#else
     272#define snd_memory_init() /*NOP*/
     273#define snd_memory_done() /*NOP*/
     274#define snd_memory_info_init() /*NOP*/
     275#define snd_memory_info_done() /*NOP*/
    271276#define kmalloc_nocheck(size, flags) kmalloc(size, flags)
    272277#define vmalloc_nocheck(size) vmalloc(size)
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/hdsp.h

    r246 r250  
    2525        Digiface,
    2626        Multiface,
     27        H9652,
    2728        Undefined,
    2829} HDSP_IO_Type;
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/initval.h

    r246 r250  
    8787#define SNDRV_DEFAULT_ENABLE    { 1, [1 ... (SNDRV_CARDS-1)] = 0 }
    8888#define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 }
    89 #ifdef __ISAPNP__
     89#ifdef CONFIG_PNP
    9090#define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP
    9191#else
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/mpu401.h

    r77 r250  
    9292        spinlock_t timer_lock;
    9393       
     94        atomic_t rx_loop;
     95        atomic_t tx_loop;
     96
    9497        struct timer_list timer;
    9598
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/ymfpci.h

    r36 r250  
    2626#include "rawmidi.h"
    2727#include "ac97_codec.h"
     28#ifndef TARGET_OS2 //TODO: Implement linux/gameport.h
     29#include <linux/gameport.h>
     30#endif /* !TARGET_OS2 */
    2831
    2932#ifndef PCI_VENDOR_ID_YAMAHA
Note: See TracChangeset for help on using the changeset viewer.