--- ali5451.c_org 2002-11-29 10:24:28.000000000 +0100 +++ ali5451.c 2002-11-29 10:32:24.000000000 +0100 @@ -70,7 +70,7 @@ * Debug part definations */ -//#define ALI_DEBUG +#define ALI_DEBUG #ifdef ALI_DEBUG #define snd_ali_printk(format, args...) printk(format, ##args); @@ -529,7 +529,7 @@ udelay(5000); } - return -1; + return 0; } #ifdef CODEC_RESET @@ -2004,8 +2004,9 @@ pci_read_config_byte(pci_dev, 0x59, &temp); pci_dev = pci_find_device(0x10b9,0x7101, pci_dev); - if (pci_dev == NULL) - return -1; + if (pci_dev == NULL) { + snd_ali_printk("pci_dev is NULL after pci_find_device!\n"); + return -1; } pci_read_config_byte(pci_dev,0xb8,&temp); temp |= 1 << 6; pci_write_config_byte(pci_dev, 0xB8, temp);