Changeset 411 for GPL/branches


Ignore:
Timestamp:
Jan 26, 2009, 3:06:35 AM (17 years ago)
Author:
Paul Smedley
Message:

Implement hack to allow sound from HDA chips

File:
1 edited

Legend:

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

    r410 r411  
    732732                snd_printdd("[%s] NID=0x%x, DIR=IN, IDX=0x%x\n", name, node->nid, index);
    733733                err = snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec));
     734#ifndef TARGET_OS2
    734735                if (err < 0)
    735736                        return err;
     737#else
     738                if (err < 0)
     739                        snd_printdd("Failed here\n");
     740#endif
    736741                created = 1;
    737742        } else if ((node->wid_caps & AC_WCAP_OUT_AMP) &&
     
    749754                snd_printdd("[%s] NID=0x%x, DIR=OUT1\n", name, node->nid);
    750755                err = snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec));
     756#ifndef TARGET_OS2
    751757                if (err < 0)
    752758                        return err;
     759#else
     760                if (err < 0)
     761                        snd_printdd("Failed here1\n");
     762#endif
    753763                created = 1;
    754764        }
     
    769779                snd_printdd("[%s] NID=0x%x, DIR=IN, IDX=0x%x\n", name, node->nid, index);
    770780                err = snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec));
     781#ifndef TARGET_OS2
    771782                if (err < 0)
    772783                        return err;
     784#else
     785                if (err < 0)
     786                        snd_printdd("Failed here2\n");
     787#endif
    773788                created = 1;
    774789        } else if ((node->wid_caps & AC_WCAP_OUT_AMP) &&
     
    783798                snd_printdd("[%s] NID=0x%x, DIR=OUT\n", name, node->nid);
    784799                err = snd_hda_ctl_add(codec, snd_ctl_new1(&knew, codec));
     800#ifndef TARGET_OS2
    785801                if (err < 0)
    786802                        return err;
     803#else
     804                if (err < 0)
     805                        snd_printdd("Failed here3\n");
     806#endif
    787807                created = 1;
    788808        }
Note: See TracChangeset for help on using the changeset viewer.