Changeset 206 for GPL/branches/alsa-resync1/alsa-kernel/include
- Timestamp:
- Jun 17, 2007, 1:16:58 AM (18 years ago)
- 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 444 444 #define up_write(x) up(x) 445 445 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 461 446 #define tasklet_unlock_wait(t) while (test_bit(0, &(t)->sync)) { } 462 447 #define tasklet_kill(t) tasklet_unlock_wait(t) /* FIXME: world is not perfect... */ … … 469 454 #define __user 470 455 #endif 471 472 #include <asm/atomic.h>473 #define ATOMIC_INIT(i) { (i) }474 /**475 * atomic_dec_and_test - decrement and test476 * @v: pointer of type atomic_t477 *478 * Atomically decrements @v by 1 and479 * returns true if the result is 0, or false for all other480 * cases. Note that the guaranteed481 * 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 }490 456 491 457 /** -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h
r112 r206 25 25 #include <linux/sched.h> /* wake_up() */ 26 26 #include <asm/semaphore.h> 27 #include <sound/typedefs.h> 27 28 28 29 /* Typedef's */ … … 138 139 struct device *dev; 139 140 #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 */ 143 144 void *pm_private_data; 144 145 unsigned int power_state; /* power state */ … … 176 177 wake_up(&card->power_sleep); 177 178 } 178 int snd_card_set_pm_callback(s truct snd_card*card,179 int (*suspend)(struct snd_card*, unsigned int),180 int (*resume)(struct snd_card*, unsigned int),179 int 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), 181 182 void *private_data); 182 183 int snd_card_set_isa_pm_callback(struct snd_card *card, … … 293 294 struct snd_card *snd_card_new(int idx, const char *id, 294 295 struct module *module, int extra_size); 296 int snd_card_disconnect(struct snd_card *card); 295 297 int snd_card_free(struct snd_card *card); 296 298 int snd_card_register(struct snd_card *card); … … 307 309 int snd_device_register(struct snd_card *card, void *device_data); 308 310 int snd_device_register_all(struct snd_card *card); 311 int snd_device_disconnect_all(struct snd_card *card); 309 312 int snd_device_free(struct snd_card *card, void *device_data); 310 313 int snd_device_free_all(struct snd_card *card, snd_device_cmd_t cmd); … … 314 317 #define DMA_MODE_NO_ENABLE 0x0100 315 318 316 void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode);319 void snd_dma_program(unsigned long dma, const void *buf, unsigned int size, unsigned short mode); 317 320 void snd_dma_disable(unsigned long dma); 318 321 unsigned int snd_dma_residue(unsigned long dma); -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/emu10k1.h
r84 r206 1520 1520 int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct snd_hwdep ** rhwdep); 1521 1521 1522 irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id );1522 irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *); 1523 1523 1524 1524 void snd_emu10k1_voice_init(struct snd_emu10k1 * emu, int voice);
Note:
See TracChangeset
for help on using the changeset viewer.
