Changeset 371 for GPL/branches


Ignore:
Timestamp:
Sep 14, 2008, 2:59:04 AM (17 years ago)
Author:
Paul Smedley
Message:

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

File:
1 edited

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                }
Note: See TracChangeset for help on using the changeset viewer.