aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/cthw20k2.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-05-14 09:19:30 -0400
committerTakashi Iwai <tiwai@suse.de>2009-05-14 09:19:30 -0400
commitb3e0afe61e8271a8d082478752a67e5c279c8f23 (patch)
tree697242a45d03482983caf8ba2d9c00d6e7b9e33a /sound/pci/ctxfi/cthw20k2.c
parent35b053becb64eba13f3ea5c8c51023997169ff34 (diff)
ALSA: ctxfi - Add prefix to debug prints
Added ctxfi: prefix to each debug print. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/cthw20k2.c')
-rw-r--r--sound/pci/ctxfi/cthw20k2.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c
index 9c2d38b4faa1..7c24c2ca96bd 100644
--- a/sound/pci/ctxfi/cthw20k2.c
+++ b/sound/pci/ctxfi/cthw20k2.c
@@ -1144,7 +1144,7 @@ static int hw_daio_init(struct hw *hw, const struct daio_conf *info)
1144 hw_write_20kx(hw, AUDIO_IO_TX_BLRCLK, 0x11111111); 1144 hw_write_20kx(hw, AUDIO_IO_TX_BLRCLK, 0x11111111);
1145 hw_write_20kx(hw, AUDIO_IO_RX_BLRCLK, 0); 1145 hw_write_20kx(hw, AUDIO_IO_RX_BLRCLK, 0);
1146 } else { 1146 } else {
1147 printk(KERN_ALERT "ERROR!!! Invalid sampling rate!!!\n"); 1147 printk(KERN_ALERT "ctxfi: ERROR!!! Invalid sampling rate!!!\n");
1148 return -EINVAL; 1148 return -EINVAL;
1149 } 1149 }
1150 1150
@@ -1197,7 +1197,8 @@ static int hw_trn_init(struct hw *hw, const struct trn_conf *info)
1197 1197
1198 /* Set up device page table */ 1198 /* Set up device page table */
1199 if ((~0UL) == info->vm_pgt_phys) { 1199 if ((~0UL) == info->vm_pgt_phys) {
1200 printk(KERN_ALERT "Wrong device page table page address!!!\n"); 1200 printk(KERN_ALERT "ctxfi: "
1201 "Wrong device page table page address!!!\n");
1201 return -1; 1202 return -1;
1202 } 1203 }
1203 1204
@@ -1314,7 +1315,7 @@ static int hw_pll_init(struct hw *hw, unsigned int rsr)
1314 break; 1315 break;
1315 } 1316 }
1316 if (i >= 1000) { 1317 if (i >= 1000) {
1317 printk(KERN_ALERT "PLL initialization failed!!!\n"); 1318 printk(KERN_ALERT "ctxfi: PLL initialization failed!!!\n");
1318 return -EBUSY; 1319 return -EBUSY;
1319 } 1320 }
1320 1321
@@ -1338,7 +1339,7 @@ static int hw_auto_init(struct hw *hw)
1338 break; 1339 break;
1339 } 1340 }
1340 if (!get_field(gctl, GCTL_AID)) { 1341 if (!get_field(gctl, GCTL_AID)) {
1341 printk(KERN_ALERT "Card Auto-init failed!!!\n"); 1342 printk(KERN_ALERT "ctxfi: Card Auto-init failed!!!\n");
1342 return -EBUSY; 1343 return -EBUSY;
1343 } 1344 }
1344 1345
@@ -1762,7 +1763,7 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1762 /* Initialize I2C */ 1763 /* Initialize I2C */
1763 err = I2CInit(hw, 0x1A, 1, 1); 1764 err = I2CInit(hw, 0x1A, 1, 1);
1764 if (err < 0) { 1765 if (err < 0) {
1765 printk(KERN_ALERT "Failure to acquire I2C!!!\n"); 1766 printk(KERN_ALERT "ctxfi: Failure to acquire I2C!!!\n");
1766 goto error; 1767 goto error;
1767 } 1768 }
1768 1769
@@ -1782,7 +1783,7 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1782 I2CWrite(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A), 1783 I2CWrite(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A),
1783 MAKE_WM8775_DATA(0x0A)); 1784 MAKE_WM8775_DATA(0x0A));
1784 } else { 1785 } else {
1785 printk(KERN_ALERT "Invalid master sampling " 1786 printk(KERN_ALERT "ctxfi: Invalid master sampling "
1786 "rate (msr %d)!!!\n", info->msr); 1787 "rate (msr %d)!!!\n", info->msr);
1787 err = -EINVAL; 1788 err = -EINVAL;
1788 goto error; 1789 goto error;
@@ -1820,7 +1821,7 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1820 I2CWrite(hw, MAKE_WM8775_ADDR(WM8775_AADCR, 0xCF), 1821 I2CWrite(hw, MAKE_WM8775_ADDR(WM8775_AADCR, 0xCF),
1821 MAKE_WM8775_DATA(0xCF)); /* No boost */ 1822 MAKE_WM8775_DATA(0xCF)); /* No boost */
1822 } else { 1823 } else {
1823 printk(KERN_ALERT "ERROR!!! Invalid input mux!!!\n"); 1824 printk(KERN_ALERT "ctxfi: ERROR!!! Invalid input mux!!!\n");
1824 err = -EINVAL; 1825 err = -EINVAL;
1825 goto error; 1826 goto error;
1826 } 1827 }
@@ -1852,7 +1853,7 @@ static int hw_card_start(struct hw *hw)
1852 dma_mask = CT_XFI_DMA_MASK; 1853 dma_mask = CT_XFI_DMA_MASK;
1853 if (pci_set_dma_mask(pci, dma_mask) < 0 || 1854 if (pci_set_dma_mask(pci, dma_mask) < 0 ||
1854 pci_set_consistent_dma_mask(pci, dma_mask) < 0) { 1855 pci_set_consistent_dma_mask(pci, dma_mask) < 0) {
1855 printk(KERN_ERR "architecture does not support PCI " 1856 printk(KERN_ERR "ctxfi: architecture does not support PCI "
1856 "busmaster DMA with mask 0x%x\n", dma_mask); 1857 "busmaster DMA with mask 0x%x\n", dma_mask);
1857 err = -ENXIO; 1858 err = -ENXIO;
1858 goto error1; 1859 goto error1;