Changeset 106
- Timestamp:
- May 20, 2007, 1:00:05 AM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/core/hwdep.c
r34 r106 21 21 22 22 #include <sound/driver.h> 23 #include <linux/major.h> 24 #include <linux/init.h> 25 #include <linux/slab.h> 26 #include <linux/time.h> 27 #include <sound/core.h> 23 28 #include <sound/control.h> 24 29 #include <sound/minors.h> … … 69 74 static int snd_hwdep_open(struct inode *inode, struct file * file) 70 75 { 71 int major = MAJOR(inode->i_rdev);76 int major = major(inode->i_rdev); 72 77 int cardnum; 73 78 int device; … … 78 83 switch (major) { 79 84 case CONFIG_SND_MAJOR: 80 cardnum = SNDRV_MINOR_CARD(MINOR(inode->i_rdev));81 device = SNDRV_MINOR_DEVICE(MINOR(inode->i_rdev)) - SNDRV_MINOR_HWDEP;85 cardnum = SNDRV_MINOR_CARD(minor(inode->i_rdev)); 86 device = SNDRV_MINOR_DEVICE(minor(inode->i_rdev)) - SNDRV_MINOR_HWDEP; 82 87 break; 83 88 #ifdef CONFIG_SND_OSSEMUL 84 89 case SOUND_MAJOR: 85 cardnum = SNDRV_MINOR_OSS_CARD(MINOR(inode->i_rdev));90 cardnum = SNDRV_MINOR_OSS_CARD(minor(inode->i_rdev)); 86 91 device = 0; 87 92 break; … … 416 421 hwdep->card, hwdep->device, 417 422 &snd_hwdep_reg, name)) < 0) { 418 snd_printk("unable to register hardware dependant device %i:%i\n",423 snd_printk(KERN_ERR "unable to register hardware dependant device %i:%i\n", 419 424 hwdep->card->number, hwdep->device); 420 425 snd_hwdep_devices[idx] = NULL; … … 426 431 if (hwdep->oss_type >= 0) { 427 432 if ((hwdep->oss_type == SNDRV_OSS_DEVICE_TYPE_DMFM) && (hwdep->device != 0)) { 428 snd_printk ("only hwdep device 0 can be registered as OSS direct FM device!\n");433 snd_printk (KERN_WARNING "only hwdep device 0 can be registered as OSS direct FM device!\n"); 429 434 } else { 430 435 if (snd_register_oss_device(hwdep->oss_type, 431 436 hwdep->card, hwdep->device, 432 437 &snd_hwdep_reg, hwdep->oss_dev) < 0) { 433 snd_printk("unable to register OSS compatibility device %i:%i\n",438 snd_printk(KERN_ERR "unable to register OSS compatibility device %i:%i\n", 434 439 hwdep->card->number, hwdep->device); 435 440 } else -
GPL/branches/alsa-resync1/alsa-kernel/core/timer.c
r92 r106 20 20 */ 21 21 22 #define SNDRV_MAIN_OBJECT_FILE23 22 #include <sound/driver.h> 23 #include <linux/delay.h> 24 #include <linux/init.h> 25 #include <linux/slab.h> 26 #include <linux/time.h> 27 #include <sound/core.h> 24 28 #include <sound/timer.h> 25 29 #include <sound/control.h> … … 27 31 #include <sound/minors.h> 28 32 #include <sound/initval.h> 29 #ifdef CONFIG_KMOD30 33 #include <linux/kmod.h> 31 #endif32 34 #ifdef CONFIG_KERNELD 33 35 #include <linux/kerneld.h> … … 84 86 85 87 static void snd_timer_reschedule(snd_timer_t * timer, unsigned long ticks_left); 88 89 #ifndef TARGET_OS2 90 static inline void dec_mod_count(struct module *module) 91 { 92 if (module) 93 __MOD_DEC_USE_COUNT(module); 94 } 95 #else /* TARGET_OS2 */ 96 #define dec_mod_count(a) (*(unsigned long *)a)-- 97 #endif /* TARGET_OS2 */ 86 98 87 99 /* -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/control.h
r100 r106 26 26 27 27 typedef struct sndrv_aes_iec958 snd_aes_iec958_t; 28 typedef struct snd rv_ctl_card_info snd_ctl_card_info_t;29 typedef struct snd rv_ctl_elem_id snd_ctl_elem_id_t;30 typedef struct snd rv_ctl_elem_list snd_ctl_elem_list_t;31 typedef struct snd rv_ctl_elem_info snd_ctl_elem_info_t;32 typedef struct snd rv_ctl_elem_value snd_ctl_elem_value_t;28 typedef struct snd_ctl_card_info snd_ctl_card_info_t; 29 typedef struct snd_ctl_elem_id snd_ctl_elem_id_t; 30 typedef struct snd_ctl_elem_list snd_ctl_elem_list_t; 31 typedef struct snd_ctl_elem_info snd_ctl_elem_info_t; 32 typedef struct snd_ctl_elem_value snd_ctl_elem_value_t; 33 33 typedef enum sndrv_ctl_event_type snd_ctl_event_type_t; 34 34 typedef struct sndrv_ctl_event snd_ctl_event_t; -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/driver.h
r105 r106 90 90 #define snd_enter_user() 0 91 91 #define snd_leave_user(a) 92 #define dec_mod_count(a) (*(unsigned long *)a)--93 92 #endif 94 93 -
GPL/branches/alsa-resync1/alsa-kernel/isa/opl3sa2.c
r92 r106 760 760 opl3_t *opl3; 761 761 static snd_device_ops_t ops = { 762 dev_free:snd_opl3sa2_dev_free,762 /* dev_free: */ snd_opl3sa2_dev_free, 763 763 }; 764 764 int err; … … 853 853 } 854 854 #ifdef CONFIG_PM 855 /* Power Management */856 chip->pm_dev = pm_register(PM_ISA_DEV, 0, snd_opl3sa2_pm_callback);857 if (chip->pm_dev) {858 chip->pm_dev->data = chip;859 /* remember callbacks for cs4231 - they are called inside860 * opl3sa2 pm callback861 */862 855 chip->cs4231_suspend = chip->cs4231->suspend; 863 856 chip->cs4231_resume = chip->cs4231->resume; … … 865 858 chip->cs4231->suspend = NULL; 866 859 chip->cs4231->resume = NULL; 867 /* set control api callback */ 868 card->set_power_state = snd_opl3sa2_set_power_state; 869 card->pm_private_data = chip; 870 } 860 snd_card_set_isa_pm_callback(card, snd_opl3sa2_suspend, snd_opl3sa2_resume, chip); 871 861 #endif 872 862 -
GPL/branches/alsa-resync1/alsa-kernel/pci/es1968.c
r92 r106 97 97 #define __SND_OSS_COMPAT__ 98 98 #include <sound/driver.h> 99 #include <asm/io.h> 100 #include <linux/delay.h> 101 #include <linux/interrupt.h> 102 #include <linux/init.h> 103 #include <linux/slab.h> 104 #include <sound/core.h> 99 105 #include <sound/pcm.h> 100 106 #include <sound/mpu401.h> … … 1911 1917 es->count += diff; 1912 1918 1913 if(es->count > es->frag_size) {1919 while (es->count > es->frag_size) { 1914 1920 spin_unlock(&chip->substream_lock); 1915 1921 snd_pcm_period_elapsed(subs); -
GPL/branches/alsa-resync1/alsa-kernel/pci/maestro3.c
r92 r106 33 33 34 34 #include <sound/driver.h> 35 #include <asm/io.h> 36 #include <linux/delay.h> 37 #include <linux/interrupt.h> 38 #include <linux/init.h> 39 #include <linux/slab.h> 40 #include <linux/vmalloc.h> 41 #include <sound/core.h> 35 42 #include <sound/info.h> 36 43 #include <sound/control.h> … … 42 49 MODULE_AUTHOR("Zach Brown <zab@zabbo.net>, Takashi Iwai <tiwai@suse.de>"); 43 50 MODULE_DESCRIPTION("ESS Maestro3 PCI"); 51 MODULE_LICENSE("GPL"); 44 52 MODULE_CLASSES("{sound}"); 45 53 MODULE_DEVICES("{{ESS,Maestro3 PCI}," … … 2804 2812 chip->suspend_mem = vmalloc(sizeof(u16) * (REV_B_CODE_MEMORY_LENGTH + REV_B_DATA_MEMORY_LENGTH)); 2805 2813 if (chip->suspend_mem == NULL) 2806 snd_printk("can't allocate apm buffer\n"); 2814 snd_printk(KERN_WARNING "can't allocate apm buffer\n"); 2815 else 2816 snd_card_set_pm_callback(card, m3_suspend, m3_resume, chip); 2807 2817 #endif 2808 2818 -
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_main.c
r84 r106 28 28 */ 29 29 30 #define SNDRV_MAIN_OBJECT_FILE30 #define __NO_VERSION__ 31 31 #include <sound/driver.h> 32 #include <asm/io.h> 33 #include <linux/delay.h> 34 #include <linux/init.h> 35 #include <linux/slab.h> 36 #include <linux/vmalloc.h> 37 #include <sound/core.h> 32 38 #include <sound/info.h> 33 39 #include <sound/control.h> 34 40 #include <sound/trident.h> 41 #include <sound/asoundef.h> 35 42 36 43 static int snd_trident_pcm_mixer_build(struct snd_trident *trident, struct snd_trident_voice* voice, snd_pcm_substream_t *substream); -
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_memory.c
r34 r106 24 24 */ 25 25 26 #define __NO_VERSION__ 26 27 #include <sound/driver.h> 28 #include <asm/io.h> 27 29 #include <linux/pci.h> 30 #include <linux/time.h> 31 #include <sound/core.h> 28 32 #include <sound/trident.h> 29 33 -
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_synth.c
r34 r106 20 20 */ 21 21 22 #define SNDRV_MAIN_OBJECT_FILE23 22 #include <sound/driver.h> 23 #include <asm/io.h> 24 #include <linux/init.h> 25 #include <linux/slab.h> 24 26 #include <linux/pci.h> 27 #include <sound/core.h> 25 28 #include <sound/trident.h> 26 29 #include <sound/seq_device.h> -
GPL/branches/alsa-resync1/alsa-kernel/pci/ymfpci/ymfpci_main.c
r84 r106 25 25 */ 26 26 27 #define __NO_VERSION__ 27 28 #include <sound/driver.h> 29 #include <asm/io.h> 30 #include <linux/delay.h> 31 #include <linux/init.h> 32 #include <linux/slab.h> 33 #include <sound/core.h> 28 34 #include <sound/control.h> 29 35 #include <sound/info.h> 30 36 #include <sound/ymfpci.h> 37 #include <sound/asoundef.h> 38 #include <sound/mpu401.h> 39 #ifdef TARGET_OS2 31 40 #include <sound/timer.h> 41 #endif /* TARGET_OS2 */ 32 42 33 43 /*
Note:
See TracChangeset
for help on using the changeset viewer.