Changeset 256
- Timestamp:
- Oct 14, 2007, 6:23:32 AM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel
- Files:
-
- 6 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/drivers/virmidi.c
r212 r256 51 51 #define SNDRV_GET_ID 52 52 #include <sound/initval.h> 53 54 /* hack: OSS defines midi_devs, so undefine it (versioned symbols) */ 55 #undef midi_devs 53 56 54 57 MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>"); -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/config.h
r246 r256 44 44 #define EXPORT_SYMBOL(a) 45 45 #define CONFIG_SOUND 46 #define CONFIG_SND_VERSION "0.9.3"47 46 #define ATTRIBUTE_UNUSED 48 47 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/version.h
r92 r256 1 /* 2 * Configuration header file for compilation of the ALSA driver 3 */ 4 #define CONFIG_SND_DATE "04-29-2007" 5 6 #ifndef __ALSA_VERSION_H__ 7 #define __ALSA_VERSION_H__ 8 9 10 #endif //__ALSA_VERSION_H__ 1 /* include/version.h. Generated by configure. */ 2 #define CONFIG_SND_VERSION "0.9.5" 3 #define CONFIG_SND_DATE "" -
GPL/branches/alsa-resync1/alsa-kernel/isa/ad1816a/ad1816a_lib.c
r246 r256 20 20 21 21 #include <sound/driver.h> 22 #include <asm/io.h>23 #include <asm/dma.h>24 22 #include <linux/delay.h> 25 23 #include <linux/init.h> 24 #include <linux/interrupt.h> 26 25 #include <linux/slab.h> 27 26 #include <linux/ioport.h> 28 27 #include <sound/core.h> 29 28 #include <sound/ad1816a.h> 29 30 #include <asm/io.h> 31 #include <asm/dma.h> 30 32 31 33 MODULE_AUTHOR("Massimo Piccioni <dafastidio@libero.it>"); … … 295 297 if (!(chip->mode & AD1816A_MODE_PLAYBACK)) 296 298 return 0; 297 ptr = chip->p_dma_size - snd_dma_residue(chip->dma1);299 ptr = snd_dma_pointer(chip->dma1, chip->p_dma_size); 298 300 return bytes_to_frames(substream->runtime, ptr); 299 301 } … … 305 307 if (!(chip->mode & AD1816A_MODE_CAPTURE)) 306 308 return 0; 307 ptr = chip->c_dma_size - snd_dma_residue(chip->dma2);309 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); 308 310 return bytes_to_frames(substream->runtime, ptr); 309 311 } … … 934 936 { 935 937 snd_card_t *card; 936 int err, idx; 938 unsigned int idx; 939 int err; 937 940 938 941 snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); -
GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_irq.c
r246 r256 136 136 snd_info_entry_t *entry; 137 137 138 gus->irq_entry = NULL; 139 entry = snd_info_create_card_entry(gus->card, "gusirq", gus->card->proc_root); 140 if (entry) { 141 entry->content = SNDRV_INFO_CONTENT_TEXT; 142 entry->c.text.read_size = 512; 143 entry->c.text.read = snd_gus_irq_info_read; 144 entry->private_data = gus; 145 if (snd_info_register(entry) < 0) { 146 snd_info_free_entry(entry); 147 entry = NULL; 148 } 149 } 150 gus->irq_entry = entry; 138 if (! snd_card_proc_new(gus->card, "gusirq", &entry)) 139 snd_info_set_text_ops(entry, gus, snd_gus_irq_info_read); 151 140 } 152 141 153 void snd_gus_irq_profile_done(snd_gus_card_t *gus)154 {155 if (gus->irq_entry) {156 snd_info_unregister(gus->irq_entry);157 gus->irq_entry = NULL;158 }159 }160 142 #endif -
GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_main.c
r250 r256 21 21 22 22 #include <sound/driver.h> 23 #include <asm/dma.h>24 23 #include <linux/init.h> 24 #include <linux/interrupt.h> 25 25 #include <linux/delay.h> 26 26 #include <linux/slab.h> … … 30 30 #include <sound/control.h> 31 31 32 #include <asm/dma.h> 33 32 34 MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); 33 35 MODULE_DESCRIPTION("Routines for Gravis UltraSound soundcards"); … … 38 40 static int snd_gus_init_dma_irq(snd_gus_card_t * gus, int latches); 39 41 40 static inline void dec_mod_count(struct module *module)41 {42 if (module)43 __MOD_DEC_USE_COUNT(module);44 }45 46 42 int snd_gus_use_inc(snd_gus_card_t * gus) 47 43 { 48 MOD_INC_USE_COUNT; 49 if (!try_inc_mod_count(gus->card->module)) { 50 MOD_DEC_USE_COUNT; 44 if (!try_module_get(gus->card->module)) 51 45 return 0; 52 }53 46 return 1; 54 47 } … … 56 49 void snd_gus_use_dec(snd_gus_card_t * gus) 57 50 { 58 dec_mod_count(gus->card->module); 59 MOD_DEC_USE_COUNT; 51 module_put(gus->card->module); 60 52 } 61 53 -
GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_mem_proc.c
r210 r256 105 105 snd_info_entry_t *entry; 106 106 107 memset(&gus->gf1.rom_entries, 0, sizeof(gus->gf1.rom_entries));108 memset(&gus->gf1.ram_entries, 0, sizeof(gus->gf1.ram_entries));109 107 for (idx = 0; idx < 4; idx++) { 110 108 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { 111 109 priv = snd_magic_kcalloc(gus_proc_private_t, 0, GFP_KERNEL); 112 if (priv == NULL) { 113 snd_gf1_mem_proc_done(gus); 110 if (priv == NULL) 114 111 return -ENOMEM; 115 }116 112 priv->gus = gus; 117 113 sprintf(name, "gus-ram-%i", idx); 118 entry = snd_info_create_card_entry(gus->card, name, gus->card->proc_root); 119 if (entry) { 114 if (! snd_card_proc_new(gus->card, name, &entry)) { 120 115 entry->content = SNDRV_INFO_CONTENT_DATA; 121 116 entry->private_data = priv; … … 124 119 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; 125 120 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; 126 if (snd_info_register(entry) < 0) {127 snd_info_free_entry(entry);128 entry = NULL;129 }130 121 } 131 gus->gf1.ram_entries[idx] = entry;132 122 } 133 123 } … … 135 125 if (gus->gf1.rom_present & (1 << idx)) { 136 126 priv = snd_magic_kcalloc(gus_proc_private_t, 0, GFP_KERNEL); 137 if (priv == NULL) { 138 snd_gf1_mem_proc_done(gus); 127 if (priv == NULL) 139 128 return -ENOMEM; 140 }141 129 priv->rom = 1; 142 130 priv->gus = gus; 143 131 sprintf(name, "gus-rom-%i", idx); 144 entry = snd_info_create_card_entry(gus->card, name, gus->card->proc_root); 145 if (entry) { 132 if (! snd_card_proc_new(gus->card, name, &entry)) { 146 133 entry->content = SNDRV_INFO_CONTENT_DATA; 147 134 entry->private_data = priv; … … 150 137 priv->address = idx * 4096 * 1024; 151 138 priv->size = entry->size = gus->gf1.rom_memory; 152 if (snd_info_register(entry) < 0) {153 snd_info_free_entry(entry);154 entry = NULL;155 }156 139 } 157 gus->gf1.rom_entries[idx] = entry;158 140 } 159 141 } 160 142 return 0; 161 143 } 162 163 int snd_gf1_mem_proc_done(snd_gus_card_t * gus)164 {165 int idx;166 167 for (idx = 0; idx < 4; idx++) {168 if (gus->gf1.ram_entries[idx])169 snd_info_unregister(gus->gf1.ram_entries[idx]);170 }171 for (idx = 0; idx < 4; idx++) {172 if (gus->gf1.rom_entries[idx])173 snd_info_unregister(gus->gf1.rom_entries[idx]);174 }175 return 0;176 } -
GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_reset.c
r210 r256 411 411 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* disable IRQ & DAC */ 412 412 snd_gf1_timers_done(gus); 413 #ifdef CONFIG_SND_DEBUG414 snd_gus_irq_profile_done(gus);415 #endif416 snd_gf1_mem_proc_done(gus);417 413 snd_gf1_mem_done(gus); 418 414 #if 0 -
GPL/branches/alsa-resync1/alsa-kernel/isa/opl3sa2.c
r250 r256 511 511 snd_ctl_elem_id_t id1, id2; 512 512 snd_kcontrol_t *kctl; 513 int idx, err; 513 unsigned int idx; 514 int err; 514 515 515 516 memset(&id1, 0, sizeof(id1)); -
GPL/branches/alsa-resync1/alsa-kernel/isa/sb/sb_common.c
r210 r256 22 22 23 23 #include <sound/driver.h> 24 #include <asm/io.h>25 #include <asm/dma.h>26 24 #include <linux/delay.h> 27 25 #include <linux/init.h> 26 #include <linux/interrupt.h> 28 27 #include <linux/slab.h> 29 28 #include <linux/ioport.h> … … 31 30 #include <sound/sb.h> 32 31 #include <sound/initval.h> 32 33 #include <asm/io.h> 34 #include <asm/dma.h> 33 35 34 36 MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); … … 288 290 EXPORT_SYMBOL(snd_sbmixer_read); 289 291 EXPORT_SYMBOL(snd_sbmixer_new); 292 EXPORT_SYMBOL(snd_sbmixer_add_ctl); 290 293 291 294 /* -
GPL/branches/alsa-resync1/alsa-kernel/isa/wavefront/wavefront_midi.c
r210 r256 378 378 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT_TRIGGER) == 0) { 379 379 if (!midi->istimer) { 380 init_timer(&midi->timer); 380 381 midi->timer.function = snd_wavefront_midi_output_timer; 381 382 midi->timer.data = (unsigned long) substream->rmidi->card->private_data; -
GPL/branches/alsa-resync1/alsa-kernel/pci/cs46xx/dsp_spos_scb_lib.c
r215 r256 792 792 { 793 793 /* E */ 0x8000,0x8000, 794 /* F */ 0x ffff,0xffff794 /* F */ 0x8000,0x8000 795 795 } 796 796 }; … … 1358 1358 } 1359 1359 1360 if (pcm_channel_id != DSP_IEC958_CHANNEL || 1361 !(ins->spdif_status_out & DSP_SPDIF_STATUS_AC3_MODE)) 1362 cs46xx_dsp_set_src_sample_rate(chip,src_scb,sample_rate); 1360 /* cs46xx_dsp_set_src_sample_rate(chip,src_scb,sample_rate); */ 1363 1361 1364 1362 ins->nsrc_scb ++; -
GPL/branches/alsa-resync1/alsa-kernel/pci/emu10k1/emu10k1.c
r207 r256 101 101 static struct pci_device_id snd_emu10k1_ids[] = { 102 102 { 0x1102, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* EMU10K1 */ 103 { 0x1102, 0x0006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Dell OEM version (EMU10K1) */ 103 104 { 0x1102, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy */ 104 105 { 0x1102, 0x0008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy 2 Value SB0400 */ -
GPL/branches/alsa-resync1/alsa-kernel/pci/fm801.c
r210 r256 565 565 SNDRV_PCM_INFO_PAUSE | 566 566 SNDRV_PCM_INFO_MMAP_VALID), 567 /*.formats = */SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,568 /*.rates = */SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_48000,569 /*.rate_min = */5500,570 /*.rate_max = */48000,571 /*.channels_min = */1,572 /*.channels_max = */2,573 /*.buffer_bytes_max = */(128*1024),574 /*.period_bytes_min = */64,575 /*.period_bytes_max = */(128*1024),576 /*.periods_min = */1,577 /*.periods_max = */1024,578 /*.fifo_size = */0,567 .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE, 568 .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_48000, 569 .rate_min = 5500, 570 .rate_max = 48000, 571 .channels_min = 1, 572 .channels_max = 2, 573 .buffer_bytes_max = (128*1024), 574 .period_bytes_min = 64, 575 .period_bytes_max = (128*1024), 576 .periods_min = 1, 577 .periods_max = 1024, 578 .fifo_size = 0, 579 579 }; 580 580 … … 585 585 SNDRV_PCM_INFO_PAUSE | 586 586 SNDRV_PCM_INFO_MMAP_VALID), 587 /*.formats = */SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,588 /*.rates = */SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_48000,589 /*.rate_min = */5500,590 /*.rate_max = */48000,591 /*.channels_min = */1,592 /*.channels_max = */2,593 /*.buffer_bytes_max = */(128*1024),594 /*.period_bytes_min = */64,595 /*.period_bytes_max = */(128*1024),596 /*.periods_min = */1,597 /*.periods_max = */1024,598 /*.fifo_size = */0,587 .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE, 588 .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_48000, 589 .rate_min = 5500, 590 .rate_max = 48000, 591 .channels_min = 1, 592 .channels_max = 2, 593 .buffer_bytes_max = (128*1024), 594 .period_bytes_min = 64, 595 .period_bytes_max = (128*1024), 596 .periods_min = 1, 597 .periods_max = 1024, 598 .fifo_size = 0, 599 599 }; 600 600 -
GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/hoontech.c
r212 r256 219 219 snd_ice1712_hoontech_init, 220 220 }, 221 { 222 ICE1712_SUBDEVICE_STDSP24_MEDIA7_1, 223 "Hoontech STA DSP24 Media 7.1", 224 snd_ice1712_hoontech_init, 225 }, 221 226 { } /* terminator */ 222 227 }; -
GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/hoontech.h
r212 r256 25 25 */ 26 26 27 #define HOONTECH_DEVICE_DESC "{Hoontech SoundTrack DSP 24}," 27 #define HOONTECH_DEVICE_DESC \ 28 "{Hoontech SoundTrack DSP 24}," \ 29 "{Hoontech SoundTrack DSP 24 Value}," \ 30 "{Hoontech SoundTrack DSP 24 Media 7.1}," \ 28 31 29 #define ICE1712_SUBDEVICE_STDSP24 0x12141217 /* Hoontech SoundTrack Audio DSP 24 */ 32 #define ICE1712_SUBDEVICE_STDSP24 0x12141217 /* Hoontech SoundTrack Audio DSP 24 */ 33 #define ICE1712_SUBDEVICE_STDSP24_MEDIA7_1 0x16141217 /* Hoontech ST Audio DSP24 Media 7.1 */ 30 34 31 35 extern struct snd_ice1712_card_info snd_ice1712_hoontech_cards[]; -
GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c
r210 r256 1160 1160 struct intel8x0 *chip = snd_pcm_substream_chip(substream); 1161 1161 snd_pcm_runtime_t *runtime = substream->runtime; 1162 static unsigned int i, rates[] = { 1163 /* ATTENTION: these values depend on the definition in pcm.h! */ 1164 5512, 8000, 11025, 16000, 22050, 32000, 44100, 480000 1165 }; 1162 1166 int err; 1163 1167 -
GPL/branches/alsa-resync1/alsa-kernel/pci/rme9652/hdsp.c
r250 r256 26 26 #include <linux/delay.h> 27 27 #include <linux/interrupt.h> 28 #include <linux/init.h> 28 29 #include <linux/slab.h> 29 30 #include <linux/pci.h> … … 3231 3232 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); 3232 3233 snd_assert(channel_buf != NULL, return -EIO); 3233 copy_from_user(channel_buf + pos * 4, src, count * 4); 3234 if (copy_from_user(channel_buf + pos * 4, src, count * 4)) 3235 return -EFAULT; 3234 3236 return count; 3235 3237 } … … 3245 3247 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); 3246 3248 snd_assert(channel_buf != NULL, return -EIO); 3247 copy_to_user(dst, channel_buf + pos * 4, count * 4); 3249 if (copy_to_user(dst, channel_buf + pos * 4, count * 4)) 3250 return -EFAULT; 3248 3251 return count; 3249 3252 } -
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_main.c
r246 r256 1779 1779 }; 1780 1780 1781 1782 1781 static snd_pcm_hardware_t snd_trident_spdif_7018 = 1783 1782 { 1784 /* .info = */(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |1785 1786 1787 SNDRV_PCM_INFO_PAUSE /* | SNDRV_PCM_INFO_RESUME */),1788 /* .formats = */SNDRV_PCM_FMTBIT_S16_LE,1789 /* .rates = */SNDRV_PCM_RATE_48000,1790 /* .rate_min = */48000,1791 /* .rate_max = */48000,1792 /* .channels_min = */2,1793 /* .channels_max = */2,1794 /* .buffer_bytes_max = */(128*1024),1795 /* .period_bytes_min = */64,1796 /* .period_bytes_max = */(128*1024),1797 /* .periods_min = */1,1798 /* .periods_max = */1024,1799 /* .fifo_size = */0,1783 .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 1784 SNDRV_PCM_INFO_BLOCK_TRANSFER | 1785 SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_SYNC_START | 1786 SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME), 1787 .formats = SNDRV_PCM_FMTBIT_S16_LE, 1788 .rates = SNDRV_PCM_RATE_48000, 1789 .rate_min = 48000, 1790 .rate_max = 48000, 1791 .channels_min = 2, 1792 .channels_max = 2, 1793 .buffer_bytes_max = (128*1024), 1794 .period_bytes_min = 64, 1795 .period_bytes_max = (128*1024), 1796 .periods_min = 1, 1797 .periods_max = 1024, 1798 .fifo_size = 0, 1800 1799 }; 1800 1801 1801 static void snd_trident_pcm_free_substream(snd_pcm_runtime_t *runtime) 1802 1802 { … … 2885 2885 .name = "PCM Chorus Playback Volume", 2886 2886 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, 2887 .count = 32, 2887 2888 .info = snd_trident_pcm_cvol_control_info, 2888 2889 .get = snd_trident_pcm_cvol_control_get,
Note:
See TracChangeset
for help on using the changeset viewer.