提交 99b359ba 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] Add missing KERN_* suffix to printk

Add missing KERN_* suffix to printk.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 8a3fb4d0
...@@ -75,7 +75,7 @@ int snd_cs8427_reg_write(snd_i2c_device_t *device, unsigned char reg, unsigned c ...@@ -75,7 +75,7 @@ int snd_cs8427_reg_write(snd_i2c_device_t *device, unsigned char reg, unsigned c
buf[0] = reg & 0x7f; buf[0] = reg & 0x7f;
buf[1] = val; buf[1] = val;
if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) {
snd_printk("unable to send bytes 0x%02x:0x%02x to CS8427 (%i)\n", buf[0], buf[1], err); snd_printk(KERN_ERR "unable to send bytes 0x%02x:0x%02x to CS8427 (%i)\n", buf[0], buf[1], err);
return err < 0 ? err : -EIO; return err < 0 ? err : -EIO;
} }
return 0; return 0;
...@@ -87,11 +87,11 @@ static int snd_cs8427_reg_read(snd_i2c_device_t *device, unsigned char reg) ...@@ -87,11 +87,11 @@ static int snd_cs8427_reg_read(snd_i2c_device_t *device, unsigned char reg)
unsigned char buf; unsigned char buf;
if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) { if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) {
snd_printk("unable to send register 0x%x byte to CS8427\n", reg); snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n", reg);
return err < 0 ? err : -EIO; return err < 0 ? err : -EIO;
} }
if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) {
snd_printk("unable to read register 0x%x byte from CS8427\n", reg); snd_printk(KERN_ERR "unable to read register 0x%x byte from CS8427\n", reg);
return err < 0 ? err : -EIO; return err < 0 ? err : -EIO;
} }
return buf; return buf;
...@@ -210,7 +210,7 @@ int snd_cs8427_create(snd_i2c_bus_t *bus, ...@@ -210,7 +210,7 @@ int snd_cs8427_create(snd_i2c_bus_t *bus,
snd_i2c_lock(bus); snd_i2c_lock(bus);
if ((err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER)) != CS8427_VER8427A) { if ((err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER)) != CS8427_VER8427A) {
snd_i2c_unlock(bus); snd_i2c_unlock(bus);
snd_printk("unable to find CS8427 signature (expected 0x%x, read 0x%x), initialization is not completed\n", CS8427_VER8427A, err); snd_printk(KERN_ERR "unable to find CS8427 signature (expected 0x%x, read 0x%x), initialization is not completed\n", CS8427_VER8427A, err);
return -EFAULT; return -EFAULT;
} }
/* turn off run bit while making changes to configuration */ /* turn off run bit while making changes to configuration */
...@@ -260,7 +260,7 @@ int snd_cs8427_create(snd_i2c_bus_t *bus, ...@@ -260,7 +260,7 @@ int snd_cs8427_create(snd_i2c_bus_t *bus,
snd_i2c_sendbytes(device, buf, 1); snd_i2c_sendbytes(device, buf, 1);
snd_i2c_readbytes(device, buf, 127); snd_i2c_readbytes(device, buf, 127);
for (xx = 0; xx < 127; xx++) for (xx = 0; xx < 127; xx++)
printk("reg[0x%x] = 0x%x\n", xx+1, buf[xx]); printk(KERN_DEBUG "reg[0x%x] = 0x%x\n", xx+1, buf[xx]);
} }
#endif #endif
...@@ -354,12 +354,12 @@ static int snd_cs8427_qsubcode_get(snd_kcontrol_t *kcontrol, ...@@ -354,12 +354,12 @@ static int snd_cs8427_qsubcode_get(snd_kcontrol_t *kcontrol,
snd_i2c_lock(device->bus); snd_i2c_lock(device->bus);
if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) { if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) {
snd_printk("unable to send register 0x%x byte to CS8427\n", reg); snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n", reg);
snd_i2c_unlock(device->bus); snd_i2c_unlock(device->bus);
return err < 0 ? err : -EIO; return err < 0 ? err : -EIO;
} }
if ((err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10)) != 10) { if ((err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10)) != 10) {
snd_printk("unable to read Q-subcode bytes from CS8427\n"); snd_printk(KERN_ERR "unable to read Q-subcode bytes from CS8427\n");
snd_i2c_unlock(device->bus); snd_i2c_unlock(device->bus);
return err < 0 ? err : -EIO; return err < 0 ? err : -EIO;
} }
......
...@@ -56,9 +56,9 @@ static void reg_dump(ak4114_t *ak4114) ...@@ -56,9 +56,9 @@ static void reg_dump(ak4114_t *ak4114)
{ {
int i; int i;
printk("AK4114 REG DUMP:\n"); printk(KERN_DEBUG "AK4114 REG DUMP:\n");
for (i = 0; i < 0x20; i++) for (i = 0; i < 0x20; i++)
printk("reg[%02x] = %02x (%02x)\n", i, reg_read(ak4114, i), i < sizeof(ak4114->regmap) ? ak4114->regmap[i] : 0); printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4114, i), i < sizeof(ak4114->regmap) ? ak4114->regmap[i] : 0);
} }
#endif #endif
...@@ -552,7 +552,7 @@ int snd_ak4114_check_rate_and_errors(ak4114_t *ak4114, unsigned int flags) ...@@ -552,7 +552,7 @@ int snd_ak4114_check_rate_and_errors(ak4114_t *ak4114, unsigned int flags)
if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) { if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) {
snd_pcm_stream_lock_irqsave(ak4114->capture_substream, _flags); snd_pcm_stream_lock_irqsave(ak4114->capture_substream, _flags);
if (snd_pcm_running(ak4114->capture_substream)) { if (snd_pcm_running(ak4114->capture_substream)) {
// printk("rate changed (%i <- %i)\n", runtime->rate, res); // printk(KERN_DEBUG "rate changed (%i <- %i)\n", runtime->rate, res);
snd_pcm_stop(ak4114->capture_substream, SNDRV_PCM_STATE_DRAINING); snd_pcm_stop(ak4114->capture_substream, SNDRV_PCM_STATE_DRAINING);
res = 1; res = 1;
} }
......
...@@ -54,9 +54,9 @@ static void reg_dump(ak4117_t *ak4117) ...@@ -54,9 +54,9 @@ static void reg_dump(ak4117_t *ak4117)
{ {
int i; int i;
printk("AK4117 REG DUMP:\n"); printk(KERN_DEBUG "AK4117 REG DUMP:\n");
for (i = 0; i < 0x1b; i++) for (i = 0; i < 0x1b; i++)
printk("reg[%02x] = %02x (%02x)\n", i, reg_read(ak4117, i), i < sizeof(ak4117->regmap) ? ak4117->regmap[i] : 0); printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4117, i), i < sizeof(ak4117->regmap) ? ak4117->regmap[i] : 0);
} }
#endif #endif
...@@ -477,7 +477,7 @@ int snd_ak4117_check_rate_and_errors(ak4117_t *ak4117, unsigned int flags) ...@@ -477,7 +477,7 @@ int snd_ak4117_check_rate_and_errors(ak4117_t *ak4117, unsigned int flags)
goto __rate; goto __rate;
rcs0 = reg_read(ak4117, AK4117_REG_RCS0); rcs0 = reg_read(ak4117, AK4117_REG_RCS0);
rcs2 = reg_read(ak4117, AK4117_REG_RCS2); rcs2 = reg_read(ak4117, AK4117_REG_RCS2);
// printk("AK IRQ: rcs0 = 0x%x, rcs1 = 0x%x, rcs2 = 0x%x\n", rcs0, rcs1, rcs2); // printk(KERN_DEBUG "AK IRQ: rcs0 = 0x%x, rcs1 = 0x%x, rcs2 = 0x%x\n", rcs0, rcs1, rcs2);
spin_lock_irqsave(&ak4117->lock, _flags); spin_lock_irqsave(&ak4117->lock, _flags);
if (rcs0 & AK4117_PAR) if (rcs0 & AK4117_PAR)
ak4117->parity_errors++; ak4117->parity_errors++;
...@@ -530,7 +530,7 @@ int snd_ak4117_check_rate_and_errors(ak4117_t *ak4117, unsigned int flags) ...@@ -530,7 +530,7 @@ int snd_ak4117_check_rate_and_errors(ak4117_t *ak4117, unsigned int flags)
if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) { if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) {
snd_pcm_stream_lock_irqsave(ak4117->substream, _flags); snd_pcm_stream_lock_irqsave(ak4117->substream, _flags);
if (snd_pcm_running(ak4117->substream)) { if (snd_pcm_running(ak4117->substream)) {
// printk("rate changed (%i <- %i)\n", runtime->rate, res); // printk(KERN_DEBUG "rate changed (%i <- %i)\n", runtime->rate, res);
snd_pcm_stop(ak4117->substream, SNDRV_PCM_STATE_DRAINING); snd_pcm_stop(ak4117->substream, SNDRV_PCM_STATE_DRAINING);
wake_up(&runtime->sleep); wake_up(&runtime->sleep);
res = 1; res = 1;
......
...@@ -58,7 +58,7 @@ static void snd_tea6330t_set(tea6330t_t *tea, ...@@ -58,7 +58,7 @@ static void snd_tea6330t_set(tea6330t_t *tea,
unsigned char addr, unsigned char value) unsigned char addr, unsigned char value)
{ {
#if 0 #if 0
printk("set - 0x%x/0x%x\n", addr, value); printk(KERN_DEBUG "set - 0x%x/0x%x\n", addr, value);
#endif #endif
snd_i2c_write(tea->bus, TEA6330T_ADDR, addr, value, 1); snd_i2c_write(tea->bus, TEA6330T_ADDR, addr, value, 1);
} }
......
...@@ -109,7 +109,7 @@ void snd_ad1848_out(ad1848_t *chip, ...@@ -109,7 +109,7 @@ void snd_ad1848_out(ad1848_t *chip,
udelay(100); udelay(100);
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
snd_printk("auto calibration time out - reg = 0x%x, value = 0x%x\n", reg, value); snd_printk(KERN_WARNING "auto calibration time out - reg = 0x%x, value = 0x%x\n", reg, value);
#endif #endif
outb(chip->mce_bit | reg, AD1848P(chip, REGSEL)); outb(chip->mce_bit | reg, AD1848P(chip, REGSEL));
outb(chip->image[reg] = value, AD1848P(chip, REG)); outb(chip->image[reg] = value, AD1848P(chip, REG));
...@@ -139,7 +139,7 @@ static unsigned char snd_ad1848_in(ad1848_t *chip, unsigned char reg) ...@@ -139,7 +139,7 @@ static unsigned char snd_ad1848_in(ad1848_t *chip, unsigned char reg)
udelay(100); udelay(100);
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
snd_printk("auto calibration time out - reg = 0x%x\n", reg); snd_printk(KERN_WARNING "auto calibration time out - reg = 0x%x\n", reg);
#endif #endif
outb(chip->mce_bit | reg, AD1848P(chip, REGSEL)); outb(chip->mce_bit | reg, AD1848P(chip, REGSEL));
mb(); mb();
...@@ -185,13 +185,13 @@ static void snd_ad1848_mce_up(ad1848_t *chip) ...@@ -185,13 +185,13 @@ static void snd_ad1848_mce_up(ad1848_t *chip)
udelay(100); udelay(100);
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
snd_printk("mce_up - auto calibration time out (0)\n"); snd_printk(KERN_WARNING "mce_up - auto calibration time out (0)\n");
#endif #endif
spin_lock_irqsave(&chip->reg_lock, flags); spin_lock_irqsave(&chip->reg_lock, flags);
chip->mce_bit |= AD1848_MCE; chip->mce_bit |= AD1848_MCE;
timeout = inb(AD1848P(chip, REGSEL)); timeout = inb(AD1848P(chip, REGSEL));
if (timeout == 0x80) if (timeout == 0x80)
snd_printk("mce_up [0x%lx]: serious init problem - codec still busy\n", chip->port); snd_printk(KERN_WARNING "mce_up [0x%lx]: serious init problem - codec still busy\n", chip->port);
if (!(timeout & AD1848_MCE)) if (!(timeout & AD1848_MCE))
outb(chip->mce_bit | (timeout & 0x1f), AD1848P(chip, REGSEL)); outb(chip->mce_bit | (timeout & 0x1f), AD1848P(chip, REGSEL));
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
...@@ -214,13 +214,13 @@ static void snd_ad1848_mce_down(ad1848_t *chip) ...@@ -214,13 +214,13 @@ static void snd_ad1848_mce_down(ad1848_t *chip)
#endif #endif
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
snd_printk("mce_down [0x%lx] - auto calibration time out (0)\n", AD1848P(chip, REGSEL)); snd_printk(KERN_WARNING "mce_down [0x%lx] - auto calibration time out (0)\n", AD1848P(chip, REGSEL));
#endif #endif
chip->mce_bit &= ~AD1848_MCE; chip->mce_bit &= ~AD1848_MCE;
timeout = inb(AD1848P(chip, REGSEL)); timeout = inb(AD1848P(chip, REGSEL));
outb(chip->mce_bit | (timeout & 0x1f), AD1848P(chip, REGSEL)); outb(chip->mce_bit | (timeout & 0x1f), AD1848P(chip, REGSEL));
if (timeout == 0x80) if (timeout == 0x80)
snd_printk("mce_down [0x%lx]: serious init problem - codec still busy\n", chip->port); snd_printk(KERN_WARNING "mce_down [0x%lx]: serious init problem - codec still busy\n", chip->port);
if ((timeout & AD1848_MCE) == 0) { if ((timeout & AD1848_MCE) == 0) {
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
return; return;
...@@ -240,7 +240,7 @@ static void snd_ad1848_mce_down(ad1848_t *chip) ...@@ -240,7 +240,7 @@ static void snd_ad1848_mce_down(ad1848_t *chip)
while (snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) { while (snd_ad1848_in(chip, AD1848_TEST_INIT) & AD1848_CALIB_IN_PROGRESS) {
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
if (time <= 0) { if (time <= 0) {
snd_printk("mce_down - auto calibration time out (2)\n"); snd_printk(KERN_ERR "mce_down - auto calibration time out (2)\n");
return; return;
} }
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
...@@ -254,7 +254,7 @@ static void snd_ad1848_mce_down(ad1848_t *chip) ...@@ -254,7 +254,7 @@ static void snd_ad1848_mce_down(ad1848_t *chip)
while (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) { while (inb(AD1848P(chip, REGSEL)) & AD1848_INIT) {
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
if (time <= 0) { if (time <= 0) {
snd_printk("mce_down - auto calibration time out (3)\n"); snd_printk(KERN_ERR "mce_down - auto calibration time out (3)\n");
return; return;
} }
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
......
...@@ -173,7 +173,7 @@ static int snd_es18xx_dsp_command(es18xx_t *chip, unsigned char val) ...@@ -173,7 +173,7 @@ static int snd_es18xx_dsp_command(es18xx_t *chip, unsigned char val)
outb(val, chip->port + 0x0C); outb(val, chip->port + 0x0C);
return 0; return 0;
} }
snd_printk("dsp_command: timeout (0x%x)\n", val); snd_printk(KERN_ERR "dsp_command: timeout (0x%x)\n", val);
return -EINVAL; return -EINVAL;
} }
...@@ -184,7 +184,8 @@ static int snd_es18xx_dsp_get_byte(es18xx_t *chip) ...@@ -184,7 +184,8 @@ static int snd_es18xx_dsp_get_byte(es18xx_t *chip)
for(i = MILLISECOND/10; i; i--) for(i = MILLISECOND/10; i; i--)
if (inb(chip->port + 0x0C) & 0x40) if (inb(chip->port + 0x0C) & 0x40)
return inb(chip->port + 0x0A); return inb(chip->port + 0x0A);
snd_printk("dsp_get_byte failed: 0x%lx = 0x%x!!!\n", chip->port + 0x0A, inb(chip->port + 0x0A)); snd_printk(KERN_ERR "dsp_get_byte failed: 0x%lx = 0x%x!!!\n",
chip->port + 0x0A, inb(chip->port + 0x0A));
return -ENODEV; return -ENODEV;
} }
...@@ -204,7 +205,7 @@ static int snd_es18xx_write(es18xx_t *chip, ...@@ -204,7 +205,7 @@ static int snd_es18xx_write(es18xx_t *chip,
end: end:
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x set to %02x\n", reg, data); snd_printk(KERN_DEBUG "Reg %02x set to %02x\n", reg, data);
#endif #endif
return ret; return ret;
} }
...@@ -223,7 +224,7 @@ static int snd_es18xx_read(es18xx_t *chip, unsigned char reg) ...@@ -223,7 +224,7 @@ static int snd_es18xx_read(es18xx_t *chip, unsigned char reg)
data = snd_es18xx_dsp_get_byte(chip); data = snd_es18xx_dsp_get_byte(chip);
ret = data; ret = data;
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x now is %02x (%d)\n", reg, data, ret); snd_printk(KERN_DEBUG "Reg %02x now is %02x (%d)\n", reg, data, ret);
#endif #endif
end: end:
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
...@@ -259,7 +260,8 @@ static int snd_es18xx_bits(es18xx_t *chip, unsigned char reg, ...@@ -259,7 +260,8 @@ static int snd_es18xx_bits(es18xx_t *chip, unsigned char reg,
if (ret < 0) if (ret < 0)
goto end; goto end;
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x was %02x, set to %02x (%d)\n", reg, old, new, ret); snd_printk(KERN_DEBUG "Reg %02x was %02x, set to %02x (%d)\n",
reg, old, new, ret);
#endif #endif
} }
ret = oval; ret = oval;
...@@ -277,7 +279,7 @@ static inline void snd_es18xx_mixer_write(es18xx_t *chip, ...@@ -277,7 +279,7 @@ static inline void snd_es18xx_mixer_write(es18xx_t *chip,
outb(data, chip->port + 0x05); outb(data, chip->port + 0x05);
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x set to %02x\n", reg, data); snd_printk(KERN_DEBUG "Mixer reg %02x set to %02x\n", reg, data);
#endif #endif
} }
...@@ -290,7 +292,7 @@ static inline int snd_es18xx_mixer_read(es18xx_t *chip, unsigned char reg) ...@@ -290,7 +292,7 @@ static inline int snd_es18xx_mixer_read(es18xx_t *chip, unsigned char reg)
data = inb(chip->port + 0x05); data = inb(chip->port + 0x05);
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x now is %02x\n", reg, data); snd_printk(KERN_DEBUG "Mixer reg %02x now is %02x\n", reg, data);
#endif #endif
return data; return data;
} }
...@@ -309,7 +311,8 @@ static inline int snd_es18xx_mixer_bits(es18xx_t *chip, unsigned char reg, ...@@ -309,7 +311,8 @@ static inline int snd_es18xx_mixer_bits(es18xx_t *chip, unsigned char reg,
new = (old & ~mask) | (val & mask); new = (old & ~mask) | (val & mask);
outb(new, chip->port + 0x05); outb(new, chip->port + 0x05);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x was %02x, set to %02x\n", reg, old, new); snd_printk(KERN_DEBUG "Mixer reg %02x was %02x, set to %02x\n",
reg, old, new);
#endif #endif
} }
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
...@@ -329,7 +332,8 @@ static inline int snd_es18xx_mixer_writable(es18xx_t *chip, unsigned char reg, ...@@ -329,7 +332,8 @@ static inline int snd_es18xx_mixer_writable(es18xx_t *chip, unsigned char reg,
new = inb(chip->port + 0x05); new = inb(chip->port + 0x05);
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x was %02x, set to %02x, now is %02x\n", reg, old, expected, new); snd_printk(KERN_DEBUG "Mixer reg %02x was %02x, set to %02x, now is %02x\n",
reg, old, expected, new);
#endif #endif
return expected == new; return expected == new;
} }
...@@ -1281,7 +1285,7 @@ static void __devinit snd_es18xx_config_write(es18xx_t *chip, ...@@ -1281,7 +1285,7 @@ static void __devinit snd_es18xx_config_write(es18xx_t *chip,
outb(reg, chip->ctrl_port); outb(reg, chip->ctrl_port);
outb(data, chip->ctrl_port + 1); outb(data, chip->ctrl_port + 1);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Config reg %02x set to %02x\n", reg, data); snd_printk(KERN_DEBUG "Config reg %02x set to %02x\n", reg, data);
#endif #endif
} }
...@@ -1346,7 +1350,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip) ...@@ -1346,7 +1350,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip)
irqmask = 3; irqmask = 3;
break; break;
default: default:
snd_printk("invalid irq %d\n", chip->irq); snd_printk(KERN_ERR "invalid irq %d\n", chip->irq);
return -ENODEV; return -ENODEV;
} }
switch (chip->dma1) { switch (chip->dma1) {
...@@ -1360,7 +1364,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip) ...@@ -1360,7 +1364,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip)
dma1mask = 3; dma1mask = 3;
break; break;
default: default:
snd_printk("invalid dma1 %d\n", chip->dma1); snd_printk(KERN_ERR "invalid dma1 %d\n", chip->dma1);
return -ENODEV; return -ENODEV;
} }
switch (chip->dma2) { switch (chip->dma2) {
...@@ -1377,7 +1381,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip) ...@@ -1377,7 +1381,7 @@ static int __devinit snd_es18xx_initialize(es18xx_t *chip)
dma2mask = 3; dma2mask = 3;
break; break;
default: default:
snd_printk("invalid dma2 %d\n", chip->dma2); snd_printk(KERN_ERR "invalid dma2 %d\n", chip->dma2);
return -ENODEV; return -ENODEV;
} }
...@@ -1440,7 +1444,7 @@ static int __devinit snd_es18xx_identify(es18xx_t *chip) ...@@ -1440,7 +1444,7 @@ static int __devinit snd_es18xx_identify(es18xx_t *chip)
/* reset */ /* reset */
if (snd_es18xx_reset(chip) < 0) { if (snd_es18xx_reset(chip) < 0) {
snd_printk("reset at 0x%lx failed!!!\n", chip->port); snd_printk(KERN_ERR "reset at 0x%lx failed!!!\n", chip->port);
return -ENODEV; return -ENODEV;
} }
...@@ -1527,7 +1531,7 @@ static int __devinit snd_es18xx_probe(es18xx_t *chip) ...@@ -1527,7 +1531,7 @@ static int __devinit snd_es18xx_probe(es18xx_t *chip)
chip->caps = ES18XX_PCM2 | ES18XX_RECMIX | ES18XX_AUXB | ES18XX_DUPLEX_SAME | ES18XX_HWV; chip->caps = ES18XX_PCM2 | ES18XX_RECMIX | ES18XX_AUXB | ES18XX_DUPLEX_SAME | ES18XX_HWV;
break; break;
default: default:
snd_printk("[0x%lx] unsupported chip ES%x\n", snd_printk(KERN_ERR "[0x%lx] unsupported chip ES%x\n",
chip->port, chip->version); chip->port, chip->version);
return -ENODEV; return -ENODEV;
} }
......
...@@ -199,7 +199,7 @@ int snd_gf1_dma_transfer_block(snd_gus_card_t * gus, ...@@ -199,7 +199,7 @@ int snd_gf1_dma_transfer_block(snd_gus_card_t * gus,
block = kmalloc(sizeof(*block), atomic ? GFP_ATOMIC : GFP_KERNEL); block = kmalloc(sizeof(*block), atomic ? GFP_ATOMIC : GFP_KERNEL);
if (block == NULL) { if (block == NULL) {
snd_printk("gf1: DMA transfer failure; not enough memory\n"); snd_printk(KERN_ERR "gf1: DMA transfer failure; not enough memory\n");
return -ENOMEM; return -ENOMEM;
} }
*block = *__block; *block = *__block;
......
...@@ -343,7 +343,7 @@ void snd_gf1_pokew(snd_gus_card_t * gus, unsigned int addr, unsigned short data) ...@@ -343,7 +343,7 @@ void snd_gf1_pokew(snd_gus_card_t * gus, unsigned int addr, unsigned short data)
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (!gus->interwave) if (!gus->interwave)
snd_printk("snd_gf1_pokew - GF1!!!\n"); snd_printk(KERN_DEBUG "snd_gf1_pokew - GF1!!!\n");
#endif #endif
spin_lock_irqsave(&gus->reg_lock, flags); spin_lock_irqsave(&gus->reg_lock, flags);
outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel); outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
...@@ -367,7 +367,7 @@ unsigned short snd_gf1_peekw(snd_gus_card_t * gus, unsigned int addr) ...@@ -367,7 +367,7 @@ unsigned short snd_gf1_peekw(snd_gus_card_t * gus, unsigned int addr)
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (!gus->interwave) if (!gus->interwave)
snd_printk("snd_gf1_peekw - GF1!!!\n"); snd_printk(KERN_DEBUG "snd_gf1_peekw - GF1!!!\n");
#endif #endif
spin_lock_irqsave(&gus->reg_lock, flags); spin_lock_irqsave(&gus->reg_lock, flags);
outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel); outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
...@@ -393,7 +393,7 @@ void snd_gf1_dram_setmem(snd_gus_card_t * gus, unsigned int addr, ...@@ -393,7 +393,7 @@ void snd_gf1_dram_setmem(snd_gus_card_t * gus, unsigned int addr,
#ifdef CONFIG_SND_DEBUG #ifdef CONFIG_SND_DEBUG
if (!gus->interwave) if (!gus->interwave)
snd_printk("snd_gf1_dram_setmem - GF1!!!\n"); snd_printk(KERN_DEBUG "snd_gf1_dram_setmem - GF1!!!\n");
#endif #endif
addr &= ~1; addr &= ~1;
count >>= 1; count >>= 1;
...@@ -449,30 +449,30 @@ void snd_gf1_print_voice_registers(snd_gus_card_t * gus) ...@@ -449,30 +449,30 @@ void snd_gf1_print_voice_registers(snd_gus_card_t * gus)
int voice, ctrl; int voice, ctrl;
voice = gus->gf1.active_voice; voice = gus->gf1.active_voice;
printk(" -%i- GF1 voice ctrl, ramp ctrl = 0x%x, 0x%x\n", voice, ctrl = snd_gf1_i_read8(gus, 0), snd_gf1_i_read8(gus, 0x0d)); printk(KERN_INFO " -%i- GF1 voice ctrl, ramp ctrl = 0x%x, 0x%x\n", voice, ctrl = snd_gf1_i_read8(gus, 0), snd_gf1_i_read8(gus, 0x0d));
printk(" -%i- GF1 frequency = 0x%x\n", voice, snd_gf1_i_read16(gus, 1)); printk(KERN_INFO " -%i- GF1 frequency = 0x%x\n", voice, snd_gf1_i_read16(gus, 1));
printk(" -%i- GF1 loop start, end = 0x%x (0x%x), 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 2, ctrl & 4), snd_gf1_i_read_addr(gus, 2, (ctrl & 4) ^ 4), snd_gf1_i_read_addr(gus, 4, ctrl & 4), snd_gf1_i_read_addr(gus, 4, (ctrl & 4) ^ 4)); printk(KERN_INFO " -%i- GF1 loop start, end = 0x%x (0x%x), 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 2, ctrl & 4), snd_gf1_i_read_addr(gus, 2, (ctrl & 4) ^ 4), snd_gf1_i_read_addr(gus, 4, ctrl & 4), snd_gf1_i_read_addr(gus, 4, (ctrl & 4) ^ 4));
printk(" -%i- GF1 ramp start, end, rate = 0x%x, 0x%x, 0x%x\n", voice, snd_gf1_i_read8(gus, 7), snd_gf1_i_read8(gus, 8), snd_gf1_i_read8(gus, 6)); printk(KERN_INFO " -%i- GF1 ramp start, end, rate = 0x%x, 0x%x, 0x%x\n", voice, snd_gf1_i_read8(gus, 7), snd_gf1_i_read8(gus, 8), snd_gf1_i_read8(gus, 6));
printk(" -%i- GF1 volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 9)); printk(KERN_INFO" -%i- GF1 volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 9));
printk(" -%i- GF1 position = 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 0x0a, ctrl & 4), snd_gf1_i_read_addr(gus, 0x0a, (ctrl & 4) ^ 4)); printk(KERN_INFO " -%i- GF1 position = 0x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 0x0a, ctrl & 4), snd_gf1_i_read_addr(gus, 0x0a, (ctrl & 4) ^ 4));
if (gus->interwave && snd_gf1_i_read8(gus, 0x19) & 0x01) { /* enhanced mode */ if (gus->interwave && snd_gf1_i_read8(gus, 0x19) & 0x01) { /* enhanced mode */
mode = snd_gf1_i_read8(gus, 0x15); mode = snd_gf1_i_read8(gus, 0x15);
printk(" -%i- GFA1 mode = 0x%x\n", voice, mode); printk(KERN_INFO " -%i- GFA1 mode = 0x%x\n", voice, mode);
if (mode & 0x01) { /* Effect processor */ if (mode & 0x01) { /* Effect processor */
printk(" -%i- GFA1 effect address = 0x%x\n", voice, snd_gf1_i_read_addr(gus, 0x11, ctrl & 4)); printk(KERN_INFO " -%i- GFA1 effect address = 0x%x\n", voice, snd_gf1_i_read_addr(gus, 0x11, ctrl & 4));
printk(" -%i- GFA1 effect volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x16)); printk(KERN_INFO " -%i- GFA1 effect volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x16));
printk(" -%i- GFA1 effect volume final = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x1d)); printk(KERN_INFO " -%i- GFA1 effect volume final = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x1d));
printk(" -%i- GFA1 effect acumulator = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x14)); printk(KERN_INFO " -%i- GFA1 effect acumulator = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x14));
} }
if (mode & 0x20) { if (mode & 0x20) {
printk(" -%i- GFA1 left offset = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x13), snd_gf1_i_read16(gus, 0x13) >> 4); printk(KERN_INFO " -%i- GFA1 left offset = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x13), snd_gf1_i_read16(gus, 0x13) >> 4);
printk(" -%i- GFA1 left offset final = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x1c), snd_gf1_i_read16(gus, 0x1c) >> 4); printk(KERN_INFO " -%i- GFA1 left offset final = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x1c), snd_gf1_i_read16(gus, 0x1c) >> 4);
printk(" -%i- GFA1 right offset = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x0c), snd_gf1_i_read16(gus, 0x0c) >> 4); printk(KERN_INFO " -%i- GFA1 right offset = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x0c), snd_gf1_i_read16(gus, 0x0c) >> 4);
printk(" -%i- GFA1 right offset final = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x1b), snd_gf1_i_read16(gus, 0x1b) >> 4); printk(KERN_INFO " -%i- GFA1 right offset final = 0x%x (%i)\n", voice, snd_gf1_i_read16(gus, 0x1b), snd_gf1_i_read16(gus, 0x1b) >> 4);
} else } else
printk(" -%i- GF1 pan = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x0c)); printk(KERN_INFO " -%i- GF1 pan = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x0c));
} else } else
printk(" -%i- GF1 pan = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x0c)); printk(KERN_INFO " -%i- GF1 pan = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x0c));
} }
#if 0 #if 0
...@@ -481,45 +481,45 @@ void snd_gf1_print_global_registers(snd_gus_card_t * gus) ...@@ -481,45 +481,45 @@ void snd_gf1_print_global_registers(snd_gus_card_t * gus)
{ {
unsigned char global_mode = 0x00; unsigned char global_mode = 0x00;
printk(" -G- GF1 active voices = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_ACTIVE_VOICES)); printk(KERN_INFO " -G- GF1 active voices = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_ACTIVE_VOICES));
if (gus->interwave) { if (gus->interwave) {
global_mode = snd_gf1_i_read8(gus, SNDRV_GF1_GB_GLOBAL_MODE); global_mode = snd_gf1_i_read8(gus, SNDRV_GF1_GB_GLOBAL_MODE);
printk(" -G- GF1 global mode = 0x%x\n", global_mode); printk(KERN_INFO " -G- GF1 global mode = 0x%x\n", global_mode);
} }
if (global_mode & 0x02) /* LFO enabled? */ if (global_mode & 0x02) /* LFO enabled? */
printk(" -G- GF1 LFO base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_LFO_BASE)); printk(KERN_INFO " -G- GF1 LFO base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_LFO_BASE));
printk(" -G- GF1 voices IRQ read = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_VOICES_IRQ_READ)); printk(KERN_INFO " -G- GF1 voices IRQ read = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_VOICES_IRQ_READ));
printk(" -G- GF1 DRAM DMA control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_DMA_CONTROL)); printk(KERN_INFO " -G- GF1 DRAM DMA control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_DMA_CONTROL));
printk(" -G- GF1 DRAM DMA high/low = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_DMA_HIGH), snd_gf1_i_read16(gus, SNDRV_GF1_GW_DRAM_DMA_LOW)); printk(KERN_INFO " -G- GF1 DRAM DMA high/low = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_DMA_HIGH), snd_gf1_i_read16(gus, SNDRV_GF1_GW_DRAM_DMA_LOW));
printk(" -G- GF1 DRAM IO high/low = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_IO_HIGH), snd_gf1_i_read16(gus, SNDRV_GF1_GW_DRAM_IO_LOW)); printk(KERN_INFO " -G- GF1 DRAM IO high/low = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DRAM_IO_HIGH), snd_gf1_i_read16(gus, SNDRV_GF1_GW_DRAM_IO_LOW));
if (!gus->interwave) if (!gus->interwave)
printk(" -G- GF1 record DMA control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_REC_DMA_CONTROL)); printk(KERN_INFO " -G- GF1 record DMA control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_REC_DMA_CONTROL));
printk(" -G- GF1 DRAM IO 16 = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_DRAM_IO16)); printk(KERN_INFO " -G- GF1 DRAM IO 16 = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_DRAM_IO16));
if (gus->gf1.enh_mode) { if (gus->gf1.enh_mode) {
printk(" -G- GFA1 memory config = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_MEMORY_CONFIG)); printk(KERN_INFO " -G- GFA1 memory config = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_MEMORY_CONFIG));
printk(" -G- GFA1 memory control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_MEMORY_CONTROL)); printk(KERN_INFO " -G- GFA1 memory control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_MEMORY_CONTROL));
printk(" -G- GFA1 FIFO record base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR)); printk(KERN_INFO " -G- GFA1 FIFO record base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR));
printk(" -G- GFA1 FIFO playback base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR)); printk(KERN_INFO " -G- GFA1 FIFO playback base = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR));
printk(" -G- GFA1 interleave control = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_INTERLEAVE)); printk(KERN_INFO " -G- GFA1 interleave control = 0x%x\n", snd_gf1_i_look16(gus, SNDRV_GF1_GW_INTERLEAVE));
} }
} }
void snd_gf1_print_setup_registers(snd_gus_card_t * gus) void snd_gf1_print_setup_registers(snd_gus_card_t * gus)
{ {
printk(" -S- mix control = 0x%x\n", inb(GUSP(gus, MIXCNTRLREG))); printk(KERN_INFO " -S- mix control = 0x%x\n", inb(GUSP(gus, MIXCNTRLREG)));
printk(" -S- IRQ status = 0x%x\n", inb(GUSP(gus, IRQSTAT))); printk(KERN_INFO " -S- IRQ status = 0x%x\n", inb(GUSP(gus, IRQSTAT)));
printk(" -S- timer control = 0x%x\n", inb(GUSP(gus, TIMERCNTRL))); printk(KERN_INFO " -S- timer control = 0x%x\n", inb(GUSP(gus, TIMERCNTRL)));
printk(" -S- timer data = 0x%x\n", inb(GUSP(gus, TIMERDATA))); printk(KERN_INFO " -S- timer data = 0x%x\n", inb(GUSP(gus, TIMERDATA)));
printk(" -S- status read = 0x%x\n", inb(GUSP(gus, REGCNTRLS))); printk(KERN_INFO " -S- status read = 0x%x\n", inb(GUSP(gus, REGCNTRLS)));
printk(" -S- Sound Blaster control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL)); printk(KERN_INFO " -S- Sound Blaster control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL));
printk(" -S- AdLib timer 1/2 = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1), snd_gf1_i_look8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2)); printk(KERN_INFO " -S- AdLib timer 1/2 = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1), snd_gf1_i_look8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2));
printk(" -S- reset = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)); printk(KERN_INFO " -S- reset = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET));
if (gus->interwave) { if (gus->interwave) {
printk(" -S- compatibility = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_COMPATIBILITY)); printk(KERN_INFO " -S- compatibility = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_COMPATIBILITY));
printk(" -S- decode control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DECODE_CONTROL)); printk(KERN_INFO " -S- decode control = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_DECODE_CONTROL));
printk(" -S- version number = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_VERSION_NUMBER)); printk(KERN_INFO " -S- version number = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_VERSION_NUMBER));
printk(" -S- MPU-401 emul. control A/B = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_MPU401_CONTROL_A), snd_gf1_i_look8(gus, SNDRV_GF1_GB_MPU401_CONTROL_B)); printk(KERN_INFO " -S- MPU-401 emul. control A/B = 0x%x/0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_MPU401_CONTROL_A), snd_gf1_i_look8(gus, SNDRV_GF1_GB_MPU401_CONTROL_B));
printk(" -S- emulation IRQ = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_EMULATION_IRQ)); printk(KERN_INFO " -S- emulation IRQ = 0x%x\n", snd_gf1_i_look8(gus, SNDRV_GF1_GB_EMULATION_IRQ));
} }
} }
......
...@@ -246,7 +246,7 @@ static int snd_gus_detect_memory(snd_gus_card_t * gus) ...@@ -246,7 +246,7 @@ static int snd_gus_detect_memory(snd_gus_card_t * gus)
snd_gf1_poke(gus, 0L, 0xaa); snd_gf1_poke(gus, 0L, 0xaa);
snd_gf1_poke(gus, 1L, 0x55); snd_gf1_poke(gus, 1L, 0x55);
if (snd_gf1_peek(gus, 0L) != 0xaa || snd_gf1_peek(gus, 1L) != 0x55) { if (snd_gf1_peek(gus, 0L) != 0xaa || snd_gf1_peek(gus, 1L) != 0x55) {
snd_printk("plain GF1 card at 0x%lx without onboard DRAM?\n", gus->gf1.port); snd_printk(KERN_ERR "plain GF1 card at 0x%lx without onboard DRAM?\n", gus->gf1.port);
return -ENOMEM; return -ENOMEM;
} }
for (idx = 1, d = 0xab; idx < 4; idx++, d++) { for (idx = 1, d = 0xab; idx < 4; idx++, d++) {
...@@ -299,20 +299,17 @@ static int snd_gus_init_dma_irq(snd_gus_card_t * gus, int latches) ...@@ -299,20 +299,17 @@ static int snd_gus_init_dma_irq(snd_gus_card_t * gus, int latches)
dma2 = gus->gf1.dma2; dma2 = gus->gf1.dma2;
dma2 = dma2 < 0 ? -dma2 : dma2; dma2 = dma2 < 0 ? -dma2 : dma2;
dma2 = dmas[dma2 & 7]; dma2 = dmas[dma2 & 7];
#if 0
printk("dma1 = %i, dma2 = %i\n", gus->gf1.dma1, gus->gf1.dma2);
#endif
dma1 |= gus->equal_dma ? 0x40 : (dma2 << 3); dma1 |= gus->equal_dma ? 0x40 : (dma2 << 3);
if ((dma1 & 7) == 0 || (dma2 & 7) == 0) { if ((dma1 & 7) == 0 || (dma2 & 7) == 0) {
snd_printk("Error! DMA isn't defined.\n"); snd_printk(KERN_ERR "Error! DMA isn't defined.\n");
return -EINVAL; return -EINVAL;
} }
irq = gus->gf1.irq; irq = gus->gf1.irq;
irq = irq < 0 ? -irq : irq; irq = irq < 0 ? -irq : irq;
irq = irqs[irq & 0x0f]; irq = irqs[irq & 0x0f];
if (irq == 0) { if (irq == 0) {
snd_printk("Error! IRQ isn't defined.\n"); snd_printk(KERN_ERR "Error! IRQ isn't defined.\n");
return -EINVAL; return -EINVAL;
} }
irq |= 0x40; irq |= 0x40;
...@@ -400,8 +397,8 @@ static int snd_gus_check_version(snd_gus_card_t * gus) ...@@ -400,8 +397,8 @@ static int snd_gus_check_version(snd_gus_card_t * gus)
strcpy(card->longname, "Gravis UltraSound Extreme"); strcpy(card->longname, "Gravis UltraSound Extreme");
gus->ess_flag = 1; gus->ess_flag = 1;
} else { } else {
snd_printk("unknown GF1 revision number at 0x%lx - 0x%x (0x%x)\n", gus->gf1.port, rev, val); snd_printk(KERN_ERR "unknown GF1 revision number at 0x%lx - 0x%x (0x%x)\n", gus->gf1.port, rev, val);
snd_printk(" please - report to <perex@suse.cz>\n"); snd_printk(KERN_ERR " please - report to <perex@suse.cz>\n");
} }
} }
} }
...@@ -425,7 +422,7 @@ int snd_gus_initialize(snd_gus_card_t *gus) ...@@ -425,7 +422,7 @@ int snd_gus_initialize(snd_gus_card_t *gus)
if (!gus->interwave) { if (!gus->interwave) {
if ((err = snd_gus_check_version(gus)) < 0) { if ((err = snd_gus_check_version(gus)) < 0) {
snd_printk("version check failed\n"); snd_printk(KERN_ERR "version check failed\n");
return err; return err;
} }
if ((err = snd_gus_detect_memory(gus)) < 0) if ((err = snd_gus_detect_memory(gus)) < 0)
......
...@@ -198,7 +198,7 @@ snd_gf1_mem_block_t *snd_gf1_mem_alloc(snd_gf1_mem_t * alloc, int owner, ...@@ -198,7 +198,7 @@ snd_gf1_mem_block_t *snd_gf1_mem_alloc(snd_gf1_mem_t * alloc, int owner,
if (nblock != NULL) { if (nblock != NULL) {
if (size != (int)nblock->size) { if (size != (int)nblock->size) {
/* TODO: remove in the future */ /* TODO: remove in the future */
snd_printk("snd_gf1_mem_alloc - share: sizes differ\n"); snd_printk(KERN_ERR "snd_gf1_mem_alloc - share: sizes differ\n");
goto __std; goto __std;
} }
nblock->share++; nblock->share++;
......
...@@ -698,7 +698,7 @@ static int snd_gf1_pcm_playback_close(snd_pcm_substream_t * substream) ...@@ -698,7 +698,7 @@ static int snd_gf1_pcm_playback_close(snd_pcm_substream_t * substream)
gus_pcm_private_t *pcmp = runtime->private_data; gus_pcm_private_t *pcmp = runtime->private_data;
if (!wait_event_timeout(pcmp->sleep, (atomic_read(&pcmp->dma_count) <= 0), 2*HZ)) if (!wait_event_timeout(pcmp->sleep, (atomic_read(&pcmp->dma_count) <= 0), 2*HZ))
snd_printk("gf1 pcm - serious DMA problem\n"); snd_printk(KERN_ERR "gf1 pcm - serious DMA problem\n");
snd_gf1_dma_done(gus); snd_gf1_dma_done(gus);
return 0; return 0;
......
...@@ -134,7 +134,7 @@ void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice) ...@@ -134,7 +134,7 @@ void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice)
spin_lock_irqsave(&gus->reg_lock, flags); spin_lock_irqsave(&gus->reg_lock, flags);
snd_gf1_select_voice(gus, voice); snd_gf1_select_voice(gus, voice);
#if 0 #if 0
printk(" -%i- smart stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME)); printk(KERN_DEBUG " -%i- smart stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
#endif #endif
snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL);
snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL); snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL);
...@@ -148,7 +148,7 @@ void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice) ...@@ -148,7 +148,7 @@ void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice)
spin_lock_irqsave(&gus->reg_lock, flags); spin_lock_irqsave(&gus->reg_lock, flags);
snd_gf1_select_voice(gus, voice); snd_gf1_select_voice(gus, voice);
#if 0 #if 0
printk(" -%i- stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME)); printk(KERN_DEBUG " -%i- stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
#endif #endif
snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL);
snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL); snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL);
......
...@@ -136,7 +136,7 @@ static void do_volume_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice) ...@@ -136,7 +136,7 @@ static void do_volume_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice)
snd_gf1_select_voice(gus, voice->number); snd_gf1_select_voice(gus, voice->number);
snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL); snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL);
snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, voice->gf1_volume); snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, voice->gf1_volume);
printk("gf1_volume = 0x%x\n", voice->gf1_volume); /* printk("gf1_volume = 0x%x\n", voice->gf1_volume); */
spin_unlock_irqrestore(&gus->reg_lock, flags); spin_unlock_irqrestore(&gus->reg_lock, flags);
return; return;
} }
......
...@@ -104,7 +104,7 @@ static int snd_gf1_uart_output_open(snd_rawmidi_substream_t * substream) ...@@ -104,7 +104,7 @@ static int snd_gf1_uart_output_open(snd_rawmidi_substream_t * substream)
gus->midi_substream_output = substream; gus->midi_substream_output = substream;
spin_unlock_irqrestore(&gus->uart_cmd_lock, flags); spin_unlock_irqrestore(&gus->uart_cmd_lock, flags);
#if 0 #if 0
snd_printk("write init - cmd = 0x%x, stat = 0x%x\n", gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); snd_printk(KERN_DEBUG "write init - cmd = 0x%x, stat = 0x%x\n", gus->gf1.uart_cmd, snd_gf1_uart_stat(gus));
#endif #endif
return 0; return 0;
} }
...@@ -126,7 +126,7 @@ static int snd_gf1_uart_input_open(snd_rawmidi_substream_t * substream) ...@@ -126,7 +126,7 @@ static int snd_gf1_uart_input_open(snd_rawmidi_substream_t * substream)
for (i = 0; i < 1000 && (snd_gf1_uart_stat(gus) & 0x01); i++) for (i = 0; i < 1000 && (snd_gf1_uart_stat(gus) & 0x01); i++)
snd_gf1_uart_get(gus); /* clean Rx */ snd_gf1_uart_get(gus); /* clean Rx */
if (i >= 1000) if (i >= 1000)
snd_printk("gus midi uart init read - cleanup error\n"); snd_printk(KERN_ERR "gus midi uart init read - cleanup error\n");
} }
spin_unlock_irqrestore(&gus->uart_cmd_lock, flags); spin_unlock_irqrestore(&gus->uart_cmd_lock, flags);
#if 0 #if 0
......
...@@ -119,7 +119,7 @@ unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq16) ...@@ -119,7 +119,7 @@ unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq16)
freq16 = 50; freq16 = 50;
if (freq16 & 0xf8000000) { if (freq16 & 0xf8000000) {
freq16 = ~0xf8000000; freq16 = ~0xf8000000;
snd_printk("snd_gf1_translate_freq: overflow - freq = 0x%x\n", freq16); snd_printk(KERN_ERR "snd_gf1_translate_freq: overflow - freq = 0x%x\n", freq16);
} }
return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq; return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq;
} }
...@@ -203,14 +203,14 @@ unsigned short snd_gf1_compute_freq(unsigned int freq, ...@@ -203,14 +203,14 @@ unsigned short snd_gf1_compute_freq(unsigned int freq,
fc = (freq << 10) / rate; fc = (freq << 10) / rate;
if (fc > 97391L) { if (fc > 97391L) {
fc = 97391; fc = 97391;
snd_printk("patch: (1) fc frequency overflow - %u\n", fc); snd_printk(KERN_ERR "patch: (1) fc frequency overflow - %u\n", fc);
} }
fc = (fc * 44100UL) / mix_rate; fc = (fc * 44100UL) / mix_rate;
while (scale--) while (scale--)
fc <<= 1; fc <<= 1;
if (fc > 65535L) { if (fc > 65535L) {
fc = 65535; fc = 65535;
snd_printk("patch: (2) fc frequency overflow - %u\n", fc); snd_printk(KERN_ERR "patch: (2) fc frequency overflow - %u\n", fc);
} }
return (unsigned short) fc; return (unsigned short) fc;
} }
......
...@@ -437,7 +437,7 @@ static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus) ...@@ -437,7 +437,7 @@ static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus)
for (i = 0; i < 8; ++i) for (i = 0; i < 8; ++i)
iwave[i] = snd_gf1_peek(gus, bank_pos + i); iwave[i] = snd_gf1_peek(gus, bank_pos + i);
#ifdef CONFIG_SND_DEBUG_ROM #ifdef CONFIG_SND_DEBUG_ROM
printk("ROM at 0x%06x = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos, printk(KERN_DEBUG "ROM at 0x%06x = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos,
iwave[0], iwave[1], iwave[2], iwave[3], iwave[0], iwave[1], iwave[2], iwave[3],
iwave[4], iwave[5], iwave[6], iwave[7]); iwave[4], iwave[5], iwave[6], iwave[7]);
#endif #endif
...@@ -447,7 +447,7 @@ static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus) ...@@ -447,7 +447,7 @@ static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus)
for (i = 0; i < sizeof(struct rom_hdr); i++) for (i = 0; i < sizeof(struct rom_hdr); i++)
csum += snd_gf1_peek(gus, bank_pos + i); csum += snd_gf1_peek(gus, bank_pos + i);
#ifdef CONFIG_SND_DEBUG_ROM #ifdef CONFIG_SND_DEBUG_ROM
printk("ROM checksum = 0x%x (computed)\n", csum); printk(KERN_DEBUG "ROM checksum = 0x%x (computed)\n", csum);
#endif #endif
if (csum != 0) if (csum != 0)
continue; /* not valid rom */ continue; /* not valid rom */
......
...@@ -56,7 +56,7 @@ static int snd_emu8000_new_device(snd_seq_device_t *dev) ...@@ -56,7 +56,7 @@ static int snd_emu8000_new_device(snd_seq_device_t *dev)
emu->num_ports = hw->seq_ports; emu->num_ports = hw->seq_ports;
if (hw->memhdr) { if (hw->memhdr) {
snd_printk("memhdr is already initialized!?\n"); snd_printk(KERN_ERR "memhdr is already initialized!?\n");
snd_util_memhdr_free(hw->memhdr); snd_util_memhdr_free(hw->memhdr);
} }
hw->memhdr = snd_util_memhdr_new(hw->mem_size); hw->memhdr = snd_util_memhdr_new(hw->mem_size);
......
...@@ -747,7 +747,7 @@ int snd_sb16dsp_configure(sb_t * chip) ...@@ -747,7 +747,7 @@ int snd_sb16dsp_configure(sb_t * chip)
unsigned char realirq, realdma, realmpureg; unsigned char realirq, realdma, realmpureg;
/* note: mpu register should be present only on SB16 Vibra soundcards */ /* note: mpu register should be present only on SB16 Vibra soundcards */
// printk("codec->irq=%i, codec->dma8=%i, codec->dma16=%i\n", chip->irq, chip->dma8, chip->dma16); // printk(KERN_DEBUG "codec->irq=%i, codec->dma8=%i, codec->dma16=%i\n", chip->irq, chip->dma8, chip->dma16);
spin_lock_irqsave(&chip->mixer_lock, flags); spin_lock_irqsave(&chip->mixer_lock, flags);
mpureg = snd_sbmixer_read(chip, SB_DSP4_MPUSETUP) & ~0x06; mpureg = snd_sbmixer_read(chip, SB_DSP4_MPUSETUP) & ~0x06;
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
...@@ -821,9 +821,9 @@ int snd_sb16dsp_configure(sb_t * chip) ...@@ -821,9 +821,9 @@ int snd_sb16dsp_configure(sb_t * chip)
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
if ((~realirq) & irqreg || (~realdma) & dmareg) { if ((~realirq) & irqreg || (~realdma) & dmareg) {
snd_printk("SB16 [0x%lx]: unable to set DMA & IRQ (PnP device?)\n", chip->port); snd_printk(KERN_ERR "SB16 [0x%lx]: unable to set DMA & IRQ (PnP device?)\n", chip->port);
snd_printk("SB16 [0x%lx]: wanted: irqreg=0x%x, dmareg=0x%x, mpureg = 0x%x\n", chip->port, realirq, realdma, realmpureg); snd_printk(KERN_ERR "SB16 [0x%lx]: wanted: irqreg=0x%x, dmareg=0x%x, mpureg = 0x%x\n", chip->port, realirq, realdma, realmpureg);
snd_printk("SB16 [0x%lx]: got: irqreg=0x%x, dmareg=0x%x, mpureg = 0x%x\n", chip->port, irqreg, dmareg, mpureg); snd_printk(KERN_ERR "SB16 [0x%lx]: got: irqreg=0x%x, dmareg=0x%x, mpureg = 0x%x\n", chip->port, irqreg, dmareg, mpureg);
return -ENODEV; return -ENODEV;
} }
return 0; return 0;
......
...@@ -334,9 +334,6 @@ irqreturn_t snd_sb8dsp_interrupt(sb_t *chip) ...@@ -334,9 +334,6 @@ irqreturn_t snd_sb8dsp_interrupt(sb_t *chip)
snd_pcm_substream_t *substream; snd_pcm_substream_t *substream;
snd_pcm_runtime_t *runtime; snd_pcm_runtime_t *runtime;
#if 0
snd_printk("sb8: interrupt\n");
#endif
snd_sb_ack_8bit(chip); snd_sb_ack_8bit(chip);
switch (chip->mode) { switch (chip->mode) {
case SB_MODE_PLAYBACK_8: /* ok.. playback is active */ case SB_MODE_PLAYBACK_8: /* ok.. playback is active */
......
...@@ -45,7 +45,7 @@ int snd_sbdsp_command(sb_t *chip, unsigned char val) ...@@ -45,7 +45,7 @@ int snd_sbdsp_command(sb_t *chip, unsigned char val)
{ {
int i; int i;
#ifdef IO_DEBUG #ifdef IO_DEBUG
snd_printk("command 0x%x\n", val); snd_printk(KERN_DEBUG "command 0x%x\n", val);
#endif #endif
for (i = BUSY_LOOPS; i; i--) for (i = BUSY_LOOPS; i; i--)
if ((inb(SBP(chip, STATUS)) & 0x80) == 0) { if ((inb(SBP(chip, STATUS)) & 0x80) == 0) {
...@@ -64,7 +64,7 @@ int snd_sbdsp_get_byte(sb_t *chip) ...@@ -64,7 +64,7 @@ int snd_sbdsp_get_byte(sb_t *chip)
if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { if (inb(SBP(chip, DATA_AVAIL)) & 0x80) {
val = inb(SBP(chip, READ)); val = inb(SBP(chip, READ));
#ifdef IO_DEBUG #ifdef IO_DEBUG
snd_printk("get_byte 0x%x\n", val); snd_printk(KERN_DEBUG "get_byte 0x%x\n", val);
#endif #endif
return val; return val;
} }
...@@ -154,7 +154,7 @@ static int snd_sbdsp_probe(sb_t * chip) ...@@ -154,7 +154,7 @@ static int snd_sbdsp_probe(sb_t * chip)
str = "16"; str = "16";
break; break;
default: default:
snd_printk("SB [0x%lx]: unknown DSP chip version %i.%i\n", snd_printk(KERN_INFO "SB [0x%lx]: unknown DSP chip version %i.%i\n",
chip->port, major, minor); chip->port, major, minor);
return -ENODEV; return -ENODEV;
} }
......
...@@ -36,7 +36,7 @@ void snd_sbmixer_write(sb_t *chip, unsigned char reg, unsigned char data) ...@@ -36,7 +36,7 @@ void snd_sbmixer_write(sb_t *chip, unsigned char reg, unsigned char data)
outb(data, SBP(chip, MIXER_DATA)); outb(data, SBP(chip, MIXER_DATA));
udelay(10); udelay(10);
#ifdef IO_DEBUG #ifdef IO_DEBUG
snd_printk("mixer_write 0x%x 0x%x\n", reg, data); snd_printk(KERN_DEBUG "mixer_write 0x%x 0x%x\n", reg, data);
#endif #endif
} }
...@@ -49,7 +49,7 @@ unsigned char snd_sbmixer_read(sb_t *chip, unsigned char reg) ...@@ -49,7 +49,7 @@ unsigned char snd_sbmixer_read(sb_t *chip, unsigned char reg)
result = inb(SBP(chip, MIXER_DATA)); result = inb(SBP(chip, MIXER_DATA));
udelay(10); udelay(10);
#ifdef IO_DEBUG #ifdef IO_DEBUG
snd_printk("mixer_read 0x%x 0x%x\n", reg, result); snd_printk(KERN_DEBUG "mixer_read 0x%x 0x%x\n", reg, result);
#endif #endif
return result; return result;
} }
......
...@@ -426,7 +426,7 @@ static int snd_ali_stimer_ready(ali_t *codec, int sched) ...@@ -426,7 +426,7 @@ static int snd_ali_stimer_ready(ali_t *codec, int sched)
schedule_timeout(1); schedule_timeout(1);
} }
} while (time_after_eq(end_time, jiffies)); } while (time_after_eq(end_time, jiffies));
snd_printk("ali_stimer_read: stimer is not ready.\n"); snd_printk(KERN_ERR "ali_stimer_read: stimer is not ready.\n");
return -EIO; return -EIO;
} }
...@@ -438,7 +438,7 @@ static void snd_ali_codec_poke(ali_t *codec,int secondary, ...@@ -438,7 +438,7 @@ static void snd_ali_codec_poke(ali_t *codec,int secondary,
unsigned int port = 0; unsigned int port = 0;
if (reg >= 0x80) { if (reg >= 0x80) {
snd_printk("ali_codec_poke: reg(%xh) invalid.\n", reg); snd_printk(KERN_ERR "ali_codec_poke: reg(%xh) invalid.\n", reg);
return; return;
} }
...@@ -467,7 +467,7 @@ static unsigned short snd_ali_codec_peek( ali_t *codec, ...@@ -467,7 +467,7 @@ static unsigned short snd_ali_codec_peek( ali_t *codec,
unsigned int port = 0; unsigned int port = 0;
if (reg >= 0x80) { if (reg >= 0x80) {
snd_printk("ali_codec_peek: reg(%xh) invalid.\n", reg); snd_printk(KERN_ERR "ali_codec_peek: reg(%xh) invalid.\n", reg);
return ~0; return ~0;
} }
...@@ -671,7 +671,7 @@ static int snd_ali_alloc_pcm_channel(ali_t *codec, int channel) ...@@ -671,7 +671,7 @@ static int snd_ali_alloc_pcm_channel(ali_t *codec, int channel)
unsigned int idx = channel & 0x1f; unsigned int idx = channel & 0x1f;
if (codec->synth.chcnt >= ALI_CHANNELS){ if (codec->synth.chcnt >= ALI_CHANNELS){
snd_printk("ali_alloc_pcm_channel: no free channels.\n"); snd_printk(KERN_ERR "ali_alloc_pcm_channel: no free channels.\n");
return -1; return -1;
} }
...@@ -702,7 +702,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec) ...@@ -702,7 +702,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec)
if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) { if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) {
return result; return result;
} else { } else {
snd_printk("ali_find_free_channel: record channel is busy now.\n"); snd_printk(KERN_ERR "ali_find_free_channel: record channel is busy now.\n");
return -1; return -1;
} }
} }
...@@ -714,7 +714,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec) ...@@ -714,7 +714,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec)
if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) { if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) {
return result; return result;
} else { } else {
snd_printk("ali_find_free_channel: S/PDIF out channel is in busy now.\n"); snd_printk(KERN_ERR "ali_find_free_channel: S/PDIF out channel is in busy now.\n");
} }
} }
...@@ -722,7 +722,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec) ...@@ -722,7 +722,7 @@ static int snd_ali_find_free_channel(ali_t * codec, int rec)
if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0)
return result; return result;
} }
snd_printk("ali_find_free_channel: no free channels.\n"); snd_printk(KERN_ERR "ali_find_free_channel: no free channels.\n");
return -1; return -1;
} }
...@@ -736,7 +736,7 @@ static void snd_ali_free_channel_pcm(ali_t *codec, int channel) ...@@ -736,7 +736,7 @@ static void snd_ali_free_channel_pcm(ali_t *codec, int channel)
return; return;
if (!(codec->synth.chmap & (1 << idx))) { if (!(codec->synth.chmap & (1 << idx))) {
snd_printk("ali_free_channel_pcm: channel %d is not in use.\n",channel); snd_printk(KERN_ERR "ali_free_channel_pcm: channel %d is not in use.\n",channel);
return; return;
} else { } else {
codec->synth.chmap &= ~(1 << idx); codec->synth.chmap &= ~(1 << idx);
...@@ -798,7 +798,7 @@ static void snd_ali_detect_spdif_rate(ali_t *codec) ...@@ -798,7 +798,7 @@ static void snd_ali_detect_spdif_rate(ali_t *codec)
} }
if (count > 50000) { if (count > 50000) {
snd_printk("ali_detect_spdif_rate: timeout!\n"); snd_printk(KERN_ERR "ali_detect_spdif_rate: timeout!\n");
return; return;
} }
...@@ -811,7 +811,7 @@ static void snd_ali_detect_spdif_rate(ali_t *codec) ...@@ -811,7 +811,7 @@ static void snd_ali_detect_spdif_rate(ali_t *codec)
} }
if (count > 50000) { if (count > 50000) {
snd_printk("ali_detect_spdif_rate: timeout!\n"); snd_printk(KERN_ERR "ali_detect_spdif_rate: timeout!\n");
return; return;
} }
...@@ -1079,7 +1079,7 @@ static snd_ali_voice_t *snd_ali_alloc_voice(ali_t * codec, int type, int rec, in ...@@ -1079,7 +1079,7 @@ static snd_ali_voice_t *snd_ali_alloc_voice(ali_t * codec, int type, int rec, in
idx = channel > 0 ? snd_ali_alloc_pcm_channel(codec, channel) : idx = channel > 0 ? snd_ali_alloc_pcm_channel(codec, channel) :
snd_ali_find_free_channel(codec,rec); snd_ali_find_free_channel(codec,rec);
if(idx < 0) { if(idx < 0) {
snd_printk("ali_alloc_voice: err.\n"); snd_printk(KERN_ERR "ali_alloc_voice: err.\n");
spin_unlock_irqrestore(&codec->voice_alloc, flags); spin_unlock_irqrestore(&codec->voice_alloc, flags);
return NULL; return NULL;
} }
...@@ -1481,13 +1481,13 @@ static int snd_ali_prepare(snd_pcm_substream_t * substream) ...@@ -1481,13 +1481,13 @@ static int snd_ali_prepare(snd_pcm_substream_t * substream)
} }
rate = snd_ali_get_spdif_in_rate(codec); rate = snd_ali_get_spdif_in_rate(codec);
if (rate == 0) { if (rate == 0) {
snd_printk("ali_capture_preapre: spdif rate detect err!\n"); snd_printk(KERN_WARNING "ali_capture_preapre: spdif rate detect err!\n");
rate = 48000; rate = 48000;
} }
bValue = inb(ALI_REG(codec,ALI_SPDIF_CTRL)); bValue = inb(ALI_REG(codec,ALI_SPDIF_CTRL));
if (bValue & 0x10) { if (bValue & 0x10) {
outb(bValue,ALI_REG(codec,ALI_SPDIF_CTRL)); outb(bValue,ALI_REG(codec,ALI_SPDIF_CTRL));
printk("clear SPDIF parity error flag.\n"); printk(KERN_WARNING "clear SPDIF parity error flag.\n");
} }
if (rate != 48000) if (rate != 48000)
...@@ -1816,7 +1816,7 @@ static int __devinit snd_ali_pcm(ali_t * codec, int device, struct ali_pcm_descr ...@@ -1816,7 +1816,7 @@ static int __devinit snd_ali_pcm(ali_t * codec, int device, struct ali_pcm_descr
err = snd_pcm_new(codec->card, desc->name, device, err = snd_pcm_new(codec->card, desc->name, device,
desc->playback_num, desc->capture_num, &pcm); desc->playback_num, desc->capture_num, &pcm);
if (err < 0) { if (err < 0) {
snd_printk("snd_ali_pcm: err called snd_pcm_new.\n"); snd_printk(KERN_ERR "snd_ali_pcm: err called snd_pcm_new.\n");
return err; return err;
} }
pcm->private_data = codec; pcm->private_data = codec;
...@@ -1994,7 +1994,7 @@ static int __devinit snd_ali_mixer(ali_t * codec) ...@@ -1994,7 +1994,7 @@ static int __devinit snd_ali_mixer(ali_t * codec)
for ( i = 0 ; i < codec->num_of_codecs ; i++) { for ( i = 0 ; i < codec->num_of_codecs ; i++) {
ac97.num = i; ac97.num = i;
if ((err = snd_ac97_mixer(codec->ac97_bus, &ac97, &codec->ac97[i])) < 0) { if ((err = snd_ac97_mixer(codec->ac97_bus, &ac97, &codec->ac97[i])) < 0) {
snd_printk("ali mixer %d creating error.\n", i); snd_printk(KERN_ERR "ali mixer %d creating error.\n", i);
if(i == 0) if(i == 0)
return err; return err;
codec->num_of_codecs = 1; codec->num_of_codecs = 1;
...@@ -2128,7 +2128,7 @@ static int snd_ali_chip_init(ali_t *codec) ...@@ -2128,7 +2128,7 @@ static int snd_ali_chip_init(ali_t *codec)
snd_ali_printk("chip initializing ... \n"); snd_ali_printk("chip initializing ... \n");
if (snd_ali_reset_5451(codec)) { if (snd_ali_reset_5451(codec)) {
snd_printk("ali_chip_init: reset 5451 error.\n"); snd_printk(KERN_ERR "ali_chip_init: reset 5451 error.\n");
return -1; return -1;
} }
...@@ -2203,7 +2203,7 @@ static int __devinit snd_ali_resources(ali_t *codec) ...@@ -2203,7 +2203,7 @@ static int __devinit snd_ali_resources(ali_t *codec)
codec->port = pci_resource_start(codec->pci, 0); codec->port = pci_resource_start(codec->pci, 0);
if (request_irq(codec->pci->irq, snd_ali_card_interrupt, SA_INTERRUPT|SA_SHIRQ, "ALI 5451", (void *)codec)) { if (request_irq(codec->pci->irq, snd_ali_card_interrupt, SA_INTERRUPT|SA_SHIRQ, "ALI 5451", (void *)codec)) {
snd_printk("Unable to request irq.\n"); snd_printk(KERN_ERR "Unable to request irq.\n");
return -EBUSY; return -EBUSY;
} }
codec->irq = codec->pci->irq; codec->irq = codec->pci->irq;
...@@ -2243,7 +2243,7 @@ static int __devinit snd_ali_create(snd_card_t * card, ...@@ -2243,7 +2243,7 @@ static int __devinit snd_ali_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 31 bits */ /* check, if we can restrict PCI DMA transfers to 31 bits */
if (pci_set_dma_mask(pci, 0x7fffffff) < 0 || if (pci_set_dma_mask(pci, 0x7fffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x7fffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x7fffffff) < 0) {
snd_printk("architecture does not support 31bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 31bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -2332,7 +2332,7 @@ static int __devinit snd_ali_create(snd_card_t * card, ...@@ -2332,7 +2332,7 @@ static int __devinit snd_ali_create(snd_card_t * card,
} }
if ((err = snd_ali_chip_init(codec)) < 0) { if ((err = snd_ali_chip_init(codec)) < 0) {
snd_printk("ali create: chip init error.\n"); snd_printk(KERN_ERR "ali create: chip init error.\n");
return err; return err;
} }
......
...@@ -667,7 +667,7 @@ static int __devinit snd_card_als4000_probe(struct pci_dev *pci, ...@@ -667,7 +667,7 @@ static int __devinit snd_card_als4000_probe(struct pci_dev *pci,
/* check, if we can restrict PCI DMA transfers to 24 bits */ /* check, if we can restrict PCI DMA transfers to 24 bits */
if (pci_set_dma_mask(pci, 0x00ffffff) < 0 || if (pci_set_dma_mask(pci, 0x00ffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) {
snd_printk("architecture does not support 24bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 24bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
......
...@@ -303,7 +303,7 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) ...@@ -303,7 +303,7 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_VORTEX_SYNTH, if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_VORTEX_SYNTH,
sizeof(snd_vortex_synth_arg_t), &wave) < 0 sizeof(snd_vortex_synth_arg_t), &wave) < 0
|| wave == NULL) { || wave == NULL) {
snd_printk("Can't initialize Aureal wavetable synth\n"); snd_printk(KERN_ERR "Can't initialize Aureal wavetable synth\n");
} else { } else {
snd_vortex_synth_arg_t *arg; snd_vortex_synth_arg_t *arg;
......
...@@ -488,7 +488,7 @@ static void a3dsrc_ZeroStateA3D(a3dsrc_t * a) ...@@ -488,7 +488,7 @@ static void a3dsrc_ZeroStateA3D(a3dsrc_t * a)
int i, var, var2; int i, var, var2;
if ((a->vortex) == NULL) { if ((a->vortex) == NULL) {
printk("vortex: ZeroStateA3D: ERROR: a->vortex is NULL\n"); printk(KERN_ERR "vortex: ZeroStateA3D: ERROR: a->vortex is NULL\n");
return; return;
} }
......
...@@ -2033,7 +2033,7 @@ vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype) ...@@ -2033,7 +2033,7 @@ vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype)
} }
} }
} }
printk("vortex: FATAL: ResManager: resource type %d exhausted.\n", restype); printk(KERN_ERR "vortex: FATAL: ResManager: resource type %d exhausted.\n", restype);
return -ENOMEM; return -ENOMEM;
} }
...@@ -2165,7 +2165,7 @@ vortex_adb_allocroute(vortex_t * vortex, int dma, int nr_ch, int dir, int type) ...@@ -2165,7 +2165,7 @@ vortex_adb_allocroute(vortex_t * vortex, int dma, int nr_ch, int dir, int type)
memset(stream->resources, 0, memset(stream->resources, 0,
sizeof(unsigned char) * sizeof(unsigned char) *
VORTEX_RESOURCE_LAST); VORTEX_RESOURCE_LAST);
printk("vortex: out of A3D sources. Sorry\n"); printk(KERN_ERR "vortex: out of A3D sources. Sorry\n");
return -EBUSY; return -EBUSY;
} }
/* (De)Initialize A3D hardware source. */ /* (De)Initialize A3D hardware source. */
......
...@@ -854,7 +854,7 @@ snd_vortex_peaks_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) ...@@ -854,7 +854,7 @@ snd_vortex_peaks_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol)
vortex_Eqlzr_GetAllPeaks(vortex, peaks, &count); vortex_Eqlzr_GetAllPeaks(vortex, peaks, &count);
if (count != 20) { if (count != 20) {
printk("vortex: peak count error 20 != %d \n", count); printk(KERN_ERR "vortex: peak count error 20 != %d \n", count);
return -1; return -1;
} }
for (i = 0; i < 20; i++) for (i = 0; i < 20; i++)
......
...@@ -90,7 +90,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch) ...@@ -90,7 +90,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch)
hwwrite(vortex->mmio, WT_PARM(wt, 2), 0); hwwrite(vortex->mmio, WT_PARM(wt, 2), 0);
temp = hwread(vortex->mmio, WT_PARM(wt, 3)); temp = hwread(vortex->mmio, WT_PARM(wt, 3));
printk("vortex: WT PARM3: %x\n", temp); printk(KERN_DEBUG "vortex: WT PARM3: %x\n", temp);
//hwwrite(vortex->mmio, WT_PARM(wt, 3), temp); //hwwrite(vortex->mmio, WT_PARM(wt, 3), temp);
hwwrite(vortex->mmio, WT_DELAY(wt, 0), 0); hwwrite(vortex->mmio, WT_DELAY(wt, 0), 0);
...@@ -98,7 +98,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch) ...@@ -98,7 +98,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch)
hwwrite(vortex->mmio, WT_DELAY(wt, 2), 0); hwwrite(vortex->mmio, WT_DELAY(wt, 2), 0);
hwwrite(vortex->mmio, WT_DELAY(wt, 3), 0); hwwrite(vortex->mmio, WT_DELAY(wt, 3), 0);
printk("vortex: WT GMODE: %x\n", hwread(vortex->mmio, WT_GMODE(wt))); printk(KERN_DEBUG "vortex: WT GMODE: %x\n", hwread(vortex->mmio, WT_GMODE(wt)));
hwwrite(vortex->mmio, WT_PARM(wt, 2), 0xffffffff); hwwrite(vortex->mmio, WT_PARM(wt, 2), 0xffffffff);
hwwrite(vortex->mmio, WT_PARM(wt, 3), 0xcff1c810); hwwrite(vortex->mmio, WT_PARM(wt, 3), 0xcff1c810);
...@@ -106,7 +106,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch) ...@@ -106,7 +106,7 @@ static int vortex_wt_allocroute(vortex_t * vortex, int wt, int nr_ch)
voice->parm0 = voice->parm1 = 0xcfb23e2f; voice->parm0 = voice->parm1 = 0xcfb23e2f;
hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0); hwwrite(vortex->mmio, WT_PARM(wt, 0), voice->parm0);
hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1); hwwrite(vortex->mmio, WT_PARM(wt, 1), voice->parm1);
printk("vortex: WT GMODE 2 : %x\n", hwread(vortex->mmio, WT_GMODE(wt))); printk(KERN_DEBUG "vortex: WT GMODE 2 : %x\n", hwread(vortex->mmio, WT_GMODE(wt)));
return 0; return 0;
} }
...@@ -203,7 +203,7 @@ vortex_wt_SetReg(vortex_t * vortex, unsigned char reg, int wt, ...@@ -203,7 +203,7 @@ vortex_wt_SetReg(vortex_t * vortex, unsigned char reg, int wt,
} }
} else { } else {
if (wt >= NR_WT) { if (wt >= NR_WT) {
printk("vortex: WT SetReg: voice out of range\n"); printk(KERN_ERR "vortex: WT SetReg: voice out of range\n");
return 0; return 0;
} }
} }
......
...@@ -669,7 +669,7 @@ static void snd_azf3328_setfmt(azf3328_t *chip, ...@@ -669,7 +669,7 @@ static void snd_azf3328_setfmt(azf3328_t *chip,
case 48000: val |= 0x06; break; case 48000: val |= 0x06; break;
case 64000: val |= 0x07; break; case 64000: val |= 0x07; break;
default: default:
snd_printk("unknown bitrate %d, assuming 44.1kHz!\n", bitrate); snd_printk(KERN_WARNING "unknown bitrate %d, assuming 44.1kHz!\n", bitrate);
val |= 0x05; /* 44100 */ val |= 0x05; /* 44100 */
break; break;
} }
...@@ -854,10 +854,10 @@ static int snd_azf3328_playback_trigger(snd_pcm_substream_t * substream, int cmd ...@@ -854,10 +854,10 @@ static int snd_azf3328_playback_trigger(snd_pcm_substream_t * substream, int cmd
chip->is_playing = 0; chip->is_playing = 0;
break; break;
case SNDRV_PCM_TRIGGER_PAUSE_PUSH: case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
snd_printk("FIXME: SNDRV_PCM_TRIGGER_PAUSE_PUSH NIY!\n"); snd_printk(KERN_ERR "FIXME: SNDRV_PCM_TRIGGER_PAUSE_PUSH NIY!\n");
break; break;
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
snd_printk("FIXME: SNDRV_PCM_TRIGGER_PAUSE_RELEASE NIY!\n"); snd_printk(KERN_ERR "FIXME: SNDRV_PCM_TRIGGER_PAUSE_RELEASE NIY!\n");
break; break;
default: default:
return -EINVAL; return -EINVAL;
...@@ -935,10 +935,10 @@ static int snd_azf3328_capture_trigger(snd_pcm_substream_t * substream, int cmd) ...@@ -935,10 +935,10 @@ static int snd_azf3328_capture_trigger(snd_pcm_substream_t * substream, int cmd)
chip->is_playing = 0; chip->is_playing = 0;
break; break;
case SNDRV_PCM_TRIGGER_PAUSE_PUSH: case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
snd_printk("FIXME: SNDRV_PCM_TRIGGER_PAUSE_PUSH NIY!\n"); snd_printk(KERN_ERR "FIXME: SNDRV_PCM_TRIGGER_PAUSE_PUSH NIY!\n");
break; break;
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
snd_printk("FIXME: SNDRV_PCM_TRIGGER_PAUSE_RELEASE NIY!\n"); snd_printk(KERN_ERR "FIXME: SNDRV_PCM_TRIGGER_PAUSE_RELEASE NIY!\n");
break; break;
default: default:
return -EINVAL; return -EINVAL;
...@@ -1356,7 +1356,7 @@ static int __devinit snd_azf3328_create(snd_card_t * card, ...@@ -1356,7 +1356,7 @@ static int __devinit snd_azf3328_create(snd_card_t * card,
/* check if we can restrict PCI DMA transfers to 24 bits */ /* check if we can restrict PCI DMA transfers to 24 bits */
if (pci_set_dma_mask(pci, 0x00ffffff) < 0 || if (pci_set_dma_mask(pci, 0x00ffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) {
snd_printk("architecture does not support 24bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 24bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -1374,7 +1374,7 @@ static int __devinit snd_azf3328_create(snd_card_t * card, ...@@ -1374,7 +1374,7 @@ static int __devinit snd_azf3328_create(snd_card_t * card,
chip->mixer_port = pci_resource_start(pci, 4); chip->mixer_port = pci_resource_start(pci, 4);
if (request_irq(pci->irq, snd_azf3328_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) { if (request_irq(pci->irq, snd_azf3328_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_azf3328_free(chip); snd_azf3328_free(chip);
return -EBUSY; return -EBUSY;
} }
...@@ -1450,7 +1450,7 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci, ...@@ -1450,7 +1450,7 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci,
if ((err = snd_mpu401_uart_new( card, 0, MPU401_HW_MPU401, if ((err = snd_mpu401_uart_new( card, 0, MPU401_HW_MPU401,
chip->mpu_port, 1, pci->irq, 0, chip->mpu_port, 1, pci->irq, 0,
&chip->rmidi)) < 0) { &chip->rmidi)) < 0) {
snd_printk("azf3328: no MPU-401 device at 0x%lx?\n", chip->mpu_port); snd_printk(KERN_ERR "azf3328: no MPU-401 device at 0x%lx?\n", chip->mpu_port);
snd_card_free(card); snd_card_free(card);
return err; return err;
} }
...@@ -1462,7 +1462,7 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci, ...@@ -1462,7 +1462,7 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci,
if (snd_opl3_create(card, chip->synth_port, chip->synth_port+2, if (snd_opl3_create(card, chip->synth_port, chip->synth_port+2,
OPL3_HW_AUTO, 1, &opl3) < 0) { OPL3_HW_AUTO, 1, &opl3) < 0) {
snd_printk("azf3328: no OPL3 device at 0x%lx-0x%lx?\n", snd_printk(KERN_ERR "azf3328: no OPL3 device at 0x%lx-0x%lx?\n",
chip->synth_port, chip->synth_port+2 ); chip->synth_port, chip->synth_port+2 );
} else { } else {
if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) {
......
...@@ -281,7 +281,7 @@ int snd_ca0106_i2c_write(ca0106_t *emu, ...@@ -281,7 +281,7 @@ int snd_ca0106_i2c_write(ca0106_t *emu,
int retry; int retry;
if ((reg > 0x7f) || (value > 0x1ff)) if ((reg > 0x7f) || (value > 0x1ff))
{ {
snd_printk("i2c_write: invalid values.\n"); snd_printk(KERN_ERR "i2c_write: invalid values.\n");
return -EINVAL; return -EINVAL;
} }
...@@ -319,7 +319,7 @@ int snd_ca0106_i2c_write(ca0106_t *emu, ...@@ -319,7 +319,7 @@ int snd_ca0106_i2c_write(ca0106_t *emu,
if(retry==10) if(retry==10)
{ {
snd_printk("Writing to ADC failed!\n"); snd_printk(KERN_ERR "Writing to ADC failed!\n");
return -EINVAL; return -EINVAL;
} }
...@@ -421,7 +421,7 @@ static int snd_ca0106_pcm_open_capture_channel(snd_pcm_substream_t *substream, i ...@@ -421,7 +421,7 @@ static int snd_ca0106_pcm_open_capture_channel(snd_pcm_substream_t *substream, i
epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
if (epcm == NULL) { if (epcm == NULL) {
snd_printk("open_capture_channel: failed epcm alloc\n"); snd_printk(KERN_ERR "open_capture_channel: failed epcm alloc\n");
return -ENOMEM; return -ENOMEM;
} }
epcm->emu = chip; epcm->emu = chip;
......
...@@ -2839,7 +2839,7 @@ static int __devinit snd_cmipci_create(snd_card_t *card, struct pci_dev *pci, ...@@ -2839,7 +2839,7 @@ static int __devinit snd_cmipci_create(snd_card_t *card, struct pci_dev *pci,
cm->iobase = pci_resource_start(pci, 0); cm->iobase = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_cmipci_interrupt, SA_INTERRUPT|SA_SHIRQ, card->driver, (void *)cm)) { if (request_irq(pci->irq, snd_cmipci_interrupt, SA_INTERRUPT|SA_SHIRQ, card->driver, (void *)cm)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_cmipci_free(cm); snd_cmipci_free(cm);
return -EBUSY; return -EBUSY;
} }
......
...@@ -163,7 +163,7 @@ static unsigned short snd_cs46xx_codec_read(cs46xx_t *chip, ...@@ -163,7 +163,7 @@ static unsigned short snd_cs46xx_codec_read(cs46xx_t *chip,
goto ok1; goto ok1;
} }
snd_printk("AC'97 read problem (ACCTL_DCV), reg = 0x%x\n", reg); snd_printk(KERN_ERR "AC'97 read problem (ACCTL_DCV), reg = 0x%x\n", reg);
result = 0xffff; result = 0xffff;
goto end; goto end;
...@@ -182,7 +182,7 @@ static unsigned short snd_cs46xx_codec_read(cs46xx_t *chip, ...@@ -182,7 +182,7 @@ static unsigned short snd_cs46xx_codec_read(cs46xx_t *chip,
udelay(10); udelay(10);
} }
snd_printk("AC'97 read problem (ACSTS_VSTS), codec_index %d, reg = 0x%x\n", codec_index, reg); snd_printk(KERN_ERR "AC'97 read problem (ACSTS_VSTS), codec_index %d, reg = 0x%x\n", codec_index, reg);
result = 0xffff; result = 0xffff;
goto end; goto end;
...@@ -281,7 +281,7 @@ static void snd_cs46xx_codec_write(cs46xx_t *chip, ...@@ -281,7 +281,7 @@ static void snd_cs46xx_codec_write(cs46xx_t *chip,
goto end; goto end;
} }
} }
snd_printk("AC'97 write problem, codec_index = %d, reg = 0x%x, val = 0x%x\n", codec_index, reg, val); snd_printk(KERN_ERR "AC'97 write problem, codec_index = %d, reg = 0x%x, val = 0x%x\n", codec_index, reg, val);
end: end:
chip->active_ctrl(chip, -1); chip->active_ctrl(chip, -1);
} }
...@@ -510,7 +510,7 @@ static void snd_cs46xx_proc_start(cs46xx_t *chip) ...@@ -510,7 +510,7 @@ static void snd_cs46xx_proc_start(cs46xx_t *chip)
} }
if (snd_cs46xx_peek(chip, BA1_SPCR) & SPCR_RUNFR) if (snd_cs46xx_peek(chip, BA1_SPCR) & SPCR_RUNFR)
snd_printk("SPCR_RUNFR never reset\n"); snd_printk(KERN_ERR "SPCR_RUNFR never reset\n");
} }
static void snd_cs46xx_proc_stop(cs46xx_t *chip) static void snd_cs46xx_proc_stop(cs46xx_t *chip)
...@@ -2403,7 +2403,7 @@ static void snd_cs46xx_codec_reset (ac97_t * ac97) ...@@ -2403,7 +2403,7 @@ static void snd_cs46xx_codec_reset (ac97_t * ac97)
msleep(10); msleep(10);
} while (time_after_eq(end_time, jiffies)); } while (time_after_eq(end_time, jiffies));
snd_printk("CS46xx secondary codec dont respond!\n"); snd_printk(KERN_ERR "CS46xx secondary codec doesn't respond!\n");
} }
#endif #endif
...@@ -3072,8 +3072,8 @@ static int snd_cs46xx_chip_init(cs46xx_t *chip) ...@@ -3072,8 +3072,8 @@ static int snd_cs46xx_chip_init(cs46xx_t *chip)
} }
snd_printk("create - never read codec ready from AC'97\n"); snd_printk(KERN_ERR "create - never read codec ready from AC'97\n");
snd_printk("it is not probably bug, try to use CS4236 driver\n"); snd_printk(KERN_ERR "it is not probably bug, try to use CS4236 driver\n");
return -EIO; return -EIO;
ok1: ok1:
#ifdef CONFIG_SND_CS46XX_NEW_DSP #ifdef CONFIG_SND_CS46XX_NEW_DSP
...@@ -3121,17 +3121,17 @@ static int snd_cs46xx_chip_init(cs46xx_t *chip) ...@@ -3121,17 +3121,17 @@ static int snd_cs46xx_chip_init(cs46xx_t *chip)
} }
#ifndef CONFIG_SND_CS46XX_NEW_DSP #ifndef CONFIG_SND_CS46XX_NEW_DSP
snd_printk("create - never read ISV3 & ISV4 from AC'97\n"); snd_printk(KERN_ERR "create - never read ISV3 & ISV4 from AC'97\n");
return -EIO; return -EIO;
#else #else
/* This may happen on a cold boot with a Terratec SiXPack 5.1. /* This may happen on a cold boot with a Terratec SiXPack 5.1.
Reloading the driver may help, if there's other soundcards Reloading the driver may help, if there's other soundcards
with the same problem I would like to know. (Benny) */ with the same problem I would like to know. (Benny) */
snd_printk("ERROR: snd-cs46xx: never read ISV3 & ISV4 from AC'97\n"); snd_printk(KERN_ERR "ERROR: snd-cs46xx: never read ISV3 & ISV4 from AC'97\n");
snd_printk(" Try reloading the ALSA driver, if you find something\n"); snd_printk(KERN_ERR " Try reloading the ALSA driver, if you find something\n");
snd_printk(" broken or not working on your soundcard upon\n"); snd_printk(KERN_ERR " broken or not working on your soundcard upon\n");
snd_printk(" this message please report to alsa-devel@lists.sourceforge.net\n"); snd_printk(KERN_ERR " this message please report to alsa-devel@lists.sourceforge.net\n");
return -EIO; return -EIO;
#endif #endif
...@@ -3212,7 +3212,7 @@ int __devinit snd_cs46xx_start_dsp(cs46xx_t *chip) ...@@ -3212,7 +3212,7 @@ int __devinit snd_cs46xx_start_dsp(cs46xx_t *chip)
#else #else
/* old image */ /* old image */
if (snd_cs46xx_download_image(chip) < 0) { if (snd_cs46xx_download_image(chip) < 0) {
snd_printk("image download error\n"); snd_printk(KERN_ERR "image download error\n");
return -EIO; return -EIO;
} }
...@@ -3787,7 +3787,7 @@ int __devinit snd_cs46xx_create(snd_card_t * card, ...@@ -3787,7 +3787,7 @@ int __devinit snd_cs46xx_create(snd_card_t * card,
chip->ba1_addr = pci_resource_start(pci, 1); chip->ba1_addr = pci_resource_start(pci, 1);
if (chip->ba0_addr == 0 || chip->ba0_addr == (unsigned long)~0 || if (chip->ba0_addr == 0 || chip->ba0_addr == (unsigned long)~0 ||
chip->ba1_addr == 0 || chip->ba1_addr == (unsigned long)~0) { chip->ba1_addr == 0 || chip->ba1_addr == (unsigned long)~0) {
snd_printk("wrong address(es) - ba0 = 0x%lx, ba1 = 0x%lx\n", chip->ba0_addr, chip->ba1_addr); snd_printk(KERN_ERR "wrong address(es) - ba0 = 0x%lx, ba1 = 0x%lx\n", chip->ba0_addr, chip->ba1_addr);
snd_cs46xx_free(chip); snd_cs46xx_free(chip);
return -ENOMEM; return -ENOMEM;
} }
...@@ -3836,12 +3836,12 @@ int __devinit snd_cs46xx_create(snd_card_t * card, ...@@ -3836,12 +3836,12 @@ int __devinit snd_cs46xx_create(snd_card_t * card,
} }
if (external_amp) { if (external_amp) {
snd_printk("Crystal EAPD support forced on.\n"); snd_printk(KERN_INFO "Crystal EAPD support forced on.\n");
chip->amplifier_ctrl = amp_voyetra; chip->amplifier_ctrl = amp_voyetra;
} }
if (thinkpad) { if (thinkpad) {
snd_printk("Activating CLKRUN hack for Thinkpad.\n"); snd_printk(KERN_INFO "Activating CLKRUN hack for Thinkpad.\n");
chip->active_ctrl = clkrun_hack; chip->active_ctrl = clkrun_hack;
clkrun_init(chip); clkrun_init(chip);
} }
...@@ -3858,20 +3858,20 @@ int __devinit snd_cs46xx_create(snd_card_t * card, ...@@ -3858,20 +3858,20 @@ int __devinit snd_cs46xx_create(snd_card_t * card,
for (idx = 0; idx < 5; idx++) { for (idx = 0; idx < 5; idx++) {
region = &chip->region.idx[idx]; region = &chip->region.idx[idx];
if ((region->resource = request_mem_region(region->base, region->size, region->name)) == NULL) { if ((region->resource = request_mem_region(region->base, region->size, region->name)) == NULL) {
snd_printk("unable to request memory region 0x%lx-0x%lx\n", region->base, region->base + region->size - 1); snd_printk(KERN_ERR "unable to request memory region 0x%lx-0x%lx\n", region->base, region->base + region->size - 1);
snd_cs46xx_free(chip); snd_cs46xx_free(chip);
return -EBUSY; return -EBUSY;
} }
region->remap_addr = ioremap_nocache(region->base, region->size); region->remap_addr = ioremap_nocache(region->base, region->size);
if (region->remap_addr == NULL) { if (region->remap_addr == NULL) {
snd_printk("%s ioremap problem\n", region->name); snd_printk(KERN_ERR "%s ioremap problem\n", region->name);
snd_cs46xx_free(chip); snd_cs46xx_free(chip);
return -ENOMEM; return -ENOMEM;
} }
} }
if (request_irq(pci->irq, snd_cs46xx_interrupt, SA_INTERRUPT|SA_SHIRQ, "CS46XX", (void *) chip)) { if (request_irq(pci->irq, snd_cs46xx_interrupt, SA_INTERRUPT|SA_SHIRQ, "CS46XX", (void *) chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_cs46xx_free(chip); snd_cs46xx_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -188,7 +188,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, ...@@ -188,7 +188,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci,
if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH, if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH,
sizeof(snd_emu10k1_synth_arg_t), &wave) < 0 || sizeof(snd_emu10k1_synth_arg_t), &wave) < 0 ||
wave == NULL) { wave == NULL) {
snd_printk("can't initialize Emu10k1 wavetable synth\n"); snd_printk(KERN_WARNING "can't initialize Emu10k1 wavetable synth\n");
} else { } else {
snd_emu10k1_synth_arg_t *arg; snd_emu10k1_synth_arg_t *arg;
arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); arg = SNDRV_SEQ_DEVICE_ARGPTR(wave);
......
...@@ -1392,7 +1392,7 @@ A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input)) ...@@ -1392,7 +1392,7 @@ A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input))
A_SWITCH(icode, &ptr, tmp + 1, playback + SND_EMU10K1_PLAYBACK_CHANNELS + z, tmp + 1); A_SWITCH(icode, &ptr, tmp + 1, playback + SND_EMU10K1_PLAYBACK_CHANNELS + z, tmp + 1);
if ((z==1) && (emu->card_capabilities->spdif_bug)) { if ((z==1) && (emu->card_capabilities->spdif_bug)) {
/* Due to a SPDIF output bug on some Audigy cards, this code delays the Right channel by 1 sample */ /* Due to a SPDIF output bug on some Audigy cards, this code delays the Right channel by 1 sample */
snd_printk("Installing spdif_bug patch: %s\n", emu->card_capabilities->name); snd_printk(KERN_INFO "Installing spdif_bug patch: %s\n", emu->card_capabilities->name);
A_OP(icode, &ptr, iACC3, A_EXTOUT(A_EXTOUT_FRONT_L + z), A_GPR(gpr - 3), A_C_00000000, A_C_00000000); A_OP(icode, &ptr, iACC3, A_EXTOUT(A_EXTOUT_FRONT_L + z), A_GPR(gpr - 3), A_C_00000000, A_C_00000000);
A_OP(icode, &ptr, iACC3, A_GPR(gpr - 3), A_GPR(tmp + 0), A_GPR(tmp + 1), A_C_00000000); A_OP(icode, &ptr, iACC3, A_GPR(gpr - 3), A_GPR(tmp + 0), A_GPR(tmp + 1), A_C_00000000);
} else { } else {
......
...@@ -41,7 +41,7 @@ irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -41,7 +41,7 @@ irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *regs)
orig_status = status; orig_status = status;
handled = 1; handled = 1;
if (status & IPR_PCIERROR) { if (status & IPR_PCIERROR) {
snd_printk("interrupt: PCI error\n"); snd_printk(KERN_ERR "interrupt: PCI error\n");
snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE);
status &= ~IPR_PCIERROR; status &= ~IPR_PCIERROR;
} }
......
...@@ -232,11 +232,11 @@ search_empty(emu10k1_t *emu, int size) ...@@ -232,11 +232,11 @@ search_empty(emu10k1_t *emu, int size)
static int is_valid_page(emu10k1_t *emu, dma_addr_t addr) static int is_valid_page(emu10k1_t *emu, dma_addr_t addr)
{ {
if (addr & ~emu->dma_mask) { if (addr & ~emu->dma_mask) {
snd_printk("max memory size is 0x%lx (addr = 0x%lx)!!\n", emu->dma_mask, (unsigned long)addr); snd_printk(KERN_ERR "max memory size is 0x%lx (addr = 0x%lx)!!\n", emu->dma_mask, (unsigned long)addr);
return 0; return 0;
} }
if (addr & (EMUPAGESIZE-1)) { if (addr & (EMUPAGESIZE-1)) {
snd_printk("page is not aligned\n"); snd_printk(KERN_ERR "page is not aligned\n");
return 0; return 0;
} }
return 1; return 1;
...@@ -501,7 +501,7 @@ static inline void *offset_ptr(emu10k1_t *emu, int page, int offset) ...@@ -501,7 +501,7 @@ static inline void *offset_ptr(emu10k1_t *emu, int page, int offset)
snd_assert(page >= 0 && page < emu->max_cache_pages, return NULL); snd_assert(page >= 0 && page < emu->max_cache_pages, return NULL);
ptr = emu->page_ptr_table[page]; ptr = emu->page_ptr_table[page];
if (! ptr) { if (! ptr) {
printk("emu10k1: access to NULL ptr: page = %d\n", page); printk(KERN_ERR "emu10k1: access to NULL ptr: page = %d\n", page);
return NULL; return NULL;
} }
ptr += offset & (PAGE_SIZE - 1); ptr += offset & (PAGE_SIZE - 1);
......
...@@ -546,7 +546,7 @@ snd_p16v_pcm_pointer_capture(snd_pcm_substream_t *substream) ...@@ -546,7 +546,7 @@ snd_p16v_pcm_pointer_capture(snd_pcm_substream_t *substream)
ptr=ptr2; ptr=ptr2;
if (ptr >= runtime->buffer_size) { if (ptr >= runtime->buffer_size) {
ptr -= runtime->buffer_size; ptr -= runtime->buffer_size;
printk("buffer capture limited!\n"); printk(KERN_WARNING "buffer capture limited!\n");
} }
//printk("ptr1 = 0x%lx, ptr2=0x%lx, ptr=0x%lx, buffer_size = 0x%x, period_size = 0x%x, bits=%d, rate=%d\n", ptr1, ptr2, ptr, (int)runtime->buffer_size, (int)runtime->period_size, (int)runtime->frame_bits, (int)runtime->rate); //printk("ptr1 = 0x%lx, ptr2=0x%lx, ptr=0x%lx, buffer_size = 0x%x, period_size = 0x%x, bits=%d, rate=%d\n", ptr1, ptr2, ptr, (int)runtime->buffer_size, (int)runtime->period_size, (int)runtime->frame_bits, (int)runtime->rate);
......
...@@ -508,7 +508,7 @@ static unsigned int snd_es1371_wait_src_ready(ensoniq_t * ensoniq) ...@@ -508,7 +508,7 @@ static unsigned int snd_es1371_wait_src_ready(ensoniq_t * ensoniq)
return r; return r;
cond_resched(); cond_resched();
} }
snd_printk("wait source ready timeout 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_SMPRATE), r); snd_printk(KERN_ERR "wait source ready timeout 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_SMPRATE), r);
return 0; return 0;
} }
...@@ -579,7 +579,7 @@ static void snd_es1370_codec_write(ak4531_t *ak4531, ...@@ -579,7 +579,7 @@ static void snd_es1370_codec_write(ak4531_t *ak4531,
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1); schedule_timeout(1);
} while (time_after(end_time, jiffies)); } while (time_after(end_time, jiffies));
snd_printk("codec write timeout, status = 0x%x\n", inl(ES_REG(ensoniq, STATUS))); snd_printk(KERN_ERR "codec write timeout, status = 0x%x\n", inl(ES_REG(ensoniq, STATUS)));
} }
#endif /* CHIP1370 */ #endif /* CHIP1370 */
...@@ -620,7 +620,7 @@ static void snd_es1371_codec_write(ac97_t *ac97, ...@@ -620,7 +620,7 @@ static void snd_es1371_codec_write(ac97_t *ac97,
} }
} }
up(&ensoniq->src_mutex); up(&ensoniq->src_mutex);
snd_printk("codec write timeout at 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC))); snd_printk(KERN_ERR "codec write timeout at 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC)));
} }
static unsigned short snd_es1371_codec_read(ac97_t *ac97, static unsigned short snd_es1371_codec_read(ac97_t *ac97,
...@@ -667,14 +667,14 @@ static unsigned short snd_es1371_codec_read(ac97_t *ac97, ...@@ -667,14 +667,14 @@ static unsigned short snd_es1371_codec_read(ac97_t *ac97,
} }
up(&ensoniq->src_mutex); up(&ensoniq->src_mutex);
if (++fail > 10) { if (++fail > 10) {
snd_printk("codec read timeout (final) at 0x%lx, reg = 0x%x [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), reg, inl(ES_REG(ensoniq, 1371_CODEC))); snd_printk(KERN_ERR "codec read timeout (final) at 0x%lx, reg = 0x%x [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), reg, inl(ES_REG(ensoniq, 1371_CODEC)));
return 0; return 0;
} }
goto __again; goto __again;
} }
} }
up(&ensoniq->src_mutex); up(&ensoniq->src_mutex);
snd_printk("es1371: codec read timeout at 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC))); snd_printk(KERN_ERR "es1371: codec read timeout at 0x%lx [0x%x]\n", ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC)));
return 0; return 0;
} }
...@@ -1960,7 +1960,7 @@ static int __devinit snd_ensoniq_create(snd_card_t * card, ...@@ -1960,7 +1960,7 @@ static int __devinit snd_ensoniq_create(snd_card_t * card,
} }
ensoniq->port = pci_resource_start(pci, 0); ensoniq->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_audiopci_interrupt, SA_INTERRUPT|SA_SHIRQ, "Ensoniq AudioPCI", (void *)ensoniq)) { if (request_irq(pci->irq, snd_audiopci_interrupt, SA_INTERRUPT|SA_SHIRQ, "Ensoniq AudioPCI", (void *)ensoniq)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_ensoniq_free(ensoniq); snd_ensoniq_free(ensoniq);
return -EBUSY; return -EBUSY;
} }
...@@ -1968,7 +1968,7 @@ static int __devinit snd_ensoniq_create(snd_card_t * card, ...@@ -1968,7 +1968,7 @@ static int __devinit snd_ensoniq_create(snd_card_t * card,
#ifdef CHIP1370 #ifdef CHIP1370
if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci), if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci),
16, &ensoniq->dma_bug) < 0) { 16, &ensoniq->dma_bug) < 0) {
snd_printk("unable to allocate space for phantom area - dma_bug\n"); snd_printk(KERN_ERR "unable to allocate space for phantom area - dma_bug\n");
snd_ensoniq_free(ensoniq); snd_ensoniq_free(ensoniq);
return -EBUSY; return -EBUSY;
} }
......
...@@ -267,7 +267,7 @@ static void snd_es1938_mixer_write(es1938_t *chip, unsigned char reg, unsigned c ...@@ -267,7 +267,7 @@ static void snd_es1938_mixer_write(es1938_t *chip, unsigned char reg, unsigned c
outb(val, SLSB_REG(chip, MIXERDATA)); outb(val, SLSB_REG(chip, MIXERDATA));
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x set to %02x\n", reg, val); snd_printk(KERN_DEBUG "Mixer reg %02x set to %02x\n", reg, val);
#endif #endif
} }
...@@ -283,7 +283,7 @@ static int snd_es1938_mixer_read(es1938_t *chip, unsigned char reg) ...@@ -283,7 +283,7 @@ static int snd_es1938_mixer_read(es1938_t *chip, unsigned char reg)
data = inb(SLSB_REG(chip, MIXERDATA)); data = inb(SLSB_REG(chip, MIXERDATA));
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x now is %02x\n", reg, data); snd_printk(KERN_DEBUG "Mixer reg %02x now is %02x\n", reg, data);
#endif #endif
return data; return data;
} }
...@@ -303,7 +303,8 @@ static int snd_es1938_mixer_bits(es1938_t *chip, unsigned char reg, unsigned cha ...@@ -303,7 +303,8 @@ static int snd_es1938_mixer_bits(es1938_t *chip, unsigned char reg, unsigned cha
new = (old & ~mask) | (val & mask); new = (old & ~mask) | (val & mask);
outb(new, SLSB_REG(chip, MIXERDATA)); outb(new, SLSB_REG(chip, MIXERDATA));
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Mixer reg %02x was %02x, set to %02x\n", reg, old, new); snd_printk(KERN_DEBUG "Mixer reg %02x was %02x, set to %02x\n",
reg, old, new);
#endif #endif
} }
spin_unlock_irqrestore(&chip->mixer_lock, flags); spin_unlock_irqrestore(&chip->mixer_lock, flags);
...@@ -323,7 +324,7 @@ static void snd_es1938_write_cmd(es1938_t *chip, unsigned char cmd) ...@@ -323,7 +324,7 @@ static void snd_es1938_write_cmd(es1938_t *chip, unsigned char cmd)
return; return;
} }
} }
printk("snd_es1938_write_cmd timeout (0x02%x/0x02%x)\n", cmd, v); printk(KERN_ERR "snd_es1938_write_cmd timeout (0x02%x/0x02%x)\n", cmd, v);
} }
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
...@@ -336,7 +337,7 @@ static int snd_es1938_get_byte(es1938_t *chip) ...@@ -336,7 +337,7 @@ static int snd_es1938_get_byte(es1938_t *chip)
for (i = GET_LOOP_TIMEOUT; i; i--) for (i = GET_LOOP_TIMEOUT; i; i--)
if ((v = inb(SLSB_REG(chip, STATUS))) & 0x80) if ((v = inb(SLSB_REG(chip, STATUS))) & 0x80)
return inb(SLSB_REG(chip, READDATA)); return inb(SLSB_REG(chip, READDATA));
snd_printk("get_byte timeout: status 0x02%x\n", v); snd_printk(KERN_ERR "get_byte timeout: status 0x02%x\n", v);
return -ENODEV; return -ENODEV;
} }
...@@ -351,7 +352,7 @@ static void snd_es1938_write(es1938_t *chip, unsigned char reg, unsigned char va ...@@ -351,7 +352,7 @@ static void snd_es1938_write(es1938_t *chip, unsigned char reg, unsigned char va
snd_es1938_write_cmd(chip, val); snd_es1938_write_cmd(chip, val);
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x set to %02x\n", reg, val); snd_printk(KERN_DEBUG "Reg %02x set to %02x\n", reg, val);
#endif #endif
} }
...@@ -368,7 +369,7 @@ static unsigned char snd_es1938_read(es1938_t *chip, unsigned char reg) ...@@ -368,7 +369,7 @@ static unsigned char snd_es1938_read(es1938_t *chip, unsigned char reg)
val = snd_es1938_get_byte(chip); val = snd_es1938_get_byte(chip);
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x now is %02x\n", reg, val); snd_printk(KERN_DEBUG "Reg %02x now is %02x\n", reg, val);
#endif #endif
return val; return val;
} }
...@@ -390,7 +391,8 @@ static int snd_es1938_bits(es1938_t *chip, unsigned char reg, unsigned char mask ...@@ -390,7 +391,8 @@ static int snd_es1938_bits(es1938_t *chip, unsigned char reg, unsigned char mask
new = (old & ~mask) | (val & mask); new = (old & ~mask) | (val & mask);
snd_es1938_write_cmd(chip, new); snd_es1938_write_cmd(chip, new);
#ifdef REG_DEBUG #ifdef REG_DEBUG
snd_printk("Reg %02x was %02x, set to %02x\n", reg, old, new); snd_printk(KERN_DEBUG "Reg %02x was %02x, set to %02x\n",
reg, old, new);
#endif #endif
} }
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
...@@ -413,7 +415,7 @@ static void snd_es1938_reset(es1938_t *chip) ...@@ -413,7 +415,7 @@ static void snd_es1938_reset(es1938_t *chip)
goto __next; goto __next;
} }
} }
snd_printk("ESS Solo-1 reset failed\n"); snd_printk(KERN_ERR "ESS Solo-1 reset failed\n");
__next: __next:
snd_es1938_write_cmd(chip, ESS_CMD_ENABLEEXT); snd_es1938_write_cmd(chip, ESS_CMD_ENABLEEXT);
...@@ -1499,7 +1501,7 @@ static int __devinit snd_es1938_create(snd_card_t * card, ...@@ -1499,7 +1501,7 @@ static int __devinit snd_es1938_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 24 bits */ /* check, if we can restrict PCI DMA transfers to 24 bits */
if (pci_set_dma_mask(pci, 0x00ffffff) < 0 || if (pci_set_dma_mask(pci, 0x00ffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) {
snd_printk("architecture does not support 24bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 24bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -1524,13 +1526,13 @@ static int __devinit snd_es1938_create(snd_card_t * card, ...@@ -1524,13 +1526,13 @@ static int __devinit snd_es1938_create(snd_card_t * card,
chip->mpu_port = pci_resource_start(pci, 3); chip->mpu_port = pci_resource_start(pci, 3);
chip->game_port = pci_resource_start(pci, 4); chip->game_port = pci_resource_start(pci, 4);
if (request_irq(pci->irq, snd_es1938_interrupt, SA_INTERRUPT|SA_SHIRQ, "ES1938", (void *)chip)) { if (request_irq(pci->irq, snd_es1938_interrupt, SA_INTERRUPT|SA_SHIRQ, "ES1938", (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_es1938_free(chip); snd_es1938_free(chip);
return -EBUSY; return -EBUSY;
} }
chip->irq = pci->irq; chip->irq = pci->irq;
#ifdef ES1938_DDEBUG #ifdef ES1938_DDEBUG
snd_printk("create: io: 0x%lx, sb: 0x%lx, vc: 0x%lx, mpu: 0x%lx, game: 0x%lx\n", snd_printk(KERN_DEBUG "create: io: 0x%lx, sb: 0x%lx, vc: 0x%lx, mpu: 0x%lx, game: 0x%lx\n",
chip->io_port, chip->sb_port, chip->vc_port, chip->mpu_port, chip->game_port); chip->io_port, chip->sb_port, chip->vc_port, chip->mpu_port, chip->game_port);
#endif #endif
......
...@@ -1462,13 +1462,13 @@ snd_es1968_init_dmabuf(es1968_t *chip) ...@@ -1462,13 +1462,13 @@ snd_es1968_init_dmabuf(es1968_t *chip)
snd_dma_pci_data(chip->pci), snd_dma_pci_data(chip->pci),
chip->total_bufsize, &chip->dma); chip->total_bufsize, &chip->dma);
if (err < 0 || ! chip->dma.area) { if (err < 0 || ! chip->dma.area) {
snd_printk("es1968: can't allocate dma pages for size %d\n", snd_printk(KERN_ERR "es1968: can't allocate dma pages for size %d\n",
chip->total_bufsize); chip->total_bufsize);
return -ENOMEM; return -ENOMEM;
} }
if ((chip->dma.addr + chip->dma.bytes - 1) & ~((1 << 28) - 1)) { if ((chip->dma.addr + chip->dma.bytes - 1) & ~((1 << 28) - 1)) {
snd_dma_free_pages(&chip->dma); snd_dma_free_pages(&chip->dma);
snd_printk("es1968: DMA buffer beyond 256MB.\n"); snd_printk(KERN_ERR "es1968: DMA buffer beyond 256MB.\n");
return -ENOMEM; return -ENOMEM;
} }
} }
...@@ -1741,11 +1741,11 @@ static void __devinit es1968_measure_clock(es1968_t *chip) ...@@ -1741,11 +1741,11 @@ static void __devinit es1968_measure_clock(es1968_t *chip)
/* search 2 APUs (although one apu is enough) */ /* search 2 APUs (although one apu is enough) */
if ((apu = snd_es1968_alloc_apu_pair(chip, ESM_APU_PCM_PLAY)) < 0) { if ((apu = snd_es1968_alloc_apu_pair(chip, ESM_APU_PCM_PLAY)) < 0) {
snd_printk("Hmm, cannot find empty APU pair!?\n"); snd_printk(KERN_ERR "Hmm, cannot find empty APU pair!?\n");
return; return;
} }
if ((memory = snd_es1968_new_memory(chip, CLOCK_MEASURE_BUFSIZE)) == NULL) { if ((memory = snd_es1968_new_memory(chip, CLOCK_MEASURE_BUFSIZE)) == NULL) {
snd_printk("cannot allocate dma buffer - using default clock %d\n", chip->clock); snd_printk(KERN_ERR "cannot allocate dma buffer - using default clock %d\n", chip->clock);
snd_es1968_free_apu_pair(chip, apu); snd_es1968_free_apu_pair(chip, apu);
return; return;
} }
...@@ -1806,7 +1806,7 @@ static void __devinit es1968_measure_clock(es1968_t *chip) ...@@ -1806,7 +1806,7 @@ static void __devinit es1968_measure_clock(es1968_t *chip)
else else
t += stop_time.tv_usec - start_time.tv_usec; t += stop_time.tv_usec - start_time.tv_usec;
if (t == 0) { if (t == 0) {
snd_printk("?? calculation error..\n"); snd_printk(KERN_ERR "?? calculation error..\n");
} else { } else {
offset *= 1000; offset *= 1000;
offset = (offset / t) * 1000 + ((offset % t) * 1000) / t; offset = (offset / t) * 1000 + ((offset % t) * 1000) / t;
...@@ -2090,7 +2090,7 @@ static void snd_es1968_ac97_reset(es1968_t *chip) ...@@ -2090,7 +2090,7 @@ static void snd_es1968_ac97_reset(es1968_t *chip)
outw(inw(ioaddr + 0x3c) & 0xfffc, ioaddr + 0x3c); outw(inw(ioaddr + 0x3c) & 0xfffc, ioaddr + 0x3c);
#if 0 /* the loop here needs to be much better if we want it.. */ #if 0 /* the loop here needs to be much better if we want it.. */
snd_printk("trying software reset\n"); snd_printk(KERN_INFO "trying software reset\n");
/* try and do a software reset */ /* try and do a software reset */
outb(0x80 | 0x7c, ioaddr + 0x30); outb(0x80 | 0x7c, ioaddr + 0x30);
for (w = 0;; w++) { for (w = 0;; w++) {
...@@ -2562,7 +2562,7 @@ static int __devinit snd_es1968_create(snd_card_t * card, ...@@ -2562,7 +2562,7 @@ static int __devinit snd_es1968_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 28 bits */ /* check, if we can restrict PCI DMA transfers to 28 bits */
if (pci_set_dma_mask(pci, 0x0fffffff) < 0 || if (pci_set_dma_mask(pci, 0x0fffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) {
snd_printk("architecture does not support 28bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 28bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -2597,7 +2597,7 @@ static int __devinit snd_es1968_create(snd_card_t * card, ...@@ -2597,7 +2597,7 @@ static int __devinit snd_es1968_create(snd_card_t * card,
chip->io_port = pci_resource_start(pci, 0); chip->io_port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_es1968_interrupt, SA_INTERRUPT|SA_SHIRQ, if (request_irq(pci->irq, snd_es1968_interrupt, SA_INTERRUPT|SA_SHIRQ,
"ESS Maestro", (void*)chip)) { "ESS Maestro", (void*)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_es1968_free(chip); snd_es1968_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -237,7 +237,7 @@ static void snd_fm801_codec_write(ac97_t *ac97, ...@@ -237,7 +237,7 @@ static void snd_fm801_codec_write(ac97_t *ac97,
goto ok1; goto ok1;
udelay(10); udelay(10);
} }
snd_printk("AC'97 interface is busy (1)\n"); snd_printk(KERN_ERR "AC'97 interface is busy (1)\n");
return; return;
ok1: ok1:
...@@ -252,7 +252,7 @@ static void snd_fm801_codec_write(ac97_t *ac97, ...@@ -252,7 +252,7 @@ static void snd_fm801_codec_write(ac97_t *ac97,
return; return;
udelay(10); udelay(10);
} }
snd_printk("AC'97 interface #%d is busy (2)\n", ac97->num); snd_printk(KERN_ERR "AC'97 interface #%d is busy (2)\n", ac97->num);
} }
static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg) static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg)
...@@ -268,7 +268,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg) ...@@ -268,7 +268,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg)
goto ok1; goto ok1;
udelay(10); udelay(10);
} }
snd_printk("AC'97 interface is busy (1)\n"); snd_printk(KERN_ERR "AC'97 interface is busy (1)\n");
return 0; return 0;
ok1: ok1:
...@@ -279,7 +279,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg) ...@@ -279,7 +279,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg)
goto ok2; goto ok2;
udelay(10); udelay(10);
} }
snd_printk("AC'97 interface #%d is busy (2)\n", ac97->num); snd_printk(KERN_ERR "AC'97 interface #%d is busy (2)\n", ac97->num);
return 0; return 0;
ok2: ok2:
...@@ -288,7 +288,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg) ...@@ -288,7 +288,7 @@ static unsigned short snd_fm801_codec_read(ac97_t *ac97, unsigned short reg)
goto ok3; goto ok3;
udelay(10); udelay(10);
} }
snd_printk("AC'97 interface #%d is not valid (2)\n", ac97->num); snd_printk(KERN_ERR "AC'97 interface #%d is not valid (2)\n", ac97->num);
return 0; return 0;
ok3: ok3:
...@@ -1279,7 +1279,7 @@ static int __devinit snd_fm801_create(snd_card_t * card, ...@@ -1279,7 +1279,7 @@ static int __devinit snd_fm801_create(snd_card_t * card,
} }
chip->port = pci_resource_start(pci, 0); chip->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_fm801_interrupt, SA_INTERRUPT|SA_SHIRQ, "FM801", (void *)chip)) { if (request_irq(pci->irq, snd_fm801_interrupt, SA_INTERRUPT|SA_SHIRQ, "FM801", (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", chip->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->irq);
snd_fm801_free(chip); snd_fm801_free(chip);
return -EBUSY; return -EBUSY;
} }
...@@ -1306,7 +1306,7 @@ static int __devinit snd_fm801_create(snd_card_t * card, ...@@ -1306,7 +1306,7 @@ static int __devinit snd_fm801_create(snd_card_t * card,
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1); schedule_timeout(1);
} while (time_after(timeout, jiffies)); } while (time_after(timeout, jiffies));
snd_printk("Primary AC'97 codec not found\n"); snd_printk(KERN_ERR "Primary AC'97 codec not found\n");
snd_fm801_free(chip); snd_fm801_free(chip);
return -EIO; return -EIO;
...@@ -1346,7 +1346,7 @@ static int __devinit snd_fm801_create(snd_card_t * card, ...@@ -1346,7 +1346,7 @@ static int __devinit snd_fm801_create(snd_card_t * card,
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1); schedule_timeout(1);
} while (time_after(timeout, jiffies)); } while (time_after(timeout, jiffies));
snd_printk("Primary AC'97 codec not responding\n"); snd_printk(KERN_ERR "Primary AC'97 codec not responding\n");
snd_fm801_free(chip); snd_fm801_free(chip);
return -EIO; return -EIO;
......
...@@ -1672,9 +1672,9 @@ static int __devinit aureon_add_controls(ice1712_t *ice) ...@@ -1672,9 +1672,9 @@ static int __devinit aureon_add_controls(ice1712_t *ice)
snd_ice1712_save_gpio_status(ice); snd_ice1712_save_gpio_status(ice);
id = aureon_cs8415_get(ice, CS8415_ID); id = aureon_cs8415_get(ice, CS8415_ID);
if (id != 0x41) if (id != 0x41)
snd_printk("No CS8415 chip. Skipping CS8415 controls.\n"); snd_printk(KERN_INFO "No CS8415 chip. Skipping CS8415 controls.\n");
else if ((id & 0x0F) != 0x01) else if ((id & 0x0F) != 0x01)
snd_printk("Detected unsupported CS8415 rev. (%c)\n", (char)((id & 0x0F) + 'A' - 1)); snd_printk(KERN_INFO "Detected unsupported CS8415 rev. (%c)\n", (char)((id & 0x0F) + 'A' - 1));
else { else {
for (i = 0; i< ARRAY_SIZE(cs8415_controls); i++) { for (i = 0; i< ARRAY_SIZE(cs8415_controls); i++) {
snd_kcontrol_t *kctl; snd_kcontrol_t *kctl;
......
...@@ -546,7 +546,7 @@ static int __devinit snd_ice1712_delta_init(ice1712_t *ice) ...@@ -546,7 +546,7 @@ static int __devinit snd_ice1712_delta_init(ice1712_t *ice)
case ICE1712_SUBDEVICE_DELTA1010LT: case ICE1712_SUBDEVICE_DELTA1010LT:
case ICE1712_SUBDEVICE_VX442: case ICE1712_SUBDEVICE_VX442:
if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) { if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) {
snd_printk("unable to create I2C bus\n"); snd_printk(KERN_ERR "unable to create I2C bus\n");
return err; return err;
} }
ice->i2c->private_data = ice; ice->i2c->private_data = ice;
......
...@@ -438,7 +438,7 @@ static int __devinit snd_ice1712_ews_init(ice1712_t *ice) ...@@ -438,7 +438,7 @@ static int __devinit snd_ice1712_ews_init(ice1712_t *ice)
/* create i2c */ /* create i2c */
if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) { if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) {
snd_printk("unable to create I2C bus\n"); snd_printk(KERN_ERR "unable to create I2C bus\n");
return err; return err;
} }
ice->i2c->private_data = ice; ice->i2c->private_data = ice;
...@@ -448,7 +448,7 @@ static int __devinit snd_ice1712_ews_init(ice1712_t *ice) ...@@ -448,7 +448,7 @@ static int __devinit snd_ice1712_ews_init(ice1712_t *ice)
switch (ice->eeprom.subvendor) { switch (ice->eeprom.subvendor) {
case ICE1712_SUBDEVICE_DMX6FIRE: case ICE1712_SUBDEVICE_DMX6FIRE:
if ((err = snd_i2c_device_create(ice->i2c, "PCF9554", ICE1712_6FIRE_PCF9554_ADDR, &ice->spec.i2cdevs[EWS_I2C_6FIRE])) < 0) { if ((err = snd_i2c_device_create(ice->i2c, "PCF9554", ICE1712_6FIRE_PCF9554_ADDR, &ice->spec.i2cdevs[EWS_I2C_6FIRE])) < 0) {
snd_printk("PCF9554 initialization failed\n"); snd_printk(KERN_ERR "PCF9554 initialization failed\n");
return err; return err;
} }
snd_ice1712_6fire_write_pca(ice, PCF9554_REG_CONFIG, 0x80); snd_ice1712_6fire_write_pca(ice, PCF9554_REG_CONFIG, 0x80);
...@@ -791,7 +791,7 @@ static int snd_ice1712_6fire_read_pca(ice1712_t *ice, unsigned char reg) ...@@ -791,7 +791,7 @@ static int snd_ice1712_6fire_read_pca(ice1712_t *ice, unsigned char reg)
byte = 0; byte = 0;
if (snd_i2c_readbytes(ice->spec.i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) { if (snd_i2c_readbytes(ice->spec.i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
snd_i2c_unlock(ice->i2c); snd_i2c_unlock(ice->i2c);
printk("cannot read pca\n"); printk(KERN_ERR "cannot read pca\n");
return -EIO; return -EIO;
} }
snd_i2c_unlock(ice->i2c); snd_i2c_unlock(ice->i2c);
......
...@@ -387,7 +387,7 @@ int __devinit snd_ice1712_init_cs8427(ice1712_t *ice, int addr) ...@@ -387,7 +387,7 @@ int __devinit snd_ice1712_init_cs8427(ice1712_t *ice, int addr)
if ((err = snd_cs8427_create(ice->i2c, addr, if ((err = snd_cs8427_create(ice->i2c, addr,
(ice->cs8427_timeout * HZ) / 1000, (ice->cs8427_timeout * HZ) / 1000,
&ice->cs8427)) < 0) { &ice->cs8427)) < 0) {
snd_printk("CS8427 initialization failed\n"); snd_printk(KERN_ERR "CS8427 initialization failed\n");
return err; return err;
} }
ice->spdif.ops.open = open_cs8427; ice->spdif.ops.open = open_cs8427;
...@@ -2348,12 +2348,12 @@ static int __devinit snd_ice1712_read_eeprom(ice1712_t *ice, const char *modelna ...@@ -2348,12 +2348,12 @@ static int __devinit snd_ice1712_read_eeprom(ice1712_t *ice, const char *modelna
if (ice->eeprom.size < 6) if (ice->eeprom.size < 6)
ice->eeprom.size = 32; /* FIXME: any cards without the correct size? */ ice->eeprom.size = 32; /* FIXME: any cards without the correct size? */
else if (ice->eeprom.size > 32) { else if (ice->eeprom.size > 32) {
snd_printk("invalid EEPROM (size = %i)\n", ice->eeprom.size); snd_printk(KERN_ERR "invalid EEPROM (size = %i)\n", ice->eeprom.size);
return -EIO; return -EIO;
} }
ice->eeprom.version = snd_ice1712_read_i2c(ice, dev, 0x05); ice->eeprom.version = snd_ice1712_read_i2c(ice, dev, 0x05);
if (ice->eeprom.version != 1) { if (ice->eeprom.version != 1) {
snd_printk("invalid EEPROM version %i\n", ice->eeprom.version); snd_printk(KERN_ERR "invalid EEPROM version %i\n", ice->eeprom.version);
/* return -EIO; */ /* return -EIO; */
} }
size = ice->eeprom.size - 6; size = ice->eeprom.size - 6;
...@@ -2524,7 +2524,7 @@ static int __devinit snd_ice1712_create(snd_card_t * card, ...@@ -2524,7 +2524,7 @@ static int __devinit snd_ice1712_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 28 bits */ /* check, if we can restrict PCI DMA transfers to 28 bits */
if (pci_set_dma_mask(pci, 0x0fffffff) < 0 || if (pci_set_dma_mask(pci, 0x0fffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) {
snd_printk("architecture does not support 28bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 28bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -2573,7 +2573,7 @@ static int __devinit snd_ice1712_create(snd_card_t * card, ...@@ -2573,7 +2573,7 @@ static int __devinit snd_ice1712_create(snd_card_t * card,
ice->profi_port = pci_resource_start(pci, 3); ice->profi_port = pci_resource_start(pci, 3);
if (request_irq(pci->irq, snd_ice1712_interrupt, SA_INTERRUPT|SA_SHIRQ, "ICE1712", (void *) ice)) { if (request_irq(pci->irq, snd_ice1712_interrupt, SA_INTERRUPT|SA_SHIRQ, "ICE1712", (void *) ice)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_ice1712_free(ice); snd_ice1712_free(ice);
return -EIO; return -EIO;
} }
......
...@@ -2171,7 +2171,7 @@ static int __devinit snd_vt1724_create(snd_card_t * card, ...@@ -2171,7 +2171,7 @@ static int __devinit snd_vt1724_create(snd_card_t * card,
ice->profi_port = pci_resource_start(pci, 1); ice->profi_port = pci_resource_start(pci, 1);
if (request_irq(pci->irq, snd_vt1724_interrupt, SA_INTERRUPT|SA_SHIRQ, "ICE1724", (void *) ice)) { if (request_irq(pci->irq, snd_vt1724_interrupt, SA_INTERRUPT|SA_SHIRQ, "ICE1724", (void *) ice)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_vt1724_free(ice); snd_vt1724_free(ice);
return -EIO; return -EIO;
} }
......
...@@ -538,7 +538,7 @@ static int snd_intel8x0_codec_semaphore(intel8x0_t *chip, unsigned int codec) ...@@ -538,7 +538,7 @@ static int snd_intel8x0_codec_semaphore(intel8x0_t *chip, unsigned int codec)
/* access to some forbidden (non existant) ac97 registers will not /* access to some forbidden (non existant) ac97 registers will not
* reset the semaphore. So even if you don't get the semaphore, still * reset the semaphore. So even if you don't get the semaphore, still
* continue the access. We don't need the semaphore anyway. */ * continue the access. We don't need the semaphore anyway. */
snd_printk("codec_semaphore: semaphore is not ready [0x%x][0x%x]\n", snd_printk(KERN_ERR "codec_semaphore: semaphore is not ready [0x%x][0x%x]\n",
igetbyte(chip, ICHREG(ACC_SEMA)), igetdword(chip, ICHREG(GLOB_STA))); igetbyte(chip, ICHREG(ACC_SEMA)), igetdword(chip, ICHREG(GLOB_STA)));
iagetword(chip, 0); /* clear semaphore flag */ iagetword(chip, 0); /* clear semaphore flag */
/* I don't care about the semaphore */ /* I don't care about the semaphore */
...@@ -553,7 +553,7 @@ static void snd_intel8x0_codec_write(ac97_t *ac97, ...@@ -553,7 +553,7 @@ static void snd_intel8x0_codec_write(ac97_t *ac97,
if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) { if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) {
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
} }
iaputword(chip, reg + ac97->num * 0x80, val); iaputword(chip, reg + ac97->num * 0x80, val);
} }
...@@ -567,7 +567,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97, ...@@ -567,7 +567,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97,
if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) { if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) {
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
res = 0xffff; res = 0xffff;
} else { } else {
res = iagetword(chip, reg + ac97->num * 0x80); res = iagetword(chip, reg + ac97->num * 0x80);
...@@ -575,7 +575,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97, ...@@ -575,7 +575,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97,
/* reset RCS and preserve other R/WC bits */ /* reset RCS and preserve other R/WC bits */
iputdword(chip, ICHREG(GLOB_STA), tmp & ~(ICH_SRI|ICH_PRI|ICH_TRI|ICH_GSCI)); iputdword(chip, ICHREG(GLOB_STA), tmp & ~(ICH_SRI|ICH_PRI|ICH_TRI|ICH_GSCI));
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_read %d: read timeout for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_read %d: read timeout for register 0x%x\n", ac97->num, reg);
res = 0xffff; res = 0xffff;
} }
} }
...@@ -2173,7 +2173,7 @@ static int snd_intel8x0_ich_chip_init(intel8x0_t *chip, int probing) ...@@ -2173,7 +2173,7 @@ static int snd_intel8x0_ich_chip_init(intel8x0_t *chip, int probing)
goto __ok; goto __ok;
do_delay(chip); do_delay(chip);
} while (time_after_eq(end_time, jiffies)); } while (time_after_eq(end_time, jiffies));
snd_printk("AC'97 warm reset still in progress? [0x%x]\n", igetdword(chip, ICHREG(GLOB_CNT))); snd_printk(KERN_ERR "AC'97 warm reset still in progress? [0x%x]\n", igetdword(chip, ICHREG(GLOB_CNT)));
return -EIO; return -EIO;
__ok: __ok:
...@@ -2448,7 +2448,7 @@ static void __devinit intel8x0_measure_ac97_clock(intel8x0_t *chip) ...@@ -2448,7 +2448,7 @@ static void __devinit intel8x0_measure_ac97_clock(intel8x0_t *chip)
subs = chip->pcm[0]->streams[0].substream; subs = chip->pcm[0]->streams[0].substream;
if (! subs || subs->dma_buffer.bytes < INTEL8X0_TESTBUF_SIZE) { if (! subs || subs->dma_buffer.bytes < INTEL8X0_TESTBUF_SIZE) {
snd_printk("no playback buffer allocated - aborting measure ac97 clock\n"); snd_printk(KERN_WARNING "no playback buffer allocated - aborting measure ac97 clock\n");
return; return;
} }
ichdev = &chip->ichd[ICHD_PCMOUT]; ichdev = &chip->ichd[ICHD_PCMOUT];
...@@ -2655,7 +2655,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card, ...@@ -2655,7 +2655,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card,
chip->remap_addr = ioremap_nocache(chip->addr, chip->remap_addr = ioremap_nocache(chip->addr,
pci_resource_len(pci, 2)); pci_resource_len(pci, 2));
if (chip->remap_addr == NULL) { if (chip->remap_addr == NULL) {
snd_printk("AC'97 space ioremap problem\n"); snd_printk(KERN_ERR "AC'97 space ioremap problem\n");
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EIO; return -EIO;
} }
...@@ -2668,7 +2668,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card, ...@@ -2668,7 +2668,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card,
chip->remap_bmaddr = ioremap_nocache(chip->bmaddr, chip->remap_bmaddr = ioremap_nocache(chip->bmaddr,
pci_resource_len(pci, 3)); pci_resource_len(pci, 3));
if (chip->remap_bmaddr == NULL) { if (chip->remap_bmaddr == NULL) {
snd_printk("Controller space ioremap problem\n"); snd_printk(KERN_ERR "Controller space ioremap problem\n");
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EIO; return -EIO;
} }
...@@ -2678,7 +2678,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card, ...@@ -2678,7 +2678,7 @@ static int __devinit snd_intel8x0_create(snd_card_t * card,
port_inited: port_inited:
if (request_irq(pci->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) { if (request_irq(pci->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -363,7 +363,7 @@ static int snd_intel8x0m_codec_semaphore(intel8x0_t *chip, unsigned int codec) ...@@ -363,7 +363,7 @@ static int snd_intel8x0m_codec_semaphore(intel8x0_t *chip, unsigned int codec)
/* access to some forbidden (non existant) ac97 registers will not /* access to some forbidden (non existant) ac97 registers will not
* reset the semaphore. So even if you don't get the semaphore, still * reset the semaphore. So even if you don't get the semaphore, still
* continue the access. We don't need the semaphore anyway. */ * continue the access. We don't need the semaphore anyway. */
snd_printk("codec_semaphore: semaphore is not ready [0x%x][0x%x]\n", snd_printk(KERN_ERR "codec_semaphore: semaphore is not ready [0x%x][0x%x]\n",
igetbyte(chip, ICHREG(ACC_SEMA)), igetdword(chip, ICHREG(GLOB_STA))); igetbyte(chip, ICHREG(ACC_SEMA)), igetdword(chip, ICHREG(GLOB_STA)));
iagetword(chip, 0); /* clear semaphore flag */ iagetword(chip, 0); /* clear semaphore flag */
/* I don't care about the semaphore */ /* I don't care about the semaphore */
...@@ -378,7 +378,7 @@ static void snd_intel8x0_codec_write(ac97_t *ac97, ...@@ -378,7 +378,7 @@ static void snd_intel8x0_codec_write(ac97_t *ac97,
if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) {
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
} }
iaputword(chip, reg + ac97->num * 0x80, val); iaputword(chip, reg + ac97->num * 0x80, val);
} }
...@@ -392,7 +392,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97, ...@@ -392,7 +392,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97,
if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) {
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
res = 0xffff; res = 0xffff;
} else { } else {
res = iagetword(chip, reg + ac97->num * 0x80); res = iagetword(chip, reg + ac97->num * 0x80);
...@@ -400,7 +400,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97, ...@@ -400,7 +400,7 @@ static unsigned short snd_intel8x0_codec_read(ac97_t *ac97,
/* reset RCS and preserve other R/WC bits */ /* reset RCS and preserve other R/WC bits */
iputdword(chip, ICHREG(GLOB_STA), tmp & ~(ICH_SRI|ICH_PRI|ICH_TRI|ICH_GSCI)); iputdword(chip, ICHREG(GLOB_STA), tmp & ~(ICH_SRI|ICH_PRI|ICH_TRI|ICH_GSCI));
if (! chip->in_ac97_init) if (! chip->in_ac97_init)
snd_printk("codec_read %d: read timeout for register 0x%x\n", ac97->num, reg); snd_printk(KERN_ERR "codec_read %d: read timeout for register 0x%x\n", ac97->num, reg);
res = 0xffff; res = 0xffff;
} }
} }
...@@ -917,7 +917,7 @@ static int snd_intel8x0m_ich_chip_init(intel8x0_t *chip, int probing) ...@@ -917,7 +917,7 @@ static int snd_intel8x0m_ich_chip_init(intel8x0_t *chip, int probing)
goto __ok; goto __ok;
do_delay(chip); do_delay(chip);
} while (time_after_eq(end_time, jiffies)); } while (time_after_eq(end_time, jiffies));
snd_printk("AC'97 warm reset still in progress? [0x%x]\n", igetdword(chip, ICHREG(GLOB_CNT))); snd_printk(KERN_ERR "AC'97 warm reset still in progress? [0x%x]\n", igetdword(chip, ICHREG(GLOB_CNT)));
return -EIO; return -EIO;
__ok: __ok:
...@@ -1143,7 +1143,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card, ...@@ -1143,7 +1143,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card,
chip->remap_addr = ioremap_nocache(chip->addr, chip->remap_addr = ioremap_nocache(chip->addr,
pci_resource_len(pci, 2)); pci_resource_len(pci, 2));
if (chip->remap_addr == NULL) { if (chip->remap_addr == NULL) {
snd_printk("AC'97 space ioremap problem\n"); snd_printk(KERN_ERR "AC'97 space ioremap problem\n");
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EIO; return -EIO;
} }
...@@ -1156,7 +1156,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card, ...@@ -1156,7 +1156,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card,
chip->remap_bmaddr = ioremap_nocache(chip->bmaddr, chip->remap_bmaddr = ioremap_nocache(chip->bmaddr,
pci_resource_len(pci, 3)); pci_resource_len(pci, 3));
if (chip->remap_bmaddr == NULL) { if (chip->remap_bmaddr == NULL) {
snd_printk("Controller space ioremap problem\n"); snd_printk(KERN_ERR "Controller space ioremap problem\n");
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EIO; return -EIO;
} }
...@@ -1166,7 +1166,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card, ...@@ -1166,7 +1166,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card,
port_inited: port_inited:
if (request_irq(pci->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) { if (request_irq(pci->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_intel8x0_free(chip); snd_intel8x0_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -1492,7 +1492,7 @@ static int snd_m3_pcm_hw_params(snd_pcm_substream_t * substream, ...@@ -1492,7 +1492,7 @@ static int snd_m3_pcm_hw_params(snd_pcm_substream_t * substream,
/* set buffer address */ /* set buffer address */
s->buffer_addr = substream->runtime->dma_addr; s->buffer_addr = substream->runtime->dma_addr;
if (s->buffer_addr & 0x3) { if (s->buffer_addr & 0x3) {
snd_printk("oh my, not aligned\n"); snd_printk(KERN_ERR "oh my, not aligned\n");
s->buffer_addr = s->buffer_addr & ~0x3; s->buffer_addr = s->buffer_addr & ~0x3;
} }
return 0; return 0;
...@@ -1942,7 +1942,7 @@ static int snd_m3_ac97_wait(m3_t *chip) ...@@ -1942,7 +1942,7 @@ static int snd_m3_ac97_wait(m3_t *chip)
return 0; return 0;
} while (i-- > 0); } while (i-- > 0);
snd_printk("ac97 serial bus busy\n"); snd_printk(KERN_ERR "ac97 serial bus busy\n");
return 1; return 1;
} }
...@@ -2367,7 +2367,7 @@ static int __devinit snd_m3_assp_client_init(m3_t *chip, m3_dma_t *s, int index) ...@@ -2367,7 +2367,7 @@ static int __devinit snd_m3_assp_client_init(m3_t *chip, m3_dma_t *s, int index)
address = 0x1100 + ((data_bytes/2) * index); address = 0x1100 + ((data_bytes/2) * index);
if ((address + (data_bytes/2)) >= 0x1c00) { if ((address + (data_bytes/2)) >= 0x1c00) {
snd_printk("no memory for %d bytes at ind %d (addr 0x%x)\n", snd_printk(KERN_ERR "no memory for %d bytes at ind %d (addr 0x%x)\n",
data_bytes, index, address); data_bytes, index, address);
return -ENOMEM; return -ENOMEM;
} }
...@@ -2656,7 +2656,7 @@ snd_m3_create(snd_card_t *card, struct pci_dev *pci, ...@@ -2656,7 +2656,7 @@ snd_m3_create(snd_card_t *card, struct pci_dev *pci,
/* check, if we can restrict PCI DMA transfers to 28 bits */ /* check, if we can restrict PCI DMA transfers to 28 bits */
if (pci_set_dma_mask(pci, 0x0fffffff) < 0 || if (pci_set_dma_mask(pci, 0x0fffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x0fffffff) < 0) {
snd_printk("architecture does not support 28bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 28bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -2741,7 +2741,7 @@ snd_m3_create(snd_card_t *card, struct pci_dev *pci, ...@@ -2741,7 +2741,7 @@ snd_m3_create(snd_card_t *card, struct pci_dev *pci,
if (request_irq(pci->irq, snd_m3_interrupt, SA_INTERRUPT|SA_SHIRQ, if (request_irq(pci->irq, snd_m3_interrupt, SA_INTERRUPT|SA_SHIRQ,
card->driver, (void *)chip)) { card->driver, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_m3_free(chip); snd_m3_free(chip);
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -320,9 +320,9 @@ static inline void ...@@ -320,9 +320,9 @@ static inline void
snd_nm256_write_buffer(nm256_t *chip, void *src, int offset, int size) snd_nm256_write_buffer(nm256_t *chip, void *src, int offset, int size)
{ {
offset -= chip->buffer_start; offset -= chip->buffer_start;
#ifdef SNDRV_CONFIG_DEBUG #ifdef CONFIG_SND_DEBUG
if (offset < 0 || offset >= chip->buffer_size) { if (offset < 0 || offset >= chip->buffer_size) {
snd_printk("write_buffer invalid offset = %d size = %d\n", offset, size); snd_printk(KERN_ERR "write_buffer invalid offset = %d size = %d\n", offset, size);
return; return;
} }
#endif #endif
...@@ -466,7 +466,7 @@ static int snd_nm256_acquire_irq(nm256_t *chip) ...@@ -466,7 +466,7 @@ static int snd_nm256_acquire_irq(nm256_t *chip)
if (chip->irq < 0) { if (chip->irq < 0) {
if (request_irq(chip->pci->irq, chip->interrupt, SA_INTERRUPT|SA_SHIRQ, if (request_irq(chip->pci->irq, chip->interrupt, SA_INTERRUPT|SA_SHIRQ,
chip->card->driver, (void*)chip)) { chip->card->driver, (void*)chip)) {
snd_printk("unable to grab IRQ %d\n", chip->pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", chip->pci->irq);
up(&chip->irq_mutex); up(&chip->irq_mutex);
return -EBUSY; return -EBUSY;
} }
...@@ -1273,7 +1273,7 @@ snd_nm256_peek_for_sig(nm256_t *chip) ...@@ -1273,7 +1273,7 @@ snd_nm256_peek_for_sig(nm256_t *chip)
temp = ioremap_nocache(chip->buffer_addr + chip->buffer_end - 0x400, 16); temp = ioremap_nocache(chip->buffer_addr + chip->buffer_end - 0x400, 16);
if (temp == NULL) { if (temp == NULL) {
snd_printk("Unable to scan for card signature in video RAM\n"); snd_printk(KERN_ERR "Unable to scan for card signature in video RAM\n");
return -EBUSY; return -EBUSY;
} }
...@@ -1287,7 +1287,7 @@ snd_nm256_peek_for_sig(nm256_t *chip) ...@@ -1287,7 +1287,7 @@ snd_nm256_peek_for_sig(nm256_t *chip)
if (pointer == 0xffffffff || if (pointer == 0xffffffff ||
pointer < chip->buffer_size || pointer < chip->buffer_size ||
pointer > chip->buffer_end) { pointer > chip->buffer_end) {
snd_printk("invalid signature found: 0x%x\n", pointer); snd_printk(KERN_ERR "invalid signature found: 0x%x\n", pointer);
iounmap(temp); iounmap(temp);
return -ENODEV; return -ENODEV;
} else { } else {
...@@ -1424,14 +1424,14 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci, ...@@ -1424,14 +1424,14 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci,
chip->res_cport = request_mem_region(chip->cport_addr, NM_PORT2_SIZE, chip->res_cport = request_mem_region(chip->cport_addr, NM_PORT2_SIZE,
card->driver); card->driver);
if (chip->res_cport == NULL) { if (chip->res_cport == NULL) {
snd_printk("memory region 0x%lx (size 0x%x) busy\n", snd_printk(KERN_ERR "memory region 0x%lx (size 0x%x) busy\n",
chip->cport_addr, NM_PORT2_SIZE); chip->cport_addr, NM_PORT2_SIZE);
err = -EBUSY; err = -EBUSY;
goto __error; goto __error;
} }
chip->cport = ioremap_nocache(chip->cport_addr, NM_PORT2_SIZE); chip->cport = ioremap_nocache(chip->cport_addr, NM_PORT2_SIZE);
if (chip->cport == NULL) { if (chip->cport == NULL) {
snd_printk("unable to map control port %lx\n", chip->cport_addr); snd_printk(KERN_ERR "unable to map control port %lx\n", chip->cport_addr);
err = -ENOMEM; err = -ENOMEM;
goto __error; goto __error;
} }
...@@ -1489,7 +1489,7 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci, ...@@ -1489,7 +1489,7 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci,
chip->buffer_size, chip->buffer_size,
card->driver); card->driver);
if (chip->res_buffer == NULL) { if (chip->res_buffer == NULL) {
snd_printk("nm256: buffer 0x%lx (size 0x%x) busy\n", snd_printk(KERN_ERR "nm256: buffer 0x%lx (size 0x%x) busy\n",
chip->buffer_addr, chip->buffer_size); chip->buffer_addr, chip->buffer_size);
err = -EBUSY; err = -EBUSY;
goto __error; goto __error;
...@@ -1497,7 +1497,7 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci, ...@@ -1497,7 +1497,7 @@ snd_nm256_create(snd_card_t *card, struct pci_dev *pci,
chip->buffer = ioremap_nocache(chip->buffer_addr, chip->buffer_size); chip->buffer = ioremap_nocache(chip->buffer_addr, chip->buffer_size);
if (chip->buffer == NULL) { if (chip->buffer == NULL) {
err = -ENOMEM; err = -ENOMEM;
snd_printk("unable to map ring buffer at %lx\n", chip->buffer_addr); snd_printk(KERN_ERR "unable to map ring buffer at %lx\n", chip->buffer_addr);
goto __error; goto __error;
} }
...@@ -1605,7 +1605,7 @@ static int __devinit snd_nm256_probe(struct pci_dev *pci, ...@@ -1605,7 +1605,7 @@ static int __devinit snd_nm256_probe(struct pci_dev *pci,
strcpy(card->driver, "NM256XL+"); strcpy(card->driver, "NM256XL+");
break; break;
default: default:
snd_printk("invalid device id 0x%x\n", pci->device); snd_printk(KERN_ERR "invalid device id 0x%x\n", pci->device);
snd_card_free(card); snd_card_free(card);
return -EINVAL; return -EINVAL;
} }
......
...@@ -1369,13 +1369,13 @@ static int __devinit snd_rme32_create(rme32_t * rme32) ...@@ -1369,13 +1369,13 @@ static int __devinit snd_rme32_create(rme32_t * rme32)
rme32->port = pci_resource_start(rme32->pci, 0); rme32->port = pci_resource_start(rme32->pci, 0);
if (request_irq(pci->irq, snd_rme32_interrupt, SA_INTERRUPT | SA_SHIRQ, "RME32", (void *) rme32)) { if (request_irq(pci->irq, snd_rme32_interrupt, SA_INTERRUPT | SA_SHIRQ, "RME32", (void *) rme32)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
return -EBUSY; return -EBUSY;
} }
rme32->irq = pci->irq; rme32->irq = pci->irq;
if ((rme32->iobase = ioremap_nocache(rme32->port, RME32_IO_SIZE)) == 0) { if ((rme32->iobase = ioremap_nocache(rme32->port, RME32_IO_SIZE)) == 0) {
snd_printk("unable to remap memory region 0x%lx-0x%lx\n", snd_printk(KERN_ERR "unable to remap memory region 0x%lx-0x%lx\n",
rme32->port, rme32->port + RME32_IO_SIZE - 1); rme32->port, rme32->port + RME32_IO_SIZE - 1);
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -1570,13 +1570,13 @@ snd_rme96_create(rme96_t *rme96) ...@@ -1570,13 +1570,13 @@ snd_rme96_create(rme96_t *rme96)
rme96->port = pci_resource_start(rme96->pci, 0); rme96->port = pci_resource_start(rme96->pci, 0);
if (request_irq(pci->irq, snd_rme96_interrupt, SA_INTERRUPT|SA_SHIRQ, "RME96", (void *)rme96)) { if (request_irq(pci->irq, snd_rme96_interrupt, SA_INTERRUPT|SA_SHIRQ, "RME96", (void *)rme96)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
return -EBUSY; return -EBUSY;
} }
rme96->irq = pci->irq; rme96->irq = pci->irq;
if ((rme96->iobase = ioremap_nocache(rme96->port, RME96_IO_SIZE)) == 0) { if ((rme96->iobase = ioremap_nocache(rme96->port, RME96_IO_SIZE)) == 0) {
snd_printk("unable to remap memory region 0x%lx-0x%lx\n", rme96->port, rme96->port + RME96_IO_SIZE - 1); snd_printk(KERN_ERR "unable to remap memory region 0x%lx-0x%lx\n", rme96->port, rme96->port + RME96_IO_SIZE - 1);
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -779,7 +779,7 @@ static inline int rme9652_spdif_sample_rate(rme9652_t *s) ...@@ -779,7 +779,7 @@ static inline int rme9652_spdif_sample_rate(rme9652_t *s)
break; break;
default: default:
snd_printk("%s: unknown S/PDIF input rate (bits = 0x%x)\n", snd_printk(KERN_ERR "%s: unknown S/PDIF input rate (bits = 0x%x)\n",
s->card_name, rate_bits); s->card_name, rate_bits);
return 0; return 0;
break; break;
...@@ -2496,12 +2496,12 @@ static int __devinit snd_rme9652_create(snd_card_t *card, ...@@ -2496,12 +2496,12 @@ static int __devinit snd_rme9652_create(snd_card_t *card,
rme9652->port = pci_resource_start(pci, 0); rme9652->port = pci_resource_start(pci, 0);
rme9652->iobase = ioremap_nocache(rme9652->port, RME9652_IO_EXTENT); rme9652->iobase = ioremap_nocache(rme9652->port, RME9652_IO_EXTENT);
if (rme9652->iobase == NULL) { if (rme9652->iobase == NULL) {
snd_printk("unable to remap region 0x%lx-0x%lx\n", rme9652->port, rme9652->port + RME9652_IO_EXTENT - 1); snd_printk(KERN_ERR "unable to remap region 0x%lx-0x%lx\n", rme9652->port, rme9652->port + RME9652_IO_EXTENT - 1);
return -EBUSY; return -EBUSY;
} }
if (request_irq(pci->irq, snd_rme9652_interrupt, SA_INTERRUPT|SA_SHIRQ, "rme9652", (void *)rme9652)) { if (request_irq(pci->irq, snd_rme9652_interrupt, SA_INTERRUPT|SA_SHIRQ, "rme9652", (void *)rme9652)) {
snd_printk("unable to request IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to request IRQ %d\n", pci->irq);
return -EBUSY; return -EBUSY;
} }
rme9652->irq = pci->irq; rme9652->irq = pci->irq;
......
...@@ -591,7 +591,7 @@ static irqreturn_t snd_sonicvibes_interrupt(int irq, void *dev_id, struct pt_reg ...@@ -591,7 +591,7 @@ static irqreturn_t snd_sonicvibes_interrupt(int irq, void *dev_id, struct pt_reg
return IRQ_NONE; return IRQ_NONE;
if (status == 0xff) { /* failure */ if (status == 0xff) { /* failure */
outb(sonic->irqmask = ~0, SV_REG(sonic, IRQMASK)); outb(sonic->irqmask = ~0, SV_REG(sonic, IRQMASK));
snd_printk("IRQ failure - interrupts disabled!!\n"); snd_printk(KERN_ERR "IRQ failure - interrupts disabled!!\n");
return IRQ_HANDLED; return IRQ_HANDLED;
} }
if (sonic->pcm) { if (sonic->pcm) {
...@@ -1239,7 +1239,7 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card, ...@@ -1239,7 +1239,7 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 24 bits */ /* check, if we can restrict PCI DMA transfers to 24 bits */
if (pci_set_dma_mask(pci, 0x00ffffff) < 0 || if (pci_set_dma_mask(pci, 0x00ffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x00ffffff) < 0) {
snd_printk("architecture does not support 24bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 24bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -1267,7 +1267,7 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card, ...@@ -1267,7 +1267,7 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card,
sonic->game_port = pci_resource_start(pci, 4); sonic->game_port = pci_resource_start(pci, 4);
if (request_irq(pci->irq, snd_sonicvibes_interrupt, SA_INTERRUPT|SA_SHIRQ, "S3 SonicVibes", (void *)sonic)) { if (request_irq(pci->irq, snd_sonicvibes_interrupt, SA_INTERRUPT|SA_SHIRQ, "S3 SonicVibes", (void *)sonic)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_sonicvibes_free(sonic); snd_sonicvibes_free(sonic);
return -EBUSY; return -EBUSY;
} }
...@@ -1281,24 +1281,24 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card, ...@@ -1281,24 +1281,24 @@ static int __devinit snd_sonicvibes_create(snd_card_t * card,
if (!dmaa) { if (!dmaa) {
dmaa = dmaio; dmaa = dmaio;
dmaio += 0x10; dmaio += 0x10;
snd_printk("BIOS did not allocate DDMA channel A i/o, allocated at 0x%x\n", dmaa); snd_printk(KERN_INFO "BIOS did not allocate DDMA channel A i/o, allocated at 0x%x\n", dmaa);
} }
if (!dmac) { if (!dmac) {
dmac = dmaio; dmac = dmaio;
dmaio += 0x10; dmaio += 0x10;
snd_printk("BIOS did not allocate DDMA channel C i/o, allocated at 0x%x\n", dmac); snd_printk(KERN_INFO "BIOS did not allocate DDMA channel C i/o, allocated at 0x%x\n", dmac);
} }
pci_write_config_dword(pci, 0x40, dmaa); pci_write_config_dword(pci, 0x40, dmaa);
pci_write_config_dword(pci, 0x48, dmac); pci_write_config_dword(pci, 0x48, dmac);
if ((sonic->res_dmaa = request_region(dmaa, 0x10, "S3 SonicVibes DDMA-A")) == NULL) { if ((sonic->res_dmaa = request_region(dmaa, 0x10, "S3 SonicVibes DDMA-A")) == NULL) {
snd_sonicvibes_free(sonic); snd_sonicvibes_free(sonic);
snd_printk("unable to grab DDMA-A port at 0x%x-0x%x\n", dmaa, dmaa + 0x10 - 1); snd_printk(KERN_ERR "unable to grab DDMA-A port at 0x%x-0x%x\n", dmaa, dmaa + 0x10 - 1);
return -EBUSY; return -EBUSY;
} }
if ((sonic->res_dmac = request_region(dmac, 0x10, "S3 SonicVibes DDMA-C")) == NULL) { if ((sonic->res_dmac = request_region(dmac, 0x10, "S3 SonicVibes DDMA-C")) == NULL) {
snd_sonicvibes_free(sonic); snd_sonicvibes_free(sonic);
snd_printk("unable to grab DDMA-C port at 0x%x-0x%x\n", dmac, dmac + 0x10 - 1); snd_printk(KERN_ERR "unable to grab DDMA-C port at 0x%x-0x%x\n", dmac, dmac + 0x10 - 1);
return -EBUSY; return -EBUSY;
} }
......
...@@ -153,7 +153,7 @@ static unsigned short snd_trident_codec_read(ac97_t *ac97, unsigned short reg) ...@@ -153,7 +153,7 @@ static unsigned short snd_trident_codec_read(ac97_t *ac97, unsigned short reg)
} }
if (count == 0 && !trident->ac97_detect) { if (count == 0 && !trident->ac97_detect) {
snd_printk("ac97 codec read TIMEOUT [0x%x/0x%x]!!!\n", reg, data); snd_printk(KERN_ERR "ac97 codec read TIMEOUT [0x%x/0x%x]!!!\n", reg, data);
data = 0; data = 0;
} }
...@@ -2990,13 +2990,13 @@ static int __devinit snd_trident_mixer(trident_t * trident, int pcm_spdif_device ...@@ -2990,13 +2990,13 @@ static int __devinit snd_trident_mixer(trident_t * trident, int pcm_spdif_device
_ac97.num = 1; _ac97.num = 1;
err = snd_ac97_mixer(trident->ac97_bus, &_ac97, &trident->ac97_sec); err = snd_ac97_mixer(trident->ac97_bus, &_ac97, &trident->ac97_sec);
if (err < 0) if (err < 0)
snd_printk("SI7018: the secondary codec - invalid access\n"); snd_printk(KERN_ERR "SI7018: the secondary codec - invalid access\n");
#if 0 // only for my testing purpose --jk #if 0 // only for my testing purpose --jk
{ {
ac97_t *mc97; ac97_t *mc97;
err = snd_ac97_modem(trident->card, &_ac97, &mc97); err = snd_ac97_modem(trident->card, &_ac97, &mc97);
if (err < 0) if (err < 0)
snd_printk("snd_ac97_modem returned error %i\n", err); snd_printk(KERN_ERR "snd_ac97_modem returned error %i\n", err);
} }
#endif #endif
} }
...@@ -3244,7 +3244,7 @@ static int snd_trident_sis_reset(trident_t *trident) ...@@ -3244,7 +3244,7 @@ static int snd_trident_sis_reset(trident_t *trident)
goto __si7018_ok; goto __si7018_ok;
do_delay(trident); do_delay(trident);
} while (time_after_eq(end_time, jiffies)); } while (time_after_eq(end_time, jiffies));
snd_printk("AC'97 codec ready error [0x%x]\n", inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL))); snd_printk(KERN_ERR "AC'97 codec ready error [0x%x]\n", inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)));
if (r-- > 0) { if (r-- > 0) {
end_time = jiffies + HZ; end_time = jiffies + HZ;
do { do {
...@@ -3542,7 +3542,7 @@ int __devinit snd_trident_create(snd_card_t * card, ...@@ -3542,7 +3542,7 @@ int __devinit snd_trident_create(snd_card_t * card,
/* check, if we can restrict PCI DMA transfers to 30 bits */ /* check, if we can restrict PCI DMA transfers to 30 bits */
if (pci_set_dma_mask(pci, 0x3fffffff) < 0 || if (pci_set_dma_mask(pci, 0x3fffffff) < 0 ||
pci_set_consistent_dma_mask(pci, 0x3fffffff) < 0) { pci_set_consistent_dma_mask(pci, 0x3fffffff) < 0) {
snd_printk("architecture does not support 30bit PCI busmaster DMA\n"); snd_printk(KERN_ERR "architecture does not support 30bit PCI busmaster DMA\n");
pci_disable_device(pci); pci_disable_device(pci);
return -ENXIO; return -ENXIO;
} }
...@@ -3579,7 +3579,7 @@ int __devinit snd_trident_create(snd_card_t * card, ...@@ -3579,7 +3579,7 @@ int __devinit snd_trident_create(snd_card_t * card,
trident->port = pci_resource_start(pci, 0); trident->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_trident_interrupt, SA_INTERRUPT|SA_SHIRQ, "Trident Audio", (void *) trident)) { if (request_irq(pci->irq, snd_trident_interrupt, SA_INTERRUPT|SA_SHIRQ, "Trident Audio", (void *) trident)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_trident_free(trident); snd_trident_free(trident);
return -EBUSY; return -EBUSY;
} }
......
...@@ -170,11 +170,11 @@ search_empty(snd_util_memhdr_t *hdr, int size) ...@@ -170,11 +170,11 @@ search_empty(snd_util_memhdr_t *hdr, int size)
static int is_valid_page(unsigned long ptr) static int is_valid_page(unsigned long ptr)
{ {
if (ptr & ~0x3fffffffUL) { if (ptr & ~0x3fffffffUL) {
snd_printk("max memory size is 1GB!!\n"); snd_printk(KERN_ERR "max memory size is 1GB!!\n");
return 0; return 0;
} }
if (ptr & (SNDRV_TRIDENT_PAGE_SIZE-1)) { if (ptr & (SNDRV_TRIDENT_PAGE_SIZE-1)) {
snd_printk("page is not aligned\n"); snd_printk(KERN_ERR "page is not aligned\n");
return 0; return 0;
} }
return 1; return 1;
......
...@@ -865,7 +865,7 @@ static snd_pcm_uframes_t snd_via8233_pcm_pointer(snd_pcm_substream_t *substream) ...@@ -865,7 +865,7 @@ static snd_pcm_uframes_t snd_via8233_pcm_pointer(snd_pcm_substream_t *substream)
idx = count >> 24; idx = count >> 24;
if (idx >= viadev->tbl_entries) { if (idx >= viadev->tbl_entries) {
#ifdef POINTER_DEBUG #ifdef POINTER_DEBUG
printk("fail: invalid idx = %i/%i\n", idx, viadev->tbl_entries); printk(KERN_DEBUG "fail: invalid idx = %i/%i\n", idx, viadev->tbl_entries);
#endif #endif
res = viadev->lastpos; res = viadev->lastpos;
} else { } else {
...@@ -2032,7 +2032,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip) ...@@ -2032,7 +2032,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip)
} while (time_before(jiffies, end_time)); } while (time_before(jiffies, end_time));
if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY)
snd_printk("AC'97 codec is not ready [0x%x]\n", val); snd_printk(KERN_ERR "AC'97 codec is not ready [0x%x]\n", val);
#if 0 /* FIXME: we don't support the second codec yet so skip the detection now.. */ #if 0 /* FIXME: we don't support the second codec yet so skip the detection now.. */
snd_via82xx_codec_xwrite(chip, VIA_REG_AC97_READ | snd_via82xx_codec_xwrite(chip, VIA_REG_AC97_READ |
...@@ -2228,7 +2228,7 @@ static int __devinit snd_via82xx_create(snd_card_t * card, ...@@ -2228,7 +2228,7 @@ static int __devinit snd_via82xx_create(snd_card_t * card,
snd_via8233_interrupt : snd_via686_interrupt, snd_via8233_interrupt : snd_via686_interrupt,
SA_INTERRUPT|SA_SHIRQ, SA_INTERRUPT|SA_SHIRQ,
card->driver, (void *)chip)) { card->driver, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_via82xx_free(chip); snd_via82xx_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -570,7 +570,7 @@ static inline unsigned int calc_linear_pos(viadev_t *viadev, unsigned int idx, u ...@@ -570,7 +570,7 @@ static inline unsigned int calc_linear_pos(viadev_t *viadev, unsigned int idx, u
res = viadev->lastpos; res = viadev->lastpos;
} else if (check_invalid_pos(viadev, res)) { } else if (check_invalid_pos(viadev, res)) {
#ifdef POINTER_DEBUG #ifdef POINTER_DEBUG
printk("fail: idx = %i/%i, lastpos = 0x%x, bufsize2 = 0x%x, offsize = 0x%x, size = 0x%x, count = 0x%x\n", idx, viadev->tbl_entries, viadev->lastpos, viadev->bufsize2, viadev->idx_table[idx].offset, viadev->idx_table[idx].size, count); printk(KERN_DEBUG "fail: idx = %i/%i, lastpos = 0x%x, bufsize2 = 0x%x, offsize = 0x%x, size = 0x%x, count = 0x%x\n", idx, viadev->tbl_entries, viadev->lastpos, viadev->bufsize2, viadev->idx_table[idx].offset, viadev->idx_table[idx].size, count);
#endif #endif
if (count && size < count) { if (count && size < count) {
snd_printd(KERN_ERR "invalid via82xx_cur_ptr, using last valid pointer\n"); snd_printd(KERN_ERR "invalid via82xx_cur_ptr, using last valid pointer\n");
...@@ -973,7 +973,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip) ...@@ -973,7 +973,7 @@ static int snd_via82xx_chip_init(via82xx_t *chip)
} while (time_before(jiffies, end_time)); } while (time_before(jiffies, end_time));
if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY)
snd_printk("AC'97 codec is not ready [0x%x]\n", val); snd_printk(KERN_ERR "AC'97 codec is not ready [0x%x]\n", val);
snd_via82xx_codec_xwrite(chip, VIA_REG_AC97_READ | snd_via82xx_codec_xwrite(chip, VIA_REG_AC97_READ |
VIA_REG_AC97_SECONDARY_VALID | VIA_REG_AC97_SECONDARY_VALID |
...@@ -1102,7 +1102,7 @@ static int __devinit snd_via82xx_create(snd_card_t * card, ...@@ -1102,7 +1102,7 @@ static int __devinit snd_via82xx_create(snd_card_t * card,
chip->port = pci_resource_start(pci, 0); chip->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_via82xx_interrupt, SA_INTERRUPT|SA_SHIRQ, if (request_irq(pci->irq, snd_via82xx_interrupt, SA_INTERRUPT|SA_SHIRQ,
card->driver, (void *)chip)) { card->driver, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_via82xx_free(chip); snd_via82xx_free(chip);
return -EBUSY; return -EBUSY;
} }
......
...@@ -320,7 +320,7 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, ...@@ -320,7 +320,7 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci,
pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl); pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl);
} else if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { } else if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) {
snd_card_free(card); snd_card_free(card);
snd_printk("cannot create opl3 hwdep\n"); snd_printk(KERN_ERR "cannot create opl3 hwdep\n");
return err; return err;
} }
} }
......
...@@ -94,7 +94,7 @@ static int snd_ymfpci_codec_ready(ymfpci_t *chip, int secondary) ...@@ -94,7 +94,7 @@ static int snd_ymfpci_codec_ready(ymfpci_t *chip, int secondary)
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1); schedule_timeout(1);
} while (time_before(jiffies, end_time)); } while (time_before(jiffies, end_time));
snd_printk("codec_ready: codec %i is not ready [0x%x]\n", secondary, snd_ymfpci_readw(chip, reg)); snd_printk(KERN_ERR "codec_ready: codec %i is not ready [0x%x]\n", secondary, snd_ymfpci_readw(chip, reg));
return -EBUSY; return -EBUSY;
} }
...@@ -2288,12 +2288,12 @@ int __devinit snd_ymfpci_create(snd_card_t * card, ...@@ -2288,12 +2288,12 @@ int __devinit snd_ymfpci_create(snd_card_t * card,
pci_set_master(pci); pci_set_master(pci);
if ((chip->res_reg_area = request_mem_region(chip->reg_area_phys, 0x8000, "YMFPCI")) == NULL) { if ((chip->res_reg_area = request_mem_region(chip->reg_area_phys, 0x8000, "YMFPCI")) == NULL) {
snd_printk("unable to grab memory region 0x%lx-0x%lx\n", chip->reg_area_phys, chip->reg_area_phys + 0x8000 - 1); snd_printk(KERN_ERR "unable to grab memory region 0x%lx-0x%lx\n", chip->reg_area_phys, chip->reg_area_phys + 0x8000 - 1);
snd_ymfpci_free(chip); snd_ymfpci_free(chip);
return -EBUSY; return -EBUSY;
} }
if (request_irq(pci->irq, snd_ymfpci_interrupt, SA_INTERRUPT|SA_SHIRQ, "YMFPCI", (void *) chip)) { if (request_irq(pci->irq, snd_ymfpci_interrupt, SA_INTERRUPT|SA_SHIRQ, "YMFPCI", (void *) chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq); snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
snd_ymfpci_free(chip); snd_ymfpci_free(chip);
return -EBUSY; return -EBUSY;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册