Changeset 256


Ignore:
Timestamp:
Oct 14, 2007, 6:23:32 AM (18 years ago)
Author:
Brendan Oakley
Message:

Re-merged to 0.9.5 a load of stuff that was previously missed

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  
    5151#define SNDRV_GET_ID
    5252#include <sound/initval.h>
     53
     54/* hack: OSS defines midi_devs, so undefine it (versioned symbols) */
     55#undef midi_devs
    5356
    5457MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>");
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/config.h

    r246 r256  
    4444#define EXPORT_SYMBOL(a)
    4545#define CONFIG_SOUND
    46 #define CONFIG_SND_VERSION      "0.9.3"
    4746#define ATTRIBUTE_UNUSED
    4847
  • 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  
    2020
    2121#include <sound/driver.h>
    22 #include <asm/io.h>
    23 #include <asm/dma.h>
    2422#include <linux/delay.h>
    2523#include <linux/init.h>
     24#include <linux/interrupt.h>
    2625#include <linux/slab.h>
    2726#include <linux/ioport.h>
    2827#include <sound/core.h>
    2928#include <sound/ad1816a.h>
     29
     30#include <asm/io.h>
     31#include <asm/dma.h>
    3032
    3133MODULE_AUTHOR("Massimo Piccioni <dafastidio@libero.it>");
     
    295297        if (!(chip->mode & AD1816A_MODE_PLAYBACK))
    296298                return 0;
    297         ptr = chip->p_dma_size - snd_dma_residue(chip->dma1);
     299        ptr = snd_dma_pointer(chip->dma1, chip->p_dma_size);
    298300        return bytes_to_frames(substream->runtime, ptr);
    299301}
     
    305307        if (!(chip->mode & AD1816A_MODE_CAPTURE))
    306308                return 0;
    307         ptr = chip->c_dma_size - snd_dma_residue(chip->dma2);
     309        ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size);
    308310        return bytes_to_frames(substream->runtime, ptr);
    309311}
     
    934936{
    935937        snd_card_t *card;
    936         int err, idx;
     938        unsigned int idx;
     939        int err;
    937940
    938941        snd_assert(chip != NULL && chip->card != NULL, return -EINVAL);
  • GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_irq.c

    r246 r256  
    136136        snd_info_entry_t *entry;
    137137
    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);
    151140}
    152141
    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 }
    160142#endif
  • GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_main.c

    r250 r256  
    2121
    2222#include <sound/driver.h>
    23 #include <asm/dma.h>
    2423#include <linux/init.h>
     24#include <linux/interrupt.h>
    2525#include <linux/delay.h>
    2626#include <linux/slab.h>
     
    3030#include <sound/control.h>
    3131
     32#include <asm/dma.h>
     33
    3234MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
    3335MODULE_DESCRIPTION("Routines for Gravis UltraSound soundcards");
     
    3840static int snd_gus_init_dma_irq(snd_gus_card_t * gus, int latches);
    3941
    40 static inline void dec_mod_count(struct module *module)
    41 {
    42         if (module)
    43                 __MOD_DEC_USE_COUNT(module);
    44 }
    45 
    4642int snd_gus_use_inc(snd_gus_card_t * gus)
    4743{
    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))
    5145                return 0;
    52         }
    5346        return 1;
    5447}
     
    5649void snd_gus_use_dec(snd_gus_card_t * gus)
    5750{
    58         dec_mod_count(gus->card->module);
    59         MOD_DEC_USE_COUNT;
     51        module_put(gus->card->module);
    6052}
    6153
  • GPL/branches/alsa-resync1/alsa-kernel/isa/gus/gus_mem_proc.c

    r210 r256  
    105105        snd_info_entry_t *entry;
    106106
    107         memset(&gus->gf1.rom_entries, 0, sizeof(gus->gf1.rom_entries));
    108         memset(&gus->gf1.ram_entries, 0, sizeof(gus->gf1.ram_entries));
    109107        for (idx = 0; idx < 4; idx++) {
    110108                if (gus->gf1.mem_alloc.banks_8[idx].size > 0) {
    111109                        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)
    114111                                return -ENOMEM;
    115                         }
    116112                        priv->gus = gus;
    117113                        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)) {
    120115                                entry->content = SNDRV_INFO_CONTENT_DATA;
    121116                                entry->private_data = priv;
     
    124119                                priv->address = gus->gf1.mem_alloc.banks_8[idx].address;
    125120                                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                                 }
    130121                        }
    131                         gus->gf1.ram_entries[idx] = entry;
    132122                }
    133123        }
     
    135125                if (gus->gf1.rom_present & (1 << idx)) {
    136126                        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)
    139128                                return -ENOMEM;
    140                         }
    141129                        priv->rom = 1;
    142130                        priv->gus = gus;
    143131                        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)) {
    146133                                entry->content = SNDRV_INFO_CONTENT_DATA;
    147134                                entry->private_data = priv;
     
    150137                                priv->address = idx * 4096 * 1024;
    151138                                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                                 }
    156139                        }
    157                         gus->gf1.rom_entries[idx] = entry;
    158140                }
    159141        }
    160142        return 0;
    161143}
    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  
    411411        snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1);   /* disable IRQ & DAC */
    412412        snd_gf1_timers_done(gus);
    413 #ifdef CONFIG_SND_DEBUG
    414         snd_gus_irq_profile_done(gus);
    415 #endif
    416         snd_gf1_mem_proc_done(gus);
    417413        snd_gf1_mem_done(gus);
    418414#if 0
  • GPL/branches/alsa-resync1/alsa-kernel/isa/opl3sa2.c

    r250 r256  
    511511        snd_ctl_elem_id_t id1, id2;
    512512        snd_kcontrol_t *kctl;
    513         int idx, err;
     513        unsigned int idx;
     514        int err;
    514515
    515516        memset(&id1, 0, sizeof(id1));
  • GPL/branches/alsa-resync1/alsa-kernel/isa/sb/sb_common.c

    r210 r256  
    2222
    2323#include <sound/driver.h>
    24 #include <asm/io.h>
    25 #include <asm/dma.h>
    2624#include <linux/delay.h>
    2725#include <linux/init.h>
     26#include <linux/interrupt.h>
    2827#include <linux/slab.h>
    2928#include <linux/ioport.h>
     
    3130#include <sound/sb.h>
    3231#include <sound/initval.h>
     32
     33#include <asm/io.h>
     34#include <asm/dma.h>
    3335
    3436MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
     
    288290EXPORT_SYMBOL(snd_sbmixer_read);
    289291EXPORT_SYMBOL(snd_sbmixer_new);
     292EXPORT_SYMBOL(snd_sbmixer_add_ctl);
    290293
    291294/*
  • GPL/branches/alsa-resync1/alsa-kernel/isa/wavefront/wavefront_midi.c

    r210 r256  
    378378                if ((midi->mode[mpu] & MPU401_MODE_OUTPUT_TRIGGER) == 0) {
    379379                        if (!midi->istimer) {
     380                                init_timer(&midi->timer);
    380381                                midi->timer.function = snd_wavefront_midi_output_timer;
    381382                                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  
    792792                {
    793793                        /* E */ 0x8000,0x8000,
    794                         /* F */ 0xffff,0xffff
     794                        /* F */ 0x8000,0x8000
    795795                }
    796796        };
     
    13581358                }
    13591359
    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); */
    13631361
    13641362                ins->nsrc_scb ++;
  • GPL/branches/alsa-resync1/alsa-kernel/pci/emu10k1/emu10k1.c

    r207 r256  
    101101static struct pci_device_id snd_emu10k1_ids[] = {
    102102    { 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) */
    103104    { 0x1102, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 },        /* Audigy */
    104105    { 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  
    565565                                 SNDRV_PCM_INFO_PAUSE |
    566566                                 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,
    579579};
    580580
     
    585585                                 SNDRV_PCM_INFO_PAUSE |
    586586                                 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,
    599599};
    600600
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/hoontech.c

    r212 r256  
    219219                snd_ice1712_hoontech_init,
    220220        },
     221        {
     222                ICE1712_SUBDEVICE_STDSP24_MEDIA7_1,
     223                "Hoontech STA DSP24 Media 7.1",
     224                snd_ice1712_hoontech_init,
     225        },
    221226        { } /* terminator */
    222227};
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/hoontech.h

    r212 r256  
    2525 */     
    2626
    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}," \
    2831
    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 */
    3034
    3135extern struct snd_ice1712_card_info snd_ice1712_hoontech_cards[];
  • GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c

    r210 r256  
    11601160    struct intel8x0 *chip = snd_pcm_substream_chip(substream);
    11611161    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        };
    11621166    int err;
    11631167
  • GPL/branches/alsa-resync1/alsa-kernel/pci/rme9652/hdsp.c

    r250 r256  
    2626#include <linux/delay.h>
    2727#include <linux/interrupt.h>
     28#include <linux/init.h>
    2829#include <linux/slab.h>
    2930#include <linux/pci.h>
     
    32313232        channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
    32323233        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;
    32343236        return count;
    32353237}
     
    32453247        channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
    32463248        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;
    32483251        return count;
    32493252}
  • GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_main.c

    r246 r256  
    17791779};
    17801780
    1781 
    17821781static snd_pcm_hardware_t snd_trident_spdif_7018 =
    17831782{
    1784     /*  .info =              */   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
    1785                                   SNDRV_PCM_INFO_BLOCK_TRANSFER |
    1786                                   SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_SYNC_START |
    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,
    18001799};
     1800
    18011801static void snd_trident_pcm_free_substream(snd_pcm_runtime_t *runtime)
    18021802{
     
    28852885        .name =         "PCM Chorus Playback Volume",
    28862886        .access =       SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE,
     2887        .count =        32,
    28872888        .info =         snd_trident_pcm_cvol_control_info,
    28882889        .get =          snd_trident_pcm_cvol_control_get,
Note: See TracChangeset for help on using the changeset viewer.