aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio_pcm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-02-25 10:10:25 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-26 10:45:25 -0500
commit00980aa9c7ce2b5b54a5a7e7cf259f36fabdb249 (patch)
tree1aff12ccf3dec4e26b5de62e3360bf185d237c2d /sound/pci/cs5535audio/cs5535audio_pcm.c
parent74103227a6eee19654a915cbd56307fc8bc78ba6 (diff)
ALSA: cs5535audio: Use standard printk helpers
Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio_pcm.c')
-rw-r--r--sound/pci/cs5535audio/cs5535audio_pcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c
index 9ab01a7047cf..9c2dc911d8d7 100644
--- a/sound/pci/cs5535audio/cs5535audio_pcm.c
+++ b/sound/pci/cs5535audio/cs5535audio_pcm.c
@@ -317,7 +317,7 @@ static int snd_cs5535audio_trigger(struct snd_pcm_substream *substream, int cmd)
317 dma->ops->disable_dma(cs5535au); 317 dma->ops->disable_dma(cs5535au);
318 break; 318 break;
319 default: 319 default:
320 snd_printk(KERN_ERR "unhandled trigger\n"); 320 dev_err(cs5535au->card->dev, "unhandled trigger\n");
321 err = -EINVAL; 321 err = -EINVAL;
322 break; 322 break;
323 } 323 }
@@ -335,13 +335,13 @@ static snd_pcm_uframes_t snd_cs5535audio_pcm_pointer(struct snd_pcm_substream
335 dma = substream->runtime->private_data; 335 dma = substream->runtime->private_data;
336 curdma = dma->ops->read_dma_pntr(cs5535au); 336 curdma = dma->ops->read_dma_pntr(cs5535au);
337 if (curdma < dma->buf_addr) { 337 if (curdma < dma->buf_addr) {
338 snd_printk(KERN_ERR "curdma=%x < %x bufaddr.\n", 338 dev_err(cs5535au->card->dev, "curdma=%x < %x bufaddr.\n",
339 curdma, dma->buf_addr); 339 curdma, dma->buf_addr);
340 return 0; 340 return 0;
341 } 341 }
342 curdma -= dma->buf_addr; 342 curdma -= dma->buf_addr;
343 if (curdma >= dma->buf_bytes) { 343 if (curdma >= dma->buf_bytes) {
344 snd_printk(KERN_ERR "diff=%x >= %x buf_bytes.\n", 344 dev_err(cs5535au->card->dev, "diff=%x >= %x buf_bytes.\n",
345 curdma, dma->buf_bytes); 345 curdma, dma->buf_bytes);
346 return 0; 346 return 0;
347 } 347 }