Changeset 260 for GPL/branches


Ignore:
Timestamp:
Oct 15, 2007, 1:51:34 AM (18 years ago)
Author:
Brendan Oakley
Message:

Merged to ALSA 0.9.6

Location:
GPL/branches/alsa-resync1/alsa-kernel
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/core/info.c

    r250 r260  
    294294             !entry->c.text.read_size) ||
    295295            (entry->content == SNDRV_INFO_CONTENT_DATA &&
    296              entry->c.ops->read == NULL) ||
    297             entry->content == SNDRV_INFO_CONTENT_DEVICE) {
     296                     entry->c.ops->read == NULL)) {
    298297            err = -ENODEV;
    299298            goto __error;
     
    304303             !entry->c.text.write_size) ||
    305304            (entry->content == SNDRV_INFO_CONTENT_DATA &&
    306              entry->c.ops->write == NULL) ||
    307             entry->content == SNDRV_INFO_CONTENT_DEVICE) {
     305                     entry->c.ops->write == NULL)) {
    308306            err = -ENODEV;
    309307            goto __error;
  • GPL/branches/alsa-resync1/alsa-kernel/core/pcm_lib.c

    r250 r260  
    7070        if (frames > runtime->silence_size)
    7171            frames = runtime->silence_size;
    72                 else
    73                         frames = runtime->silence_threshold;
    7472    } else {
    7573        if (new_hw_ptr == ULONG_MAX) {  /* initialization */
  • GPL/branches/alsa-resync1/alsa-kernel/core/pcm_memory.c

    r227 r260  
    2323#include <asm/io.h>
    2424#include <linux/time.h>
     25#include <linux/init.h>
    2526#include <sound/core.h>
    2627#include <sound/pcm.h>
  • GPL/branches/alsa-resync1/alsa-kernel/core/rtctimer.c

    r224 r260  
    5858};
    5959
    60 int rtctimer_freq = RTC_FREQ;           /* frequency */
     60static int rtctimer_freq = RTC_FREQ;            /* frequency */
    6161static snd_timer_t *rtctimer;
    6262static atomic_t rtc_inc = ATOMIC_INIT(0);
     
    183183MODULE_LICENSE("GPL");
    184184
     185#ifndef MODULE
     186/* format is: snd-rtctimer=freq */
     187
     188static int __init rtctimer_setup(char *str)
     189{
     190        (void)(get_option(&str,&rtctimer_freq) == 2);
     191        return 1;
     192}
     193
     194__setup("snd-rtctimer=", rtctimer_setup);
     195#endif /* ifndef MODULE */
     196
    185197#endif /* CONFIG_RTC || CONFIG_RTC_MODULE */
  • GPL/branches/alsa-resync1/alsa-kernel/drivers/dummy.c

    r250 r260  
    293293    /*  info:             */   (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
    294294                                SNDRV_PCM_INFO_MMAP_VALID),
    295                                 /*      formats:          */    USE_FORMATS,
    296                                 /*      rates:            */    USE_RATE,
    297                                 /*      rate_min:         */    USE_RATE_MIN,
    298                                 /*      rate_max:         */    USE_RATE_MAX,
    299                                 /*      channels_min:     */    USE_CHANNELS_MIN,
    300                                 /*      channels_max:     */    USE_CHANNELS_MAX,
    301                                 /*      buffer_bytes_max: */    MAX_BUFFER_SIZE,
    302                                 /*      period_bytes_min: */    64,
    303                                 /*      period_bytes_max: */    MAX_BUFFER_SIZE,
    304                                 /*      periods_min:      */    USE_PERIODS_MIN,
    305                                 /*      periods_max:      */    USE_PERIODS_MAX,
    306                                 /*      fifo_size:        */    0,
     295        .formats =              USE_FORMATS,
     296        .rates =                USE_RATE,
     297        .rate_min =             USE_RATE_MIN,
     298        .rate_max =             USE_RATE_MAX,
     299        .channels_min =         USE_CHANNELS_MIN,
     300        .channels_max =         USE_CHANNELS_MAX,
     301        .buffer_bytes_max =     MAX_BUFFER_SIZE,
     302        .period_bytes_min =     64,
     303        .period_bytes_max =     MAX_BUFFER_SIZE,
     304        .periods_min =          USE_PERIODS_MIN,
     305        .periods_max =          USE_PERIODS_MAX,
     306        .fifo_size =            0,
    307307};
    308308
     
    311311    /*  info:             */    (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
    312312                                 SNDRV_PCM_INFO_MMAP_VALID),
    313                                  /*     formats:          */    USE_FORMATS,
    314                                  /*     rates:            */    USE_RATE,
    315                                  /*     rate_min:         */    USE_RATE_MIN,
    316                                  /*     rate_max:         */    USE_RATE_MAX,
    317                                  /*     channels_min:     */    USE_CHANNELS_MIN,
    318                                  /*     channels_max:     */    USE_CHANNELS_MAX,
    319                                  /*     buffer_bytes_max: */    MAX_BUFFER_SIZE,
    320                                  /*     period_bytes_min: */    64,
    321                                  /*     period_bytes_max: */    MAX_BUFFER_SIZE,
    322                                  /*     periods_min:      */    USE_PERIODS_MIN,
    323                                  /*     periods_max:      */    USE_PERIODS_MAX,
    324                                  /*     fifo_size:        */    0,
     313        .formats =              USE_FORMATS,
     314        .rates =                USE_RATE,
     315        .rate_min =             USE_RATE_MIN,
     316        .rate_max =             USE_RATE_MAX,
     317        .channels_min =         USE_CHANNELS_MIN,
     318        .channels_max =         USE_CHANNELS_MAX,
     319        .buffer_bytes_max =     MAX_BUFFER_SIZE,
     320        .period_bytes_min =     64,
     321        .period_bytes_max =     MAX_BUFFER_SIZE,
     322        .periods_min =          USE_PERIODS_MIN,
     323        .periods_max =          USE_PERIODS_MAX,
     324        .fifo_size =            0,
    325325};
    326326
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h

    r250 r260  
    221221
    222222extern int snd_ecards_limit;
    223 extern int device_mode;
    224 extern int device_gid;
    225 extern int device_uid;
    226223
    227224void snd_request_card(int card);
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm_oss.h

    r222 r260  
    3131                     direct:1,
    3232                     block:1,
    33                      nonblock:1;
     33                     nonblock:1,
     34                     wholefrag:1,
     35                     nosilence:1;
    3436        unsigned int periods;
    3537        unsigned int period_size;
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/version.h

    r256 r260  
    11/* include/version.h.  Generated by configure.  */
    2 #define CONFIG_SND_VERSION "0.9.5"
     2#define CONFIG_SND_VERSION "0.9.6"
    33#define CONFIG_SND_DATE ""
  • GPL/branches/alsa-resync1/alsa-kernel/isa/ad1848/ad1848_lib.c

    r250 r260  
    2525#include <linux/init.h>
    2626#include <linux/interrupt.h>
     27#include <linux/pm.h>
    2728#include <linux/slab.h>
    2829#include <linux/ioport.h>
  • GPL/branches/alsa-resync1/alsa-kernel/isa/cmi8330.c

    r246 r260  
    298298{
    299299        struct pnp_dev *pdev;
    300         struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
     300        struct pnp_resource_table * cfg = kmalloc(sizeof(struct pnp_resource_table), GFP_KERNEL);
    301301        int err;
    302302
  • GPL/branches/alsa-resync1/alsa-kernel/isa/es18xx.c

    r246 r260  
    19741974{
    19751975        struct pnp_dev *pdev;
    1976         struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
     1976        struct pnp_resource_table * cfg = kmalloc(sizeof(struct pnp_resource_table), GFP_KERNEL);
    19771977        int err;
    19781978
  • GPL/branches/alsa-resync1/alsa-kernel/isa/sb/sb16.c

    r250 r260  
    369369#endif /* CONFIG_PNP */
    370370
     371static void snd_sb16_free(snd_card_t *card)
     372{
     373        struct snd_card_sb16 *acard = (struct snd_card_sb16 *)card->private_data;
     374       
     375        if (acard == NULL)
     376                return;
     377        if (acard->fm_res) {
     378                release_resource(acard->fm_res);
     379                kfree_nocheck(acard->fm_res);
     380        }
     381}
     382
    371383static int __init snd_sb16_probe(int dev,
    372384                                 struct pnp_card_link *pcard,
     
    393405        return -ENOMEM;
    394406        acard = (struct snd_card_sb16 *) card->private_data;
     407        card->private_free = snd_sb16_free;
    395408#ifdef CONFIG_PNP
    396409        if (isapnp[dev]) {
     
    483496        if (fm_port[dev] > 0) {
    484497                if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2,
    485                                     OPL3_HW_OPL3, fm_port[dev] == port[dev],
     498                                    OPL3_HW_OPL3,
     499                                    fm_port[dev] == port[dev] || fm_port[dev] == 0x388,
    486500                                &opl3) < 0) {
    487501                        snd_printk(KERN_ERR PFX "no OPL device at 0x%lx-0x%lx\n",
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ak4xxx.c

    r250 r260  
    123123 * initialize the akm4xxx_t record with the template
    124124 */
    125 int __devinit snd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp,
    126                                        const struct snd_ak4xxx_private *_priv, ice1712_t *ice)
     125int snd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp,
     126                             const struct snd_ak4xxx_private *_priv, ice1712_t *ice)
    127127{
    128128        struct snd_ak4xxx_private *priv;
     
    146146}
    147147
    148 void __devexit snd_ice1712_akm4xxx_free(ice1712_t *ice)
     148void snd_ice1712_akm4xxx_free(ice1712_t *ice)
    149149{
    150150        unsigned int akidx;
     
    162162 * build AK4xxx controls
    163163 */
    164 int __devinit snd_ice1712_akm4xxx_build_controls(ice1712_t *ice)
     164int snd_ice1712_akm4xxx_build_controls(ice1712_t *ice)
    165165{
    166166        unsigned int akidx;
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ice1712.h

    r250 r260  
    8787 */
    8888
    89 #define ICE1712_IREG_PBK_COUNT_HI       0x00
    90 #define ICE1712_IREG_PBK_COUNT_LO       0x01
     89#define ICE1712_IREG_PBK_COUNT_LO       0x00
     90#define ICE1712_IREG_PBK_COUNT_HI       0x01
    9191#define ICE1712_IREG_PBK_CTRL           0x02
    9292#define ICE1712_IREG_PBK_LEFT           0x03    /* left volume */
     
    9696#define ICE1712_IREG_PBK_RATE_MID       0x07
    9797#define ICE1712_IREG_PBK_RATE_HI        0x08
    98 #define ICE1712_IREG_CAP_COUNT_HI       0x10
    99 #define ICE1712_IREG_CAP_COUNT_LO       0x11
     98#define ICE1712_IREG_CAP_COUNT_LO       0x10
     99#define ICE1712_IREG_CAP_COUNT_HI       0x11
    100100#define ICE1712_IREG_CAP_CTRL           0x12
    101101#define ICE1712_IREG_GPIO_DATA          0x20
  • GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ice1724.c

    r250 r260  
    15841584
    15851585        if ((inb(ICEREG1724(ice, I2C_CTRL)) & VT1724_I2C_EEPROM) == 0) {
    1586                 snd_printk("ICE1724 has not detected EEPROM\n");
    1587                 return -EIO;
     1586                snd_printk(KERN_WARNING "ICE1724 has not detected EEPROM\n");
     1587                // return -EIO;
    15881588        }
    15891589        ice->eeprom.subvendor = (snd_vt1724_read_i2c(ice, dev, 0x00) << 0) |
  • GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c

    r256 r260  
    11621162        static unsigned int i, rates[] = {
    11631163                /* ATTENTION: these values depend on the definition in pcm.h! */
    1164                 5512, 8000, 11025, 16000, 22050, 32000, 44100, 480000
     1164                5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000
    11651165        };
    11661166    int err;
  • GPL/branches/alsa-resync1/alsa-kernel/pci/korg1212/korg1212.c

    r250 r260  
    20712071        snd_iprintf(buffer, " (index #%d)\n", korg1212->card->number + 1);
    20722072        snd_iprintf(buffer, "\nGeneral settings\n");
    2073         snd_iprintf(buffer, "    period size: %d bytes\n", K1212_PERIOD_BYTES);
     2073        snd_iprintf(buffer, "    period size: %Zd bytes\n", K1212_PERIOD_BYTES);
    20742074        snd_iprintf(buffer, "     clock mode: %s\n", clockSourceName[korg1212->clkSrcRate] );
    20752075        snd_iprintf(buffer, "  left ADC Sens: %d\n", korg1212->leftADCInSens );
     
    23372337
    23382338        if (korg1212->sharedBufferPtr == NULL) {
    2339                 snd_printk(KERN_ERR "can not allocate shared buffer memory (%d bytes)\n", sizeof(KorgSharedBuffer));
     2339                snd_printk(KERN_ERR "can not allocate shared buffer memory (%Zd bytes)\n", sizeof(KorgSharedBuffer));
    23402340                return -ENOMEM;
    23412341        }
     
    23862386        korg1212->dspCodeSize = sizeof (dspCode);
    23872387
    2388         korg1212->VolumeTablePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->volumeData;
    2389         korg1212->RoutingTablePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->routeData;
    2390         korg1212->AdatTimeCodePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->AdatTimeCode;
     2388        korg1212->VolumeTablePhy = korg1212->sharedBufferPhy +
     2389                offsetof(KorgSharedBuffer, volumeData);
     2390        korg1212->RoutingTablePhy = korg1212->sharedBufferPhy +
     2391                offsetof(KorgSharedBuffer, routeData);
     2392        korg1212->AdatTimeCodePhy = korg1212->sharedBufferPhy +
     2393                offsetof(KorgSharedBuffer, AdatTimeCode);
    23912394
    23922395        korg1212->dspMemPtr = snd_malloc_pci_pages(korg1212->pci, korg1212->dspCodeSize, &phys_addr);
  • GPL/branches/alsa-resync1/alsa-kernel/pci/rme9652/hdsp.c

    r256 r260  
    7878#define MULTIFACE_SS_CHANNELS    18
    7979#define MULTIFACE_DS_CHANNELS    14
    80 #define H9652_DS_CHANNELS        26
    81 #define H9652_SS_CHANNELS        14
     80#define H9652_SS_CHANNELS        26
     81#define H9652_DS_CHANNELS        14
    8282
    8383/* Write registers. These are defined as byte-offsets from the iobase value.
     
    645645static inline int hdsp_check_for_firmware (hdsp_t *hdsp)
    646646{
     647        if (hdsp->io_type == H9652) return 0;
    647648        if ((hdsp_read (hdsp, HDSP_statusRegister) & HDSP_DllError) != 0) {
    648649                snd_printk("firmware not present.\n");
     
    38023803        switch (cmd) {
    38033804        case SNDRV_HDSP_IOCTL_GET_PEAK_RMS:
     3805                if (hdsp->io_type == H9652) {
     3806                    snd_printk("hardware metering isn't supported yet for hdsp9652 cards\n");
     3807                    return -EINVAL;
     3808                }
    38043809                if (!(hdsp->state & HDSP_FirmwareLoaded)) {
    38053810                        snd_printk("firmware needs to be uploaded to the card.\n");     
Note: See TracChangeset for help on using the changeset viewer.