Changeset 523


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

flush_workqueue hack, misc code cleanups

Location:
GPL/branches/uniaud32-2.1.x
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/core/device.c

    r399 r523  
    8787                /* unlink */
    8888                list_del(&dev->list);
    89                 if (dev->state == SNDRV_DEV_REGISTERED &&
    90                     dev->ops->dev_disconnect)
     89                if (dev->state == SNDRV_DEV_REGISTERED && dev->ops->dev_disconnect) {
    9190                        if (dev->ops->dev_disconnect(dev))
    92                                 snd_printk(KERN_ERR
    93                                            "device disconnect failure\n");
     91                                snd_printk(KERN_ERR "device disconnect failure\n");
     92                }
    9493                if (dev->ops->dev_free) {
    9594                        if (dev->ops->dev_free(dev))
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/include/sound/config.h

    r499 r523  
    8484#define CONFIG_PM
    8585#define CONFIG_PROC_FS
     86#ifdef DEBUG
    8687#define CONFIG_SND_DEBUG_DETECT
    8788#define CONFIG_SND_DEBUG_VERBOSE
     89#endif
    8890#define CONFIG_SND_DMA_SGBUF
    8991#define CONFIG_SND_HDA_CODEC_ANALOG
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/emu10k1/memory.c

    r519 r523  
    304304        if (snd_BUG_ON(!emu))
    305305                return NULL;
    306         if (snd_BUG_ON(runtime->dma_bytes == 0 ||
     306        if (snd_BUG_ON(runtime->dma_bytes == 0 || /* DAZ was unsigned <= 0 */
    307307                       runtime->dma_bytes >= MAXPAGES * EMUPAGESIZE))
    308308                return NULL;
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_hwdep.c

    r499 r523  
    100100{
    101101#ifndef CONFIG_SND_DEBUG_VERBOSE
    102         if (!capable(CAP_SYS_RAWIO))
    103                 return -EACCES;
     102//      if (!capable(CAP_SYS_RAWIO))
     103//              return -EACCES;
    104104#endif
    105105        return 0;
  • GPL/branches/uniaud32-2.1.x/drv32/strategy.c

    r519 r523  
    7070        RPInit __far* rp = (RPInit __far*)_rp;
    7171        rc = DiscardableInit(rp);
    72         dprintf(("StratInit End rc=%d", rc));
     72        //dprintf(("StratInit End rc=%d", rc));
    7373        return rc;
    7474}
     
    119119#endif
    120120//PS++ End
    121         dprintf(("StratInitComplete"));
    122   return(RPDONE);
     121        //dprintf(("StratInitComplete"));
     122        return(RPDONE);
    123123}
    124124//******************************************************************************
     
    130130        RPShutdown __far *rp = (RPShutdown __far *)_rp;
    131131
    132         dprintf(("StratShutdown Start %d", rp->Function));
     132        //dprintf(("StratShutdown %d", rp->Function));
    133133        if(rp->Function == 1) {//end of shutdown
    134134                OSS32_Shutdown();
    135135        }
    136         dprintf(("StratShutdown End"));
    137   return(RPDONE);
     136        return(RPDONE);
    138137}
    139138//******************************************************************************
  • GPL/branches/uniaud32-2.1.x/include/dbgos2.h

    r519 r523  
    3232extern int wrOffset;
    3333extern char *szprintBuf;
    34 //void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
    3534int _cdecl printk(const char * fmt, ...);
    3635#ifdef __cplusplus
  • GPL/branches/uniaud32-2.1.x/lib32/misc.c

    r519 r523  
    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/branches/uniaud32-2.1.x/lib32/ossidc.cpp

    r519 r523  
    162162                        FillCaps(i);
    163163                }
    164                 dprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected));
     164                rprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected));
    165165                return OSSERR_SUCCESS;
    166166        }
     
    173173OSSRET OSS32_Shutdown()
    174174{
    175         dprintf(("OSS32_Shutdown 1"));
    176175        CallOSS16(IDC16_EXIT, 0, 0);
    177         dprintf(("OSS32_Shutdown 2"));
    178176
    179177        for(int i=0;i<nrCardsDetected;i++) {
     
    181179        }
    182180
    183         dprintf(("OSS32_Shutdown 3"));
    184181        call_module_exit(alsa_mpu401_uart_exit);
    185         dprintf(("OSS32_Shutdown 4"));
    186182        call_module_exit(alsa_opl3_seq_exit);
    187         dprintf(("OSS32_Shutdown 5"));
    188183        call_module_exit(alsa_opl3_exit);
    189         dprintf(("OSS32_Shutdown 6"));
    190184        call_module_exit(alsa_seq_exit);
    191         dprintf(("OSS32_Shutdown 7"));
    192185        call_module_exit(alsa_rawmidi_exit);
    193         dprintf(("OSS32_Shutdown 8"));
    194186        call_module_exit(alsa_timer_exit);
    195         dprintf(("OSS32_Shutdown 9"));
    196187        call_module_exit(alsa_hwdep_exit);
    197         dprintf(("OSS32_Shutdown 10"));
    198188        call_module_exit(alsa_pcm_exit);
    199         dprintf(("OSS32_Shutdown 11"));
    200189        call_module_exit(alsa_sound_exit);
    201         dprintf(("OSS32_Shutdown 12"));
    202190
    203191        return OSSERR_SUCCESS;
  • GPL/branches/uniaud32-2.1.x/lib32/pci.c

    r519 r523  
    547547{
    548548        struct pci_dev *pcidev;
    549         int i = 0, j;
    550 
    551         while(driver->id_table[i].vendor)
    552         {
    553                 for(j=0;j<MAX_PCI_DEVICES;j++)
    554                 {
    555                         if(pci_devices[j].vendor == driver->id_table[i].vendor &&
    556                            pci_devices[j].device == driver->id_table[i].device)
    557                         {
    558                                 if(driver->remove) {
    559                                         driver->remove(&pci_devices[j]);
    560                                 }
    561                         }
    562                 }
    563                 i++;
     549        int i, j;
     550
     551        for (i=0; driver->id_table[i].vendor; i++) {
     552                for(j=0; j<MAX_PCI_DEVICES; j++) {
     553                        pcidev = &pci_devices[j];
     554                        if (pcidev->devfn == 0) continue;
     555                        if(pcidev->vendor != driver->id_table[i].vendor) continue;
     556                        if ( (driver->id_table[i].device != PCI_ANY_ID) && (pcidev->device != driver->id_table[i].device) ) continue;
     557                        dprintf(("pci unreg match: %x:%x %x:%x", pci_devices[j].vendor, pci_devices[j].device, driver->id_table[i].vendor, driver->id_table[i].device));
     558                        if(!driver->remove) continue;
     559                        driver->remove(pcidev);
     560                }
    564561        }
    565562        return 0;
  • GPL/branches/uniaud32-2.1.x/uniaud.inc

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