aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2005-01-04 18:27:54 +0100
committerJaroslav Kysela <perex@suse.cz>2005-01-04 18:27:54 +0100
commit55c69ae21465e7f1727156d6fd9a29839890cbbb (patch)
tree976578cfc7318dc7929b5431a625c9a88dee2284 /sound
parenta9a52af802dbd09331f454667e95579e2f8a98b9 (diff)
downloadhistory-55c69ae21465e7f1727156d6fd9a29839890cbbb.tar.gz
[ALSA] Print values at errors
EMU10K1/EMU10K2 driver Print out the invalid values at resource allocation errors, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/emu10k1/emu10k1x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 0eb34c6b29f7ab..e60d58158a1376 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -938,16 +938,16 @@ static int __devinit snd_emu10k1x_create(snd_card_t *card,
chip->port = pci_resource_start(pci, 0);
if ((chip->res_port = request_region(chip->port, 8,
"EMU10K1X")) == NULL) {
+ snd_printk(KERN_ERR "emu10k1x: cannot allocate the port 0x%lx\n", chip->port);
snd_emu10k1x_free(chip);
- snd_printk(KERN_ERR "cannot allocate the port\n");
return -EBUSY;
}
if (request_irq(pci->irq, snd_emu10k1x_interrupt,
SA_INTERRUPT|SA_SHIRQ, "EMU10K1X",
(void *)chip)) {
+ snd_printk(KERN_ERR "emu10k1x: cannot grab irq %d\n", pci->irq);
snd_emu10k1x_free(chip);
- snd_printk(KERN_ERR "cannot grab irq\n");
return -EBUSY;
}
chip->irq = pci->irq;