diff options
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx.c | 6 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 6 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.h | 6 |
3 files changed, 11 insertions, 7 deletions
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index e876b3263e46..c9b3e3d48cbc 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -88,9 +88,9 @@ static int __devinit snd_card_cs46xx_probe(struct pci_dev *pci, | |||
88 | return -ENOENT; | 88 | return -ENOENT; |
89 | } | 89 | } |
90 | 90 | ||
91 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 91 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
92 | if (card == NULL) | 92 | if (err < 0) |
93 | return -ENOMEM; | 93 | return err; |
94 | if ((err = snd_cs46xx_create(card, pci, | 94 | if ((err = snd_cs46xx_create(card, pci, |
95 | external_amp[dev], thinkpad[dev], | 95 | external_amp[dev], thinkpad[dev], |
96 | &chip)) < 0) { | 96 | &chip)) < 0) { |
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 8ab07aa63652..1be96ead4244 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -194,7 +194,7 @@ static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, | |||
194 | * ACSDA = Status Data Register = 474h | 194 | * ACSDA = Status Data Register = 474h |
195 | */ | 195 | */ |
196 | #if 0 | 196 | #if 0 |
197 | printk("e) reg = 0x%x, val = 0x%x, BA0_ACCAD = 0x%x\n", reg, | 197 | printk(KERN_DEBUG "e) reg = 0x%x, val = 0x%x, BA0_ACCAD = 0x%x\n", reg, |
198 | snd_cs46xx_peekBA0(chip, BA0_ACSDA), | 198 | snd_cs46xx_peekBA0(chip, BA0_ACSDA), |
199 | snd_cs46xx_peekBA0(chip, BA0_ACCAD)); | 199 | snd_cs46xx_peekBA0(chip, BA0_ACCAD)); |
200 | #endif | 200 | #endif |
@@ -428,8 +428,8 @@ static int cs46xx_wait_for_fifo(struct snd_cs46xx * chip,int retry_timeout) | |||
428 | } | 428 | } |
429 | 429 | ||
430 | if(status & SERBST_WBSY) { | 430 | if(status & SERBST_WBSY) { |
431 | snd_printk( KERN_ERR "cs46xx: failure waiting for FIFO command to complete\n"); | 431 | snd_printk(KERN_ERR "cs46xx: failure waiting for " |
432 | 432 | "FIFO command to complete\n"); | |
433 | return -EINVAL; | 433 | return -EINVAL; |
434 | } | 434 | } |
435 | 435 | ||
diff --git a/sound/pci/cs46xx/cs46xx_lib.h b/sound/pci/cs46xx/cs46xx_lib.h index 018a7de56017..4eb55aa33612 100644 --- a/sound/pci/cs46xx/cs46xx_lib.h +++ b/sound/pci/cs46xx/cs46xx_lib.h | |||
@@ -62,7 +62,11 @@ static inline void snd_cs46xx_poke(struct snd_cs46xx *chip, unsigned long reg, u | |||
62 | unsigned int bank = reg >> 16; | 62 | unsigned int bank = reg >> 16; |
63 | unsigned int offset = reg & 0xffff; | 63 | unsigned int offset = reg & 0xffff; |
64 | 64 | ||
65 | /*if (bank == 0) printk("snd_cs46xx_poke: %04X - %08X\n",reg >> 2,val); */ | 65 | /* |
66 | if (bank == 0) | ||
67 | printk(KERN_DEBUG "snd_cs46xx_poke: %04X - %08X\n", | ||
68 | reg >> 2,val); | ||
69 | */ | ||
66 | writel(val, chip->region.idx[bank+1].remap_addr + offset); | 70 | writel(val, chip->region.idx[bank+1].remap_addr + offset); |
67 | } | 71 | } |
68 | 72 | ||