Changeset 371

Show
Ignore:
Timestamp:
09/14/08 02:59:04 (3 months ago)
Author:
psmedley
Message:

Implement hack to prevent HDA lockups whilst we investigate a permanent solution

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/alsa-kernel/pci/hda/hda_intel.c

    r358 r371  
    581581        struct azx *chip = codec->bus->private_data; 
    582582        unsigned long timeout; 
     583#ifdef TARGET_OS2 
     584        int count=0; 
     585#endif 
    583586 
    584587 again: 
     
    596599                if (time_after(jiffies, timeout)) 
    597600                        break; 
     601#ifdef TARGET_OS2 
     602                if (count >= 5000) /* Hack on OS/2 to stop infinite loop as jiffies don't increment *. 
     603                        break; 
     604#endif 
    598605                if (codec->bus->needs_damn_long_delay) 
    599606                        msleep(2); /* temporary workaround */ 
    600607                else { 
    601608                        udelay(10); 
     609#ifdef TARGET_OS2 
     610                        count=count+1; 
     611#endif 
    602612                        cond_resched(); 
    603613                }