Changeset 522


Ignore:
Timestamp:
Jul 22, 2010, 7:20:45 PM (15 years ago)
Author:
David Azarewicz
Message:

flush_workqueue hack, compiler warnings

Location:
GPL/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/core/seq/seq_timer.c

    r399 r522  
    4747                tick->resolution += s;
    4848        }
    49         if (tick->resolution <= 0)
     49        if (tick->resolution == 0)  /* DAZ was 'unsigned <= 0' */
    5050                tick->resolution = 1;
    5151        snd_seq_timer_update_tick(tick, 0);
     
    400400
    401401        cur_time = tmr->cur_time;
    402         if (tmr->running) { 
     402        if (tmr->running) {
    403403                struct timeval tm;
    404404                int usec;
     
    414414                snd_seq_sanity_real_time(&cur_time);
    415415        }
    416                
     416
    417417        return cur_time;       
    418418}
  • GPL/trunk/alsa-kernel/include/sound/adriver.h

    r305 r522  
     1Apparently this file is not used on OS2
    12#ifndef __SOUND_LOCAL_DRIVER_H
    23#define __SOUND_LOCAL_DRIVER_H
     
    678679#define schedule_work(w) snd_compat_schedule_work(w)
    679680struct workqueue_struct *snd_compat_create_workqueue(const char *name);
    680 #ifndef TARGET_OS2
    681 #define create_workqueue(name) snd_compat_create_workqueue((name))
    682 #endif
     681
    683682void snd_compat_flush_workqueue(struct workqueue_struct *wq);
    684683#define flush_workqueue(wq) snd_compat_flush_workqueue((wq));
    685684void snd_compat_destroy_workqueue(struct workqueue_struct *wq);
    686 #ifndef TARGET_OS2
    687 #define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));
    688 #endif
    689685int snd_compat_queue_work(struct workqueue_struct *wq, struct work_struct *work);
    690 #ifndef TARGET_OS2
    691 #define queue_work(wq, work) snd_compat_queue_work((wq), (work))
    692 #endif
    693686int snd_compat_queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *work, unsigned long delay);
    694 #ifndef TARGET_OS2
    695 #define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay))
    696 #endif
    697687#define schedule_delayed_work(work, delay) snd_compat_queue_delayed_work(NULL, (work), (delay))
    698688int snd_compat_cancel_delayed_work(struct delayed_work *work);
    699689#define cancel_delayed_work(work) snd_compat_cancel_delayed_work(work)
    700690#define flush_scheduled_work()
     691
     692#ifndef TARGET_OS2
     693#define create_workqueue(name) snd_compat_create_workqueue((name))
     694#define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));
     695#define queue_work(wq, work) snd_compat_queue_work((wq), (work))
     696#define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay))
     697#endif
     698
    701699#ifdef TARGET_OS2
    702700struct completion {
     
    963961        MODULE_PARM(name, SNDRV_MODULE_TYPE_##type)
    964962#else
    965 #define module_param_array(name, type, nump, perm) 
    966 #define module_param(name, type, perm) 
     963#define module_param_array(name, type, nump, perm)
     964#define module_param(name, type, perm)
    967965#endif /* TARGET_OS2 */
    968966#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10)
  • GPL/trunk/alsa-kernel/pci/ac97/ac97_codec.c

    r485 r522  
    23512351        power |= AC97_PD_PR2;   /* Analog Mixer powerdown (Vref on) */
    23522352        snd_ac97_write(ac97, AC97_POWERDOWN, power);
     2353#ifdef CONFIG_SND_AC97_POWER_SAVE
    23532354        if (ac97_is_power_save_mode(ac97)) {
    23542355                power |= AC97_PD_PR3;   /* Analog Mixer powerdown */
     
    23602361                snd_ac97_write(ac97, AC97_POWERDOWN, power);
    23612362        }
     2363#endif
    23622364}
    23632365
  • GPL/trunk/alsa-kernel/pci/atiixp.c

    r488 r522  
    513513        /* perform a software reset */
    514514        atiixp_update(chip, CMD, ATI_REG_CMD_AC_SOFT_RESET, ATI_REG_CMD_AC_SOFT_RESET);
     515#pragma disable_message (302)
    515516        atiixp_read(chip, CMD);
    516517        udelay(10);
     
    530531                }
    531532        }
     533#pragma enable_message (302)
    532534
    533535        /* deassert RESET and assert SYNC to make sure */
  • GPL/trunk/alsa-kernel/pci/ca0106/ca0106_proc.c

    r305 r522  
    66 *  FEATURES currently supported:
    77 *    See ca0106_main.c for features.
    8  * 
     8 *
    99 *  Changelog:
    1010 *    Support interrupts per period.
     
    273273}
    274274
    275 static void snd_ca0106_proc_iec958(struct snd_info_entry *entry, 
     275static void snd_ca0106_proc_iec958(struct snd_info_entry *entry,
    276276                                       struct snd_info_buffer *buffer)
    277277{
     
    284284                  (value & 0x200000) ? "SPDIF Locked" : "No SPDIF Lock",
    285285                  (value & 0x400000) ? "Audio Valid" : "No valid audio" );
    286         snd_iprintf(buffer, "Estimated sample rate: %u\n", 
     286        snd_iprintf(buffer, "Estimated sample rate: %u\n",
    287287                  ((value & 0xfffff) * 48000) / 0x8000 );
    288288        if (value & 0x200000) {
     
    295295}
    296296
    297 static void snd_ca0106_proc_reg_write32(struct snd_info_entry *entry, 
     297static void snd_ca0106_proc_reg_write32(struct snd_info_entry *entry,
    298298                                       struct snd_info_buffer *buffer)
    299299{
     
    305305                if (sscanf(line, "%x %x", &reg, &val) != 2)
    306306                        continue;
    307                 if ((reg < 0x40) && (reg >=0) && (val <= 0xffffffff) ) {
     307                if ((reg < 0x40) /* && (reg >=0) && (val <= 0xffffffff) DAZ */ ) {
    308308                        spin_lock_irqsave(&emu->emu_lock, flags);
    309309                        outl(val, emu->port + (reg & 0xfffffffc));
     
    313313}
    314314
    315 static void snd_ca0106_proc_reg_read32(struct snd_info_entry *entry, 
     315static void snd_ca0106_proc_reg_read32(struct snd_info_entry *entry,
    316316                                       struct snd_info_buffer *buffer)
    317317{
     
    329329}
    330330
    331 static void snd_ca0106_proc_reg_read16(struct snd_info_entry *entry, 
     331static void snd_ca0106_proc_reg_read16(struct snd_info_entry *entry,
    332332                                       struct snd_info_buffer *buffer)
    333333{
     
    345345}
    346346
    347 static void snd_ca0106_proc_reg_read8(struct snd_info_entry *entry, 
     347static void snd_ca0106_proc_reg_read8(struct snd_info_entry *entry,
    348348                                       struct snd_info_buffer *buffer)
    349349{
     
    361361}
    362362
    363 static void snd_ca0106_proc_reg_read1(struct snd_info_entry *entry, 
     363static void snd_ca0106_proc_reg_read1(struct snd_info_entry *entry,
    364364                                       struct snd_info_buffer *buffer)
    365365{
     
    379379}
    380380
    381 static void snd_ca0106_proc_reg_read2(struct snd_info_entry *entry, 
     381static void snd_ca0106_proc_reg_read2(struct snd_info_entry *entry,
    382382                                       struct snd_info_buffer *buffer)
    383383{
     
    397397}
    398398
    399 static void snd_ca0106_proc_reg_write(struct snd_info_entry *entry, 
     399static void snd_ca0106_proc_reg_write(struct snd_info_entry *entry,
    400400                                       struct snd_info_buffer *buffer)
    401401{
     
    406406                if (sscanf(line, "%x %x %x", &reg, &channel_id, &val) != 3)
    407407                        continue;
    408                 if ((reg < 0x80) && (reg >=0) && (val <= 0xffffffff) && (channel_id >=0) && (channel_id <= 3) )
     408                if ((reg < 0x80) /* && (reg >=0) && (val <= 0xffffffff) && (channel_id >=0) DAZ */ && (channel_id <= 3) )
    409409                        snd_ca0106_ptr_write(emu, reg, channel_id, val);
    410410        }
    411411}
    412412
    413 static void snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, 
     413static void snd_ca0106_proc_i2c_write(struct snd_info_entry *entry,
    414414                                       struct snd_info_buffer *buffer)
    415415{
     
    451451                entry->mode |= S_IWUSR;
    452452        }
    453         if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry)) 
     453        if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry))
    454454                snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2);
    455455        return 0;
  • GPL/trunk/alsa-kernel/pci/emu10k1/emu10k1_main.c

    r426 r522  
    712712}
    713713
     714#if kthread_create != 0 /* DAZ to stop compiler warning */
    714715static int emu1010_firmware_thread(void *data)
    715716{
     
    773774        return 0;
    774775}
     776#endif
    775777
    776778/*
  • GPL/trunk/alsa-kernel/pci/emu10k1/emu10k1x.c

    r464 r522  
    108108/********************************************************************************************************/
    109109#define PLAYBACK_LIST_ADDR      0x00            /* Base DMA address of a list of pointers to each period/size */
    110                                                 /* One list entry: 4 bytes for DMA address, 
     110                                                /* One list entry: 4 bytes for DMA address,
    111111                                                 * 4 bytes for period_size << 16.
    112112                                                 * One list entry is 8 bytes long.
     
    187187 *  - channel 2 is the center/lfe chanel
    188188 * Volume is controlled by the AC97 for the front and rear channels by
    189  * the PCM Playback Volume, Sigmatel Surround Playback Volume and 
     189 * the PCM Playback Volume, Sigmatel Surround Playback Volume and
    190190 * Surround Playback Volume. The Sigmatel 4-Speaker Stereo switch affects
    191191 * the front/rear channel mixing in the REAR OUT jack. When using the
     
    200200        int number;
    201201        int use;
    202  
     202
    203203        struct emu10k1x_pcm *epcm;
    204204};
     
    256256/* hardware definition */
    257257static struct snd_pcm_hardware snd_emu10k1x_playback_hw = {
    258         .info =                 (SNDRV_PCM_INFO_MMAP | 
     258        .info =                 (SNDRV_PCM_INFO_MMAP |
    259259                                 SNDRV_PCM_INFO_INTERLEAVED |
    260260                                 SNDRV_PCM_INFO_BLOCK_TRANSFER |
     
    275275
    276276static struct snd_pcm_hardware snd_emu10k1x_capture_hw = {
    277         .info =                 (SNDRV_PCM_INFO_MMAP | 
     277        .info =                 (SNDRV_PCM_INFO_MMAP |
    278278                                 SNDRV_PCM_INFO_INTERLEAVED |
    279279                                 SNDRV_PCM_INFO_BLOCK_TRANSFER |
     
    293293};
    294294
    295 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, 
    296                                           unsigned int reg, 
     295static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu,
     296                                          unsigned int reg,
    297297                                          unsigned int chn)
    298298{
    299299        unsigned long flags;
    300300        unsigned int regptr, val;
    301  
     301
    302302        regptr = (reg << 16) | chn;
    303303
     
    309309}
    310310
    311 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, 
    312                                    unsigned int reg, 
    313                                    unsigned int chn, 
     311static void snd_emu10k1x_ptr_write(struct emu10k1x *emu,
     312                                   unsigned int reg,
     313                                   unsigned int chn,
    314314                                   unsigned int data)
    315315{
     
    397397        epcm->emu = chip;
    398398        epcm->substream = substream;
    399  
     399
    400400        runtime->private_data = epcm;
    401401        runtime->private_free = snd_emu10k1x_pcm_free_substream;
    402  
     402
    403403        runtime->hw = snd_emu10k1x_playback_hw;
    404404
     
    531531                return 0;
    532532       
    533         if (ptr3 != ptr4) 
     533        if (ptr3 != ptr4)
    534534                ptr1 = snd_emu10k1x_ptr_read(emu, PLAYBACK_POINTER, channel);
    535535        ptr2 = bytes_to_frames(runtime, ptr1);
     
    653653        switch (cmd) {
    654654        case SNDRV_PCM_TRIGGER_START:
    655                 snd_emu10k1x_intr_enable(emu, INTE_CAP_0_LOOP | 
     655                snd_emu10k1x_intr_enable(emu, INTE_CAP_0_LOOP |
    656656                                         INTE_CAP_0_HALF_LOOP);
    657657                snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0)|TRIGGER_CAPTURE);
     
    660660        case SNDRV_PCM_TRIGGER_STOP:
    661661                epcm->running = 0;
    662                 snd_emu10k1x_intr_disable(emu, INTE_CAP_0_LOOP | 
     662                snd_emu10k1x_intr_disable(emu, INTE_CAP_0_LOOP |
    663663                                          INTE_CAP_0_HALF_LOOP);
    664664                snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0) & ~(TRIGGER_CAPTURE));
     
    707707        unsigned long flags;
    708708        unsigned short val;
    709  
     709
    710710        spin_lock_irqsave(&emu->emu_lock, flags);
    711711        outb(reg, emu->port + AC97ADDRESS);
     
    720720        struct emu10k1x *emu = ac97->private_data;
    721721        unsigned long flags;
    722  
     722
    723723        spin_lock_irqsave(&emu->emu_lock, flags);
    724724        outb(reg, emu->port + AC97ADDRESS);
     
    736736                .read = snd_emu10k1x_ac97_read,
    737737        };
    738  
     738
    739739        if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
    740740                return err;
     
    800800                        snd_emu10k1x_pcm_interrupt(chip, cap_voice);
    801801                else
    802                         snd_emu10k1x_intr_disable(chip, 
     802                        snd_emu10k1x_intr_disable(chip,
    803803                                                  INTE_CAP_0_LOOP |
    804804                                                  INTE_CAP_0_HALF_LOOP);
     
    810810                        if (pvoice->use)
    811811                                snd_emu10k1x_pcm_interrupt(chip, pvoice);
    812                         else 
     812                        else
    813813                                snd_emu10k1x_intr_disable(chip, mask);
    814814                }
     
    836836        int err;
    837837        int capture = 0;
    838  
     838
    839839        if (rpcm)
    840840                *rpcm = NULL;
     
    844844        if ((err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm)) < 0)
    845845                return err;
    846  
     846
    847847        pcm->private_data = emu;
    848848       
     
    873873
    874874        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
    875                                               snd_dma_pci_data(emu->pci), 
     875                                              snd_dma_pci_data(emu->pci),
    876876                                              32*1024, 32*1024);
    877  
     877
    878878        if (rpcm)
    879879                *rpcm = pcm;
    880  
     880
    881881        return 0;
    882882}
     
    916916        spin_lock_init(&chip->emu_lock);
    917917        spin_lock_init(&chip->voice_lock);
    918  
     918
    919919        chip->port = pci_resource_start(pci, 0);
    920920        if ((chip->res_port = request_region(chip->port, 8,
    921                                              "EMU10K1X")) == NULL) { 
     921                                             "EMU10K1X")) == NULL) {
    922922                snd_printk(KERN_ERR "emu10k1x: cannot allocate the port 0x%lx\n", chip->port);
    923923                snd_emu10k1x_free(chip);
     
    932932        }
    933933        chip->irq = pci->irq;
    934  
     934
    935935        if(snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci),
    936936                               4 * 1024, &chip->dma_buffer) < 0) {
     
    973973         */
    974974        snd_emu10k1x_ptr_write(chip, SPCS0, 0,
    975                                chip->spdif_bits[0] = 
     975                               chip->spdif_bits[0] =
    976976                               SPCS_CLKACCY_1000PPM | SPCS_SAMPLERATE_48 |
    977977                               SPCS_CHANNELNUM_LEFT | SPCS_SOURCENUM_UNSPEC |
     
    979979                               0x00000000 | SPCS_EMPHASIS_NONE | SPCS_COPYRIGHT);
    980980        snd_emu10k1x_ptr_write(chip, SPCS1, 0,
    981                                chip->spdif_bits[1] = 
     981                               chip->spdif_bits[1] =
    982982                               SPCS_CLKACCY_1000PPM | SPCS_SAMPLERATE_48 |
    983983                               SPCS_CHANNELNUM_LEFT | SPCS_SOURCENUM_UNSPEC |
     
    985985                               0x00000000 | SPCS_EMPHASIS_NONE | SPCS_COPYRIGHT);
    986986        snd_emu10k1x_ptr_write(chip, SPCS2, 0,
    987                                chip->spdif_bits[2] = 
     987                               chip->spdif_bits[2] =
    988988                               SPCS_CLKACCY_1000PPM | SPCS_SAMPLERATE_48 |
    989989                               SPCS_CHANNELNUM_LEFT | SPCS_SOURCENUM_UNSPEC |
     
    10061006}
    10071007
    1008 static void snd_emu10k1x_proc_reg_read(struct snd_info_entry *entry, 
     1008static void snd_emu10k1x_proc_reg_read(struct snd_info_entry *entry,
    10091009                                       struct snd_info_buffer *buffer)
    10101010{
     
    10341034}
    10351035
    1036 static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry, 
     1036static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry,
    10371037                                        struct snd_info_buffer *buffer)
    10381038{
     
    10451045                        continue;
    10461046
    1047                 if ((reg < 0x49) && (reg >= 0) && (val <= 0xffffffff)
    1048                     && (channel_id >= 0) && (channel_id <= 2) )
     1047                if ((reg < 0x49) /* && (reg >= 0) && (val <= 0xffffffff) && (channel_id >= 0) DAZ */ && (channel_id <= 2) )
    10491048                        snd_emu10k1x_ptr_write(emu, reg, channel_id, val);
    10501049        }
  • GPL/trunk/alsa-kernel/pci/emu10k1/memory.c

    r399 r522  
    303303        if (snd_BUG_ON(!emu))
    304304                return NULL;
    305         if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
     305        if (snd_BUG_ON(runtime->dma_bytes == 0 || /* DAZ was unsigned <= 0 */
    306306                       runtime->dma_bytes >= MAXPAGES * EMUPAGESIZE))
    307307                return NULL;
     
    369369{
    370370        struct snd_emu10k1_memblk *blk;
    371         struct snd_util_memhdr *hdr = hw->memhdr; 
     371        struct snd_util_memhdr *hdr = hw->memhdr;
    372372
    373373        mutex_lock(&hdr->block_mutex);
     
    395395snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *memblk)
    396396{
    397         struct snd_util_memhdr *hdr = emu->memhdr; 
     397        struct snd_util_memhdr *hdr = emu->memhdr;
    398398        struct snd_emu10k1_memblk *blk = (struct snd_emu10k1_memblk *)memblk;
    399399        unsigned long flags;
  • GPL/trunk/alsa-kernel/pci/hda/hda_intel.c

    r520 r522  
    24782478        }
    24792479
     2480#pragma disable_message (135,302)
    24802481        /* allow 64bit DMA address if supported by H/W */
    24812482        if ((gcap & ICH6_GCAP_64OK) && !pci_set_dma_mask(pci, DMA_BIT_MASK(64)))
     
    24852486                pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32));
    24862487        }
     2488#pragma enable_message (135,302)
    24872489
    24882490        /* read number of streams from GCAP register instead of using
  • GPL/trunk/alsa-kernel/pci/intel8x0.c

    r489 r522  
    23892389        iputdword(chip, ICHREG(GLOB_STA), cnt & status);
    23902390
     2391#ifdef CONFIG_SND_AC97_POWER_SAVE
    23912392        if (snd_intel8x0_ich_chip_can_cold_reset(chip))
    23922393                err = snd_intel8x0_ich_chip_cold_reset(chip);
    23932394        else
     2395#endif
    23942396                err = snd_intel8x0_ich_chip_reset(chip);
    23952397        if (err < 0)
  • GPL/trunk/alsa-kernel/pci/trident/trident_memory.c

    r399 r522  
    196196        int idx, page;
    197197
     198#pragma disable_message (136)
    198199        if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
    199200                       runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES *
    200201                                        SNDRV_TRIDENT_PAGE_SIZE))
    201202                return NULL;
     203#pragma enable_message (136)
    202204        hdr = trident->tlb.memhdr;
    203205        if (snd_BUG_ON(!hdr))
     
    212214                return NULL;
    213215        }
    214                            
     216                       
    215217        /* set TLB entries */
    216218        idx = 0;
     
    245247        unsigned long ptr;
    246248
     249#pragma disable_message (136)
    247250        if (snd_BUG_ON(runtime->dma_bytes <= 0 ||
    248251                       runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES *
    249252                                        SNDRV_TRIDENT_PAGE_SIZE))
    250253                return NULL;
     254#pragma enable_message (136)
    251255        hdr = trident->tlb.memhdr;
    252256        if (snd_BUG_ON(!hdr))
     
    259263                return NULL;
    260264        }
    261                            
     265                       
    262266        /* set TLB entries */
    263267        addr = runtime->dma_addr;
  • GPL/trunk/alsa-kernel/synth/emux/soundfont.c

    r426 r522  
    249249                parm.type |= SNDRV_SFNT_PAT_SHARED;
    250250                sf = newsf(sflist, parm.type, NULL);
    251         } else 
     251        } else
    252252                sf = newsf(sflist, parm.type, parm.name);
    253253        if (sf == NULL) {
     
    543543        count -= sizeof(hdr);
    544544
     545#pragma disable_message (136)
    545546        if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
     547#pragma enable_message (136)
    546548                printk(KERN_ERR "Soundfont error: Illegal voice number %d\n",
    547549                       hdr.nvoices);
     
    10661068                        (patch.env_rate[5], patch.env_offset[4],
    10671069                         patch.env_offset[5]);
    1068                 zone->v.parm.volatkhld = 
     1070                zone->v.parm.volatkhld =
    10691071                        (snd_sf_calc_parm_hold(hold) << 8) |
    10701072                        snd_sf_calc_parm_attack(attack);
  • GPL/trunk/include/linux/kthread.h

    r305 r522  
    77#define kthread_create(fn, data, namefmt, ...) NULL
    88#define kthread_run(fn, data, namefmt, ...) NULL
    9 #define kthread_stop(kt) 0
     9#define kthread_stop(kt)
    1010#define kthread_should_stop() 1
    1111
  • GPL/trunk/include/linux/pci.h

    r479 r522  
    702702#undef pci_disable_msi
    703703#define pci_disable_msi(dev)
     704extern int snd_pci_dev_present(const struct pci_device_id *ids);
    704705#define pci_dev_present(x) snd_pci_dev_present(x)
    705706extern void * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
  • GPL/trunk/lib32/misc.c

    r521 r522  
    269269void flush_workqueue(struct workqueue_struct *wq)
    270270{
     271        short sDAZ;
     272
    271273        if (wq->task == current) {
    272274                run_workqueue(wq);
     
    278280                spin_lock_irq(&wq->lock);
    279281                add_wait_queue(&wq->work_done, &wait);
     282                sDAZ = 0;
    280283                while (!list_empty(&wq->worklist)) {
     284                        if (sDAZ++ > 20) { // Temporary hack to prevent system hangs
     285                                rprintf(("flush_workqueue: can't empty list"));
     286                                break;
     287                        }                       
    281288                        spin_unlock_irq(&wq->lock);
    282                         schedule();
     289                        schedule();  // DAZ system hangs here because this function does nothing
    283290                        spin_lock_irq(&wq->lock);
    284291                }
  • GPL/trunk/uniaud.inc

    r521 r522  
    1313# ex RC3  GA  FIXPACK2 beta_47
    1414# Comment out to avoid a fixpack line in bldlevel
    15 FIXPACK = SVN r520
     15FIXPACK = SVN r522
    1616
    1717# ALSA BUILD VERSION
Note: See TracChangeset for help on using the changeset viewer.