Ignore:
Timestamp:
Jun 17, 2007, 1:16:58 AM (18 years ago)
Author:
Brendan Oakley
Message:

Applied fixes from trunk to ReSync branch, fixed up additional conflicts, errors, and warnings.

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

Legend:

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

    r107 r206  
    444444#define up_write(x) up(x)
    445445
    446 /* this is identical with tq_struct but the "routine" field is renamed to "func" */
    447 struct tasklet_struct {
    448         struct tasklet_struct *next;    /* linked list of active bh's */
    449         unsigned long sync;             /* must be initialized to zero */
    450         void (*func)(void *);           /* function to call */
    451         void *data;                     /* argument to function */
    452 };
    453 
    454 #define tasklet_init(t,f,d)     do { \
    455         (t)->next = NULL; \
    456         (t)->sync = 0; \
    457         (t)->func = (void (*)(void *))(f); \
    458         (t)->data = (void *)(d); \
    459 } while (0)
    460 
    461446#define tasklet_unlock_wait(t)  while (test_bit(0, &(t)->sync)) { }
    462447#define tasklet_kill(t)         tasklet_unlock_wait(t) /* FIXME: world is not perfect... */
     
    469454#define __user
    470455#endif
    471 
    472 #include <asm/atomic.h>
    473 #define ATOMIC_INIT(i)  { (i) }
    474 /**
    475  * atomic_dec_and_test - decrement and test
    476  * @v: pointer of type atomic_t
    477  *
    478  * Atomically decrements @v by 1 and
    479  * returns true if the result is 0, or false for all other
    480  * cases.  Note that the guaranteed
    481  * useful range of an atomic_t is only 24 bits.
    482  */
    483 static inline int atomic_dec_and_test(volatile atomic_t *v)
    484 {
    485     atomic_dec(v);
    486     if (v->counter == 0)
    487         return 1;
    488     return 0;
    489 }
    490456
    491457/**
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h

    r112 r206  
    2525#include <linux/sched.h>                /* wake_up() */
    2626#include <asm/semaphore.h>
     27#include <sound/typedefs.h>
    2728
    2829/* Typedef's */
     
    138139        struct device *dev;
    139140#ifdef CONFIG_PM
    140         int (*pm_suspend)(struct snd_card *card, unsigned int state);
    141         int (*pm_resume)(struct snd_card *card, unsigned int state);
    142         struct pm_dev *pm_dev;          /* for ISA */
     141        int (*pm_suspend)(struct snd_card *card, unsigned int state);
     142        int (*pm_resume)(struct snd_card *card, unsigned int state);
     143        struct pm_dev *pm_dev;          /* for ISA */
    143144        void *pm_private_data;
    144145        unsigned int power_state;       /* power state */
     
    176177        wake_up(&card->power_sleep);
    177178}
    178 int snd_card_set_pm_callback(struct snd_card *card,
    179                              int (*suspend)(struct snd_card *, unsigned int),
    180                              int (*resume)(struct snd_card *, unsigned int),
     179int snd_card_set_pm_callback(snd_card_t *card,
     180                             int (*suspend)(snd_card_t *, unsigned int),
     181                             int (*resume)(snd_card_t *, unsigned int),
    181182                             void *private_data);
    182183int snd_card_set_isa_pm_callback(struct snd_card *card,
     
    293294struct snd_card *snd_card_new(int idx, const char *id,
    294295                         struct module *module, int extra_size);
     296int snd_card_disconnect(struct snd_card *card);
    295297int snd_card_free(struct snd_card *card);
    296298int snd_card_register(struct snd_card *card);
     
    307309int snd_device_register(struct snd_card *card, void *device_data);
    308310int snd_device_register_all(struct snd_card *card);
     311int snd_device_disconnect_all(struct snd_card *card);
    309312int snd_device_free(struct snd_card *card, void *device_data);
    310313int snd_device_free_all(struct snd_card *card, snd_device_cmd_t cmd);
     
    314317#define DMA_MODE_NO_ENABLE      0x0100
    315318
    316 void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode);
     319void snd_dma_program(unsigned long dma, const void *buf, unsigned int size, unsigned short mode);
    317320void snd_dma_disable(unsigned long dma);
    318321unsigned int snd_dma_residue(unsigned long dma);
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/emu10k1.h

    r84 r206  
    15201520int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct snd_hwdep ** rhwdep);
    15211521
    1522 irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id);
     1522irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *);
    15231523
    15241524void snd_emu10k1_voice_init(struct snd_emu10k1 * emu, int voice);
Note: See TracChangeset for help on using the changeset viewer.