[ALSA] Add missing KERN_* suffix to printk
Add missing KERN_* suffix to printk. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Jaroslav Kysela

vanhempi
8a3fb4d0ce
commit
99b359ba10
@@ -56,9 +56,9 @@ static void reg_dump(ak4114_t *ak4114)
|
||||
{
|
||||
int i;
|
||||
|
||||
printk("AK4114 REG DUMP:\n");
|
||||
printk(KERN_DEBUG "AK4114 REG DUMP:\n");
|
||||
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
|
||||
|
||||
@@ -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) {
|
||||
snd_pcm_stream_lock_irqsave(ak4114->capture_substream, _flags);
|
||||
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);
|
||||
res = 1;
|
||||
}
|
||||
|
@@ -54,9 +54,9 @@ static void reg_dump(ak4117_t *ak4117)
|
||||
{
|
||||
int i;
|
||||
|
||||
printk("AK4117 REG DUMP:\n");
|
||||
printk(KERN_DEBUG "AK4117 REG DUMP:\n");
|
||||
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
|
||||
|
||||
@@ -477,7 +477,7 @@ int snd_ak4117_check_rate_and_errors(ak4117_t *ak4117, unsigned int flags)
|
||||
goto __rate;
|
||||
rcs0 = reg_read(ak4117, AK4117_REG_RCS0);
|
||||
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);
|
||||
if (rcs0 & AK4117_PAR)
|
||||
ak4117->parity_errors++;
|
||||
@@ -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) {
|
||||
snd_pcm_stream_lock_irqsave(ak4117->substream, _flags);
|
||||
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);
|
||||
wake_up(&runtime->sleep);
|
||||
res = 1;
|
||||
|
Viittaa uudesa ongelmassa
Block a user