Changeset 740


Ignore:
Timestamp:
Sep 18, 2022, 9:09:15 AM (3 years ago)
Author:
Paul Smedley
Message:

Fix loading of HDA drivers, by regressing some code in hda_intel.c

File:
1 edited

Legend:

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

    r739 r740  
    21122112                     const struct pci_device_id *pci_id)
    21132113{
     2114#ifdef TARGET_OS2
     2115        static int dev;
     2116#endif
    21142117        struct snd_card *card;
    21152118        struct hda_intel *hda;
    21162119        struct azx *chip;
    21172120        bool schedule_probe;
     2121#ifndef TARGET_OS2
    21182122        int dev;
     2123#endif
    21192124        int err;
    21202125
     
    21242129        }
    21252130
     2131#ifndef TARGET_OS2
    21262132        dev = find_first_zero_bit(probed_devs, SNDRV_CARDS);
    2127         if (dev >= SNDRV_CARDS)
    2128                 return -ENODEV;
     2133#endif
     2134        if (dev >= SNDRV_CARDS){
     2135                return -ENODEV;}
    21292136        if (!enable[dev]) {
     2137#ifdef TARGET_OS2
     2138                dev++;
     2139#else
    21302140                set_bit(dev, probed_devs);
     2141#endif
    21312142                return -ENOENT;
    21322143        }
Note: See TracChangeset for help on using the changeset viewer.