aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-02-26 06:05:40 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-26 10:45:31 -0500
commite3a471d6680487c693ab82b197e37688174cefc6 (patch)
tree6b396e42758ea92293e872693b778aa99872aa1d
parenta54ba0fe9fae3c170638c35f1e6abf27449bcedc (diff)
ALSA: hdspm: Use standard printk helpers
Convert with dev_err() and co from snd_printk(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/rme9652/hdspm.c125
1 files changed, 69 insertions, 56 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 76016287e46f..cb82b593473a 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -1651,9 +1651,8 @@ static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally)
1651 just make a warning an remember setting 1651 just make a warning an remember setting
1652 for future master mode switching */ 1652 for future master mode switching */
1653 1653
1654 snd_printk(KERN_WARNING "HDSPM: " 1654 dev_warn(hdspm->card->dev,
1655 "Warning: device is not running " 1655 "Warning: device is not running as a clock master.\n");
1656 "as a clock master.\n");
1657 not_set = 1; 1656 not_set = 1;
1658 } else { 1657 } else {
1659 1658
@@ -1664,15 +1663,14 @@ static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally)
1664 if (hdspm_autosync_ref(hdspm) == 1663 if (hdspm_autosync_ref(hdspm) ==
1665 HDSPM_AUTOSYNC_FROM_NONE) { 1664 HDSPM_AUTOSYNC_FROM_NONE) {
1666 1665
1667 snd_printk(KERN_WARNING "HDSPM: " 1666 dev_warn(hdspm->card->dev,
1668 "Detected no Externel Sync \n"); 1667 "Detected no Externel Sync\n");
1669 not_set = 1; 1668 not_set = 1;
1670 1669
1671 } else if (rate != external_freq) { 1670 } else if (rate != external_freq) {
1672 1671
1673 snd_printk(KERN_WARNING "HDSPM: " 1672 dev_warn(hdspm->card->dev,
1674 "Warning: No AutoSync source for " 1673 "Warning: No AutoSync source for requested rate\n");
1675 "requested rate\n");
1676 not_set = 1; 1674 not_set = 1;
1677 } 1675 }
1678 } 1676 }
@@ -1738,13 +1736,11 @@ static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally)
1738 1736
1739 if (current_speed != target_speed 1737 if (current_speed != target_speed
1740 && (hdspm->capture_pid >= 0 || hdspm->playback_pid >= 0)) { 1738 && (hdspm->capture_pid >= 0 || hdspm->playback_pid >= 0)) {
1741 snd_printk 1739 dev_err(hdspm->card->dev,
1742 (KERN_ERR "HDSPM: " 1740 "cannot change from %s speed to %s speed mode (capture PID = %d, playback PID = %d)\n",
1743 "cannot change from %s speed to %s speed mode " 1741 hdspm_speed_names[current_speed],
1744 "(capture PID = %d, playback PID = %d)\n", 1742 hdspm_speed_names[target_speed],
1745 hdspm_speed_names[current_speed], 1743 hdspm->capture_pid, hdspm->playback_pid);
1746 hdspm_speed_names[target_speed],
1747 hdspm->capture_pid, hdspm->playback_pid);
1748 return -EBUSY; 1744 return -EBUSY;
1749 } 1745 }
1750 1746
@@ -5446,7 +5442,7 @@ static irqreturn_t snd_hdspm_interrupt(int irq, void *dev_id)
5446 * 0 64 ~3998231 ~8191558 5442 * 0 64 ~3998231 ~8191558
5447 **/ 5443 **/
5448 /* 5444 /*
5449 snd_printk(KERN_INFO "snd_hdspm_interrupt %llu @ %llx\n", 5445 dev_info(hdspm->card->dev, "snd_hdspm_interrupt %llu @ %llx\n",
5450 now-hdspm->last_interrupt, status & 0xFFC0); 5446 now-hdspm->last_interrupt, status & 0xFFC0);
5451 hdspm->last_interrupt = now; 5447 hdspm->last_interrupt = now;
5452 */ 5448 */
@@ -5583,7 +5579,7 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5583 spin_lock_irq(&hdspm->lock); 5579 spin_lock_irq(&hdspm->lock);
5584 err = hdspm_set_rate(hdspm, params_rate(params), 0); 5580 err = hdspm_set_rate(hdspm, params_rate(params), 0);
5585 if (err < 0) { 5581 if (err < 0) {
5586 snd_printk(KERN_INFO "err on hdspm_set_rate: %d\n", err); 5582 dev_info(hdspm->card->dev, "err on hdspm_set_rate: %d\n", err);
5587 spin_unlock_irq(&hdspm->lock); 5583 spin_unlock_irq(&hdspm->lock);
5588 _snd_pcm_hw_param_setempty(params, 5584 _snd_pcm_hw_param_setempty(params,
5589 SNDRV_PCM_HW_PARAM_RATE); 5585 SNDRV_PCM_HW_PARAM_RATE);
@@ -5594,7 +5590,8 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5594 err = hdspm_set_interrupt_interval(hdspm, 5590 err = hdspm_set_interrupt_interval(hdspm,
5595 params_period_size(params)); 5591 params_period_size(params));
5596 if (err < 0) { 5592 if (err < 0) {
5597 snd_printk(KERN_INFO "err on hdspm_set_interrupt_interval: %d\n", err); 5593 dev_info(hdspm->card->dev,
5594 "err on hdspm_set_interrupt_interval: %d\n", err);
5598 _snd_pcm_hw_param_setempty(params, 5595 _snd_pcm_hw_param_setempty(params,
5599 SNDRV_PCM_HW_PARAM_PERIOD_SIZE); 5596 SNDRV_PCM_HW_PARAM_PERIOD_SIZE);
5600 return err; 5597 return err;
@@ -5610,7 +5607,8 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5610 err = 5607 err =
5611 snd_pcm_lib_malloc_pages(substream, HDSPM_DMA_AREA_BYTES); 5608 snd_pcm_lib_malloc_pages(substream, HDSPM_DMA_AREA_BYTES);
5612 if (err < 0) { 5609 if (err < 0) {
5613 snd_printk(KERN_INFO "err on snd_pcm_lib_malloc_pages: %d\n", err); 5610 dev_info(hdspm->card->dev,
5611 "err on snd_pcm_lib_malloc_pages: %d\n", err);
5614 return err; 5612 return err;
5615 } 5613 }
5616 5614
@@ -5624,7 +5622,8 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5624 5622
5625 hdspm->playback_buffer = 5623 hdspm->playback_buffer =
5626 (unsigned char *) substream->runtime->dma_area; 5624 (unsigned char *) substream->runtime->dma_area;
5627 snd_printdd("Allocated sample buffer for playback at %p\n", 5625 dev_dbg(hdspm->card->dev,
5626 "Allocated sample buffer for playback at %p\n",
5628 hdspm->playback_buffer); 5627 hdspm->playback_buffer);
5629 } else { 5628 } else {
5630 hdspm_set_sgbuf(hdspm, substream, HDSPM_pageAddressBufferIn, 5629 hdspm_set_sgbuf(hdspm, substream, HDSPM_pageAddressBufferIn,
@@ -5635,18 +5634,21 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5635 5634
5636 hdspm->capture_buffer = 5635 hdspm->capture_buffer =
5637 (unsigned char *) substream->runtime->dma_area; 5636 (unsigned char *) substream->runtime->dma_area;
5638 snd_printdd("Allocated sample buffer for capture at %p\n", 5637 dev_dbg(hdspm->card->dev,
5638 "Allocated sample buffer for capture at %p\n",
5639 hdspm->capture_buffer); 5639 hdspm->capture_buffer);
5640 } 5640 }
5641 5641
5642 /* 5642 /*
5643 snd_printdd("Allocated sample buffer for %s at 0x%08X\n", 5643 dev_dbg(hdspm->card->dev,
5644 "Allocated sample buffer for %s at 0x%08X\n",
5644 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 5645 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5645 "playback" : "capture", 5646 "playback" : "capture",
5646 snd_pcm_sgbuf_get_addr(substream, 0)); 5647 snd_pcm_sgbuf_get_addr(substream, 0));
5647 */ 5648 */
5648 /* 5649 /*
5649 snd_printdd("set_hwparams: %s %d Hz, %d channels, bs = %d\n", 5650 dev_dbg(hdspm->card->dev,
5651 "set_hwparams: %s %d Hz, %d channels, bs = %d\n",
5650 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 5652 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5651 "playback" : "capture", 5653 "playback" : "capture",
5652 params_rate(params), params_channels(params), 5654 params_rate(params), params_channels(params),
@@ -5667,12 +5669,14 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5667 /* Switch to native float format if requested */ 5669 /* Switch to native float format if requested */
5668 if (SNDRV_PCM_FORMAT_FLOAT_LE == params_format(params)) { 5670 if (SNDRV_PCM_FORMAT_FLOAT_LE == params_format(params)) {
5669 if (!(hdspm->control_register & HDSPe_FLOAT_FORMAT)) 5671 if (!(hdspm->control_register & HDSPe_FLOAT_FORMAT))
5670 snd_printk(KERN_INFO "hdspm: Switching to native 32bit LE float format.\n"); 5672 dev_info(hdspm->card->dev,
5673 "Switching to native 32bit LE float format.\n");
5671 5674
5672 hdspm->control_register |= HDSPe_FLOAT_FORMAT; 5675 hdspm->control_register |= HDSPe_FLOAT_FORMAT;
5673 } else if (SNDRV_PCM_FORMAT_S32_LE == params_format(params)) { 5676 } else if (SNDRV_PCM_FORMAT_S32_LE == params_format(params)) {
5674 if (hdspm->control_register & HDSPe_FLOAT_FORMAT) 5677 if (hdspm->control_register & HDSPe_FLOAT_FORMAT)
5675 snd_printk(KERN_INFO "hdspm: Switching to native 32bit LE integer format.\n"); 5678 dev_info(hdspm->card->dev,
5679 "Switching to native 32bit LE integer format.\n");
5676 5680
5677 hdspm->control_register &= ~HDSPe_FLOAT_FORMAT; 5681 hdspm->control_register &= ~HDSPe_FLOAT_FORMAT;
5678 } 5682 }
@@ -5715,12 +5719,16 @@ static int snd_hdspm_channel_info(struct snd_pcm_substream *substream,
5715 5719
5716 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 5720 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5717 if (snd_BUG_ON(info->channel >= hdspm->max_channels_out)) { 5721 if (snd_BUG_ON(info->channel >= hdspm->max_channels_out)) {
5718 snd_printk(KERN_INFO "snd_hdspm_channel_info: output channel out of range (%d)\n", info->channel); 5722 dev_info(hdspm->card->dev,
5723 "snd_hdspm_channel_info: output channel out of range (%d)\n",
5724 info->channel);
5719 return -EINVAL; 5725 return -EINVAL;
5720 } 5726 }
5721 5727
5722 if (hdspm->channel_map_out[info->channel] < 0) { 5728 if (hdspm->channel_map_out[info->channel] < 0) {
5723 snd_printk(KERN_INFO "snd_hdspm_channel_info: output channel %d mapped out\n", info->channel); 5729 dev_info(hdspm->card->dev,
5730 "snd_hdspm_channel_info: output channel %d mapped out\n",
5731 info->channel);
5724 return -EINVAL; 5732 return -EINVAL;
5725 } 5733 }
5726 5734
@@ -5728,12 +5736,16 @@ static int snd_hdspm_channel_info(struct snd_pcm_substream *substream,
5728 HDSPM_CHANNEL_BUFFER_BYTES; 5736 HDSPM_CHANNEL_BUFFER_BYTES;
5729 } else { 5737 } else {
5730 if (snd_BUG_ON(info->channel >= hdspm->max_channels_in)) { 5738 if (snd_BUG_ON(info->channel >= hdspm->max_channels_in)) {
5731 snd_printk(KERN_INFO "snd_hdspm_channel_info: input channel out of range (%d)\n", info->channel); 5739 dev_info(hdspm->card->dev,
5740 "snd_hdspm_channel_info: input channel out of range (%d)\n",
5741 info->channel);
5732 return -EINVAL; 5742 return -EINVAL;
5733 } 5743 }
5734 5744
5735 if (hdspm->channel_map_in[info->channel] < 0) { 5745 if (hdspm->channel_map_in[info->channel] < 0) {
5736 snd_printk(KERN_INFO "snd_hdspm_channel_info: input channel %d mapped out\n", info->channel); 5746 dev_info(hdspm->card->dev,
5747 "snd_hdspm_channel_info: input channel %d mapped out\n",
5748 info->channel);
5737 return -EINVAL; 5749 return -EINVAL;
5738 } 5750 }
5739 5751
@@ -6283,7 +6295,7 @@ static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
6283 6295
6284 s = copy_to_user(argp, levels, sizeof(struct hdspm_peak_rms)); 6296 s = copy_to_user(argp, levels, sizeof(struct hdspm_peak_rms));
6285 if (0 != s) { 6297 if (0 != s) {
6286 /* snd_printk(KERN_ERR "copy_to_user(.., .., %lu): %lu 6298 /* dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu
6287 [Levels]\n", sizeof(struct hdspm_peak_rms), s); 6299 [Levels]\n", sizeof(struct hdspm_peak_rms), s);
6288 */ 6300 */
6289 return -EFAULT; 6301 return -EFAULT;
@@ -6329,7 +6341,7 @@ static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
6329 s = copy_to_user(argp, &ltc, sizeof(struct hdspm_ltc)); 6341 s = copy_to_user(argp, &ltc, sizeof(struct hdspm_ltc));
6330 if (0 != s) { 6342 if (0 != s) {
6331 /* 6343 /*
6332 snd_printk(KERN_ERR "copy_to_user(.., .., %lu): %lu [LTC]\n", sizeof(struct hdspm_ltc), s); */ 6344 dev_err(hdspm->card->dev, "copy_to_user(.., .., %lu): %lu [LTC]\n", sizeof(struct hdspm_ltc), s); */
6333 return -EFAULT; 6345 return -EFAULT;
6334 } 6346 }
6335 6347
@@ -6494,11 +6506,13 @@ static int snd_hdspm_preallocate_memory(struct hdspm *hdspm)
6494 wanted, 6506 wanted,
6495 wanted); 6507 wanted);
6496 if (err < 0) { 6508 if (err < 0) {
6497 snd_printdd("Could not preallocate %zd Bytes\n", wanted); 6509 dev_dbg(hdspm->card->dev,
6510 "Could not preallocate %zd Bytes\n", wanted);
6498 6511
6499 return err; 6512 return err;
6500 } else 6513 } else
6501 snd_printdd(" Preallocated %zd Bytes\n", wanted); 6514 dev_dbg(hdspm->card->dev,
6515 " Preallocated %zd Bytes\n", wanted);
6502 6516
6503 return 0; 6517 return 0;
6504} 6518}
@@ -6559,7 +6573,7 @@ static int snd_hdspm_create_alsa_devices(struct snd_card *card,
6559{ 6573{
6560 int err, i; 6574 int err, i;
6561 6575
6562 snd_printdd("Create card...\n"); 6576 dev_dbg(card->dev, "Create card...\n");
6563 err = snd_hdspm_create_pcm(card, hdspm); 6577 err = snd_hdspm_create_pcm(card, hdspm);
6564 if (err < 0) 6578 if (err < 0)
6565 return err; 6579 return err;
@@ -6581,7 +6595,7 @@ static int snd_hdspm_create_alsa_devices(struct snd_card *card,
6581 if (err < 0) 6595 if (err < 0)
6582 return err; 6596 return err;
6583 6597
6584 snd_printdd("proc init...\n"); 6598 dev_dbg(card->dev, "proc init...\n");
6585 snd_hdspm_proc_init(hdspm); 6599 snd_hdspm_proc_init(hdspm);
6586 6600
6587 hdspm->system_sample_rate = -1; 6601 hdspm->system_sample_rate = -1;
@@ -6592,23 +6606,23 @@ static int snd_hdspm_create_alsa_devices(struct snd_card *card,
6592 hdspm->capture_substream = NULL; 6606 hdspm->capture_substream = NULL;
6593 hdspm->playback_substream = NULL; 6607 hdspm->playback_substream = NULL;
6594 6608
6595 snd_printdd("Set defaults...\n"); 6609 dev_dbg(card->dev, "Set defaults...\n");
6596 err = snd_hdspm_set_defaults(hdspm); 6610 err = snd_hdspm_set_defaults(hdspm);
6597 if (err < 0) 6611 if (err < 0)
6598 return err; 6612 return err;
6599 6613
6600 snd_printdd("Update mixer controls...\n"); 6614 dev_dbg(card->dev, "Update mixer controls...\n");
6601 hdspm_update_simple_mixer_controls(hdspm); 6615 hdspm_update_simple_mixer_controls(hdspm);
6602 6616
6603 snd_printdd("Initializeing complete ???\n"); 6617 dev_dbg(card->dev, "Initializeing complete ???\n");
6604 6618
6605 err = snd_card_register(card); 6619 err = snd_card_register(card);
6606 if (err < 0) { 6620 if (err < 0) {
6607 snd_printk(KERN_ERR "HDSPM: error registering card\n"); 6621 dev_err(card->dev, "error registering card\n");
6608 return err; 6622 return err;
6609 } 6623 }
6610 6624
6611 snd_printdd("... yes now\n"); 6625 dev_dbg(card->dev, "... yes now\n");
6612 6626
6613 return 0; 6627 return 0;
6614} 6628}
@@ -6662,8 +6676,8 @@ static int snd_hdspm_create(struct snd_card *card,
6662 hdspm->card_name = "RME MADI"; 6676 hdspm->card_name = "RME MADI";
6663 hdspm->midiPorts = 3; 6677 hdspm->midiPorts = 3;
6664 } else { 6678 } else {
6665 snd_printk(KERN_ERR 6679 dev_err(card->dev,
6666 "HDSPM: unknown firmware revision %x\n", 6680 "unknown firmware revision %x\n",
6667 hdspm->firmware_rev); 6681 hdspm->firmware_rev);
6668 return -ENODEV; 6682 return -ENODEV;
6669 } 6683 }
@@ -6682,36 +6696,35 @@ static int snd_hdspm_create(struct snd_card *card,
6682 hdspm->port = pci_resource_start(pci, 0); 6696 hdspm->port = pci_resource_start(pci, 0);
6683 io_extent = pci_resource_len(pci, 0); 6697 io_extent = pci_resource_len(pci, 0);
6684 6698
6685 snd_printdd("grabbed memory region 0x%lx-0x%lx\n", 6699 dev_dbg(card->dev, "grabbed memory region 0x%lx-0x%lx\n",
6686 hdspm->port, hdspm->port + io_extent - 1); 6700 hdspm->port, hdspm->port + io_extent - 1);
6687 6701
6688 hdspm->iobase = ioremap_nocache(hdspm->port, io_extent); 6702 hdspm->iobase = ioremap_nocache(hdspm->port, io_extent);
6689 if (!hdspm->iobase) { 6703 if (!hdspm->iobase) {
6690 snd_printk(KERN_ERR "HDSPM: " 6704 dev_err(card->dev, "unable to remap region 0x%lx-0x%lx\n",
6691 "unable to remap region 0x%lx-0x%lx\n",
6692 hdspm->port, hdspm->port + io_extent - 1); 6705 hdspm->port, hdspm->port + io_extent - 1);
6693 return -EBUSY; 6706 return -EBUSY;
6694 } 6707 }
6695 snd_printdd("remapped region (0x%lx) 0x%lx-0x%lx\n", 6708 dev_dbg(card->dev, "remapped region (0x%lx) 0x%lx-0x%lx\n",
6696 (unsigned long)hdspm->iobase, hdspm->port, 6709 (unsigned long)hdspm->iobase, hdspm->port,
6697 hdspm->port + io_extent - 1); 6710 hdspm->port + io_extent - 1);
6698 6711
6699 if (request_irq(pci->irq, snd_hdspm_interrupt, 6712 if (request_irq(pci->irq, snd_hdspm_interrupt,
6700 IRQF_SHARED, KBUILD_MODNAME, hdspm)) { 6713 IRQF_SHARED, KBUILD_MODNAME, hdspm)) {
6701 snd_printk(KERN_ERR "HDSPM: unable to use IRQ %d\n", pci->irq); 6714 dev_err(card->dev, "unable to use IRQ %d\n", pci->irq);
6702 return -EBUSY; 6715 return -EBUSY;
6703 } 6716 }
6704 6717
6705 snd_printdd("use IRQ %d\n", pci->irq); 6718 dev_dbg(card->dev, "use IRQ %d\n", pci->irq);
6706 6719
6707 hdspm->irq = pci->irq; 6720 hdspm->irq = pci->irq;
6708 6721
6709 snd_printdd("kmalloc Mixer memory of %zd Bytes\n", 6722 dev_dbg(card->dev, "kmalloc Mixer memory of %zd Bytes\n",
6710 sizeof(struct hdspm_mixer)); 6723 sizeof(struct hdspm_mixer));
6711 hdspm->mixer = kzalloc(sizeof(struct hdspm_mixer), GFP_KERNEL); 6724 hdspm->mixer = kzalloc(sizeof(struct hdspm_mixer), GFP_KERNEL);
6712 if (!hdspm->mixer) { 6725 if (!hdspm->mixer) {
6713 snd_printk(KERN_ERR "HDSPM: " 6726 dev_err(card->dev,
6714 "unable to kmalloc Mixer memory of %d Bytes\n", 6727 "unable to kmalloc Mixer memory of %d Bytes\n",
6715 (int)sizeof(struct hdspm_mixer)); 6728 (int)sizeof(struct hdspm_mixer));
6716 return -ENOMEM; 6729 return -ENOMEM;
6717 } 6730 }
@@ -6780,14 +6793,14 @@ static int snd_hdspm_create(struct snd_card *card,
6780 hdspm->qs_out_channels = AIO_OUT_QS_CHANNELS; 6793 hdspm->qs_out_channels = AIO_OUT_QS_CHANNELS;
6781 6794
6782 if (0 == (hdspm_read(hdspm, HDSPM_statusRegister2) & HDSPM_s2_AEBI_D)) { 6795 if (0 == (hdspm_read(hdspm, HDSPM_statusRegister2) & HDSPM_s2_AEBI_D)) {
6783 snd_printk(KERN_INFO "HDSPM: AEB input board found\n"); 6796 dev_info(card->dev, "AEB input board found\n");
6784 hdspm->ss_in_channels += 4; 6797 hdspm->ss_in_channels += 4;
6785 hdspm->ds_in_channels += 4; 6798 hdspm->ds_in_channels += 4;
6786 hdspm->qs_in_channels += 4; 6799 hdspm->qs_in_channels += 4;
6787 } 6800 }
6788 6801
6789 if (0 == (hdspm_read(hdspm, HDSPM_statusRegister2) & HDSPM_s2_AEBO_D)) { 6802 if (0 == (hdspm_read(hdspm, HDSPM_statusRegister2) & HDSPM_s2_AEBO_D)) {
6790 snd_printk(KERN_INFO "HDSPM: AEB output board found\n"); 6803 dev_info(card->dev, "AEB output board found\n");
6791 hdspm->ss_out_channels += 4; 6804 hdspm->ss_out_channels += 4;
6792 hdspm->ds_out_channels += 4; 6805 hdspm->ds_out_channels += 4;
6793 hdspm->qs_out_channels += 4; 6806 hdspm->qs_out_channels += 4;
@@ -6854,7 +6867,7 @@ static int snd_hdspm_create(struct snd_card *card,
6854 if (NULL != hdspm->tco) { 6867 if (NULL != hdspm->tco) {
6855 hdspm_tco_write(hdspm); 6868 hdspm_tco_write(hdspm);
6856 } 6869 }
6857 snd_printk(KERN_INFO "HDSPM: AIO/RayDAT TCO module found\n"); 6870 dev_info(card->dev, "AIO/RayDAT TCO module found\n");
6858 } else { 6871 } else {
6859 hdspm->tco = NULL; 6872 hdspm->tco = NULL;
6860 } 6873 }
@@ -6869,7 +6882,7 @@ static int snd_hdspm_create(struct snd_card *card,
6869 if (NULL != hdspm->tco) { 6882 if (NULL != hdspm->tco) {
6870 hdspm_tco_write(hdspm); 6883 hdspm_tco_write(hdspm);
6871 } 6884 }
6872 snd_printk(KERN_INFO "HDSPM: MADI/AES TCO module found\n"); 6885 dev_info(card->dev, "MADI/AES TCO module found\n");
6873 } else { 6886 } else {
6874 hdspm->tco = NULL; 6887 hdspm->tco = NULL;
6875 } 6888 }
@@ -6951,7 +6964,7 @@ static int snd_hdspm_create(struct snd_card *card,
6951 } 6964 }
6952 } 6965 }
6953 6966
6954 snd_printdd("create alsa devices.\n"); 6967 dev_dbg(card->dev, "create alsa devices.\n");
6955 err = snd_hdspm_create_alsa_devices(card, hdspm); 6968 err = snd_hdspm_create_alsa_devices(card, hdspm);
6956 if (err < 0) 6969 if (err < 0)
6957 return err; 6970 return err;