aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-08-26 09:31:42 -0400
committerTakashi Iwai <tiwai@suse.de>2014-08-26 09:40:54 -0400
commite720b82027b99482ea5d1001a69bdf2200e86b79 (patch)
treef5550b5e8ec2309aec6b4ed9ede6fc949b3edfc9
parent57f2d8b797c4c8d9e65e3b9fae98246be5a93df3 (diff)
ALSA: ctxfi: prink replacement
as pr_* macros are more preffered over printk, so printk replaced with corresponding pr_err and pr_alert this patch will generate a warning from checkpatch for an unnecessary space before new line and has not been fixed as this patch is only for printk replacement. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/ctxfi/ctamixer.c4
-rw-r--r--sound/pci/ctxfi/ctatc.c20
-rw-r--r--sound/pci/ctxfi/ctdaio.c2
-rw-r--r--sound/pci/ctxfi/cthw20k1.c10
-rw-r--r--sound/pci/ctxfi/cthw20k2.c16
-rw-r--r--sound/pci/ctxfi/ctmixer.c4
-rw-r--r--sound/pci/ctxfi/ctresource.c12
-rw-r--r--sound/pci/ctxfi/ctsrc.c4
-rw-r--r--sound/pci/ctxfi/ctvmem.c4
-rw-r--r--sound/pci/ctxfi/xfi.c8
10 files changed, 42 insertions, 42 deletions
diff --git a/sound/pci/ctxfi/ctamixer.c b/sound/pci/ctxfi/ctamixer.c
index fee35cfc0c7f..fed6e6a57608 100644
--- a/sound/pci/ctxfi/ctamixer.c
+++ b/sound/pci/ctxfi/ctamixer.c
@@ -258,7 +258,7 @@ static int get_amixer_rsc(struct amixer_mgr *mgr,
258 } 258 }
259 spin_unlock_irqrestore(&mgr->mgr_lock, flags); 259 spin_unlock_irqrestore(&mgr->mgr_lock, flags);
260 if (err) { 260 if (err) {
261 printk(KERN_ERR "ctxfi: Can't meet AMIXER resource request!\n"); 261 pr_err("ctxfi: Can't meet AMIXER resource request!\n");
262 goto error; 262 goto error;
263 } 263 }
264 264
@@ -411,7 +411,7 @@ static int get_sum_rsc(struct sum_mgr *mgr,
411 } 411 }
412 spin_unlock_irqrestore(&mgr->mgr_lock, flags); 412 spin_unlock_irqrestore(&mgr->mgr_lock, flags);
413 if (err) { 413 if (err) {
414 printk(KERN_ERR "ctxfi: Can't meet SUM resource request!\n"); 414 pr_err("ctxfi: Can't meet SUM resource request!\n");
415 goto error; 415 goto error;
416 } 416 }
417 417
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c
index af632bd08323..ce9061aee587 100644
--- a/sound/pci/ctxfi/ctatc.c
+++ b/sound/pci/ctxfi/ctatc.c
@@ -185,7 +185,7 @@ static unsigned int convert_format(snd_pcm_format_t snd_format)
185 case SNDRV_PCM_FORMAT_FLOAT_LE: 185 case SNDRV_PCM_FORMAT_FLOAT_LE:
186 return SRC_SF_F32; 186 return SRC_SF_F32;
187 default: 187 default:
188 printk(KERN_ERR "ctxfi: not recognized snd format is %d \n", 188 pr_err("ctxfi: not recognized snd format is %d \n",
189 snd_format); 189 snd_format);
190 return SRC_SF_S16; 190 return SRC_SF_S16;
191 } 191 }
@@ -1282,7 +1282,7 @@ static int atc_identify_card(struct ct_atc *atc, unsigned int ssid)
1282 p = snd_pci_quirk_lookup_id(vendor_id, device_id, list); 1282 p = snd_pci_quirk_lookup_id(vendor_id, device_id, list);
1283 if (p) { 1283 if (p) {
1284 if (p->value < 0) { 1284 if (p->value < 0) {
1285 printk(KERN_ERR "ctxfi: " 1285 pr_err("ctxfi: "
1286 "Device %04x:%04x is black-listed\n", 1286 "Device %04x:%04x is black-listed\n",
1287 vendor_id, device_id); 1287 vendor_id, device_id);
1288 return -ENOENT; 1288 return -ENOENT;
@@ -1315,7 +1315,7 @@ int ct_atc_create_alsa_devs(struct ct_atc *atc)
1315 err = alsa_dev_funcs[i].create(atc, i, 1315 err = alsa_dev_funcs[i].create(atc, i,
1316 alsa_dev_funcs[i].public_name); 1316 alsa_dev_funcs[i].public_name);
1317 if (err) { 1317 if (err) {
1318 printk(KERN_ERR "ctxfi: " 1318 pr_err("ctxfi: "
1319 "Creating alsa device %d failed!\n", i); 1319 "Creating alsa device %d failed!\n", i);
1320 return err; 1320 return err;
1321 } 1321 }
@@ -1332,7 +1332,7 @@ static int atc_create_hw_devs(struct ct_atc *atc)
1332 1332
1333 err = create_hw_obj(atc->pci, atc->chip_type, atc->model, &hw); 1333 err = create_hw_obj(atc->pci, atc->chip_type, atc->model, &hw);
1334 if (err) { 1334 if (err) {
1335 printk(KERN_ERR "Failed to create hw obj!!!\n"); 1335 pr_err("Failed to create hw obj!!!\n");
1336 return err; 1336 return err;
1337 } 1337 }
1338 atc->hw = hw; 1338 atc->hw = hw;
@@ -1351,7 +1351,7 @@ static int atc_create_hw_devs(struct ct_atc *atc)
1351 1351
1352 err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]); 1352 err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]);
1353 if (err) { 1353 if (err) {
1354 printk(KERN_ERR "ctxfi: " 1354 pr_err("ctxfi: "
1355 "Failed to create rsc_mgr %d!!!\n", i); 1355 "Failed to create rsc_mgr %d!!!\n", i);
1356 return err; 1356 return err;
1357 } 1357 }
@@ -1399,7 +1399,7 @@ static int atc_get_resources(struct ct_atc *atc)
1399 err = daio_mgr->get_daio(daio_mgr, &da_desc, 1399 err = daio_mgr->get_daio(daio_mgr, &da_desc,
1400 (struct daio **)&atc->daios[i]); 1400 (struct daio **)&atc->daios[i]);
1401 if (err) { 1401 if (err) {
1402 printk(KERN_ERR "ctxfi: Failed to get DAIO " 1402 pr_err("ctxfi: Failed to get DAIO "
1403 "resource %d!!!\n", i); 1403 "resource %d!!!\n", i);
1404 return err; 1404 return err;
1405 } 1405 }
@@ -1603,7 +1603,7 @@ static int atc_resume(struct ct_atc *atc)
1603 /* Do hardware resume. */ 1603 /* Do hardware resume. */
1604 err = atc_hw_resume(atc); 1604 err = atc_hw_resume(atc);
1605 if (err < 0) { 1605 if (err < 0) {
1606 printk(KERN_ERR "ctxfi: pci_enable_device failed, " 1606 pr_err("ctxfi: pci_enable_device failed, "
1607 "disabling device\n"); 1607 "disabling device\n");
1608 snd_card_disconnect(atc->card); 1608 snd_card_disconnect(atc->card);
1609 return err; 1609 return err;
@@ -1701,7 +1701,7 @@ int ct_atc_create(struct snd_card *card, struct pci_dev *pci,
1701 /* Find card model */ 1701 /* Find card model */
1702 err = atc_identify_card(atc, ssid); 1702 err = atc_identify_card(atc, ssid);
1703 if (err < 0) { 1703 if (err < 0) {
1704 printk(KERN_ERR "ctatc: Card not recognised\n"); 1704 pr_err("ctatc: Card not recognised\n");
1705 goto error1; 1705 goto error1;
1706 } 1706 }
1707 1707
@@ -1717,7 +1717,7 @@ int ct_atc_create(struct snd_card *card, struct pci_dev *pci,
1717 1717
1718 err = ct_mixer_create(atc, (struct ct_mixer **)&atc->mixer); 1718 err = ct_mixer_create(atc, (struct ct_mixer **)&atc->mixer);
1719 if (err) { 1719 if (err) {
1720 printk(KERN_ERR "ctxfi: Failed to create mixer obj!!!\n"); 1720 pr_err("ctxfi: Failed to create mixer obj!!!\n");
1721 goto error1; 1721 goto error1;
1722 } 1722 }
1723 1723
@@ -1744,6 +1744,6 @@ int ct_atc_create(struct snd_card *card, struct pci_dev *pci,
1744 1744
1745error1: 1745error1:
1746 ct_atc_destroy(atc); 1746 ct_atc_destroy(atc);
1747 printk(KERN_ERR "ctxfi: Something wrong!!!\n"); 1747 pr_err("ctxfi: Something wrong!!!\n");
1748 return err; 1748 return err;
1749} 1749}
diff --git a/sound/pci/ctxfi/ctdaio.c b/sound/pci/ctxfi/ctdaio.c
index 84f86bf63b8f..6f0654ea3630 100644
--- a/sound/pci/ctxfi/ctdaio.c
+++ b/sound/pci/ctxfi/ctdaio.c
@@ -541,7 +541,7 @@ static int get_daio_rsc(struct daio_mgr *mgr,
541 err = daio_mgr_get_rsc(&mgr->mgr, desc->type); 541 err = daio_mgr_get_rsc(&mgr->mgr, desc->type);
542 spin_unlock_irqrestore(&mgr->mgr_lock, flags); 542 spin_unlock_irqrestore(&mgr->mgr_lock, flags);
543 if (err) { 543 if (err) {
544 printk(KERN_ERR "Can't meet DAIO resource request!\n"); 544 pr_err("Can't meet DAIO resource request!\n");
545 return err; 545 return err;
546 } 546 }
547 547
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c
index 6ac40beb49da..782641e77653 100644
--- a/sound/pci/ctxfi/cthw20k1.c
+++ b/sound/pci/ctxfi/cthw20k1.c
@@ -1268,7 +1268,7 @@ static int hw_trn_init(struct hw *hw, const struct trn_conf *info)
1268 1268
1269 /* Set up device page table */ 1269 /* Set up device page table */
1270 if ((~0UL) == info->vm_pgt_phys) { 1270 if ((~0UL) == info->vm_pgt_phys) {
1271 printk(KERN_ERR "Wrong device page table page address!\n"); 1271 pr_err("Wrong device page table page address!\n");
1272 return -1; 1272 return -1;
1273 } 1273 }
1274 1274
@@ -1327,7 +1327,7 @@ static int hw_pll_init(struct hw *hw, unsigned int rsr)
1327 mdelay(40); 1327 mdelay(40);
1328 } 1328 }
1329 if (i >= 3) { 1329 if (i >= 3) {
1330 printk(KERN_ALERT "PLL initialization failed!!!\n"); 1330 pr_alert("PLL initialization failed!!!\n");
1331 return -EBUSY; 1331 return -EBUSY;
1332 } 1332 }
1333 1333
@@ -1351,7 +1351,7 @@ static int hw_auto_init(struct hw *hw)
1351 break; 1351 break;
1352 } 1352 }
1353 if (!get_field(gctl, GCTL_AID)) { 1353 if (!get_field(gctl, GCTL_AID)) {
1354 printk(KERN_ALERT "Card Auto-init failed!!!\n"); 1354 pr_alert("Card Auto-init failed!!!\n");
1355 return -EBUSY; 1355 return -EBUSY;
1356 } 1356 }
1357 1357
@@ -1911,7 +1911,7 @@ static int hw_card_start(struct hw *hw)
1911 /* Set DMA transfer mask */ 1911 /* Set DMA transfer mask */
1912 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 || 1912 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
1913 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) { 1913 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
1914 printk(KERN_ERR "architecture does not support PCI " 1914 pr_err("architecture does not support PCI "
1915 "busmaster DMA with mask 0x%llx\n", 1915 "busmaster DMA with mask 0x%llx\n",
1916 CT_XFI_DMA_MASK); 1916 CT_XFI_DMA_MASK);
1917 err = -ENXIO; 1917 err = -ENXIO;
@@ -1942,7 +1942,7 @@ static int hw_card_start(struct hw *hw)
1942 err = request_irq(pci->irq, ct_20k1_interrupt, IRQF_SHARED, 1942 err = request_irq(pci->irq, ct_20k1_interrupt, IRQF_SHARED,
1943 KBUILD_MODNAME, hw); 1943 KBUILD_MODNAME, hw);
1944 if (err < 0) { 1944 if (err < 0) {
1945 printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq); 1945 pr_err("XFi: Cannot get irq %d\n", pci->irq);
1946 goto error2; 1946 goto error2;
1947 } 1947 }
1948 hw->irq = pci->irq; 1948 hw->irq = pci->irq;
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c
index b1438861d38a..8a72fac929ca 100644
--- a/sound/pci/ctxfi/cthw20k2.c
+++ b/sound/pci/ctxfi/cthw20k2.c
@@ -1187,7 +1187,7 @@ static int hw_daio_init(struct hw *hw, const struct daio_conf *info)
1187 hw_write_20kx(hw, AUDIO_IO_TX_BLRCLK, 0x21212121); 1187 hw_write_20kx(hw, AUDIO_IO_TX_BLRCLK, 0x21212121);
1188 hw_write_20kx(hw, AUDIO_IO_RX_BLRCLK, 0); 1188 hw_write_20kx(hw, AUDIO_IO_RX_BLRCLK, 0);
1189 } else { 1189 } else {
1190 printk(KERN_ALERT "ctxfi: ERROR!!! Invalid sampling rate!!!\n"); 1190 pr_alert("ctxfi: ERROR!!! Invalid sampling rate!!!\n");
1191 return -EINVAL; 1191 return -EINVAL;
1192 } 1192 }
1193 1193
@@ -1246,7 +1246,7 @@ static int hw_trn_init(struct hw *hw, const struct trn_conf *info)
1246 1246
1247 /* Set up device page table */ 1247 /* Set up device page table */
1248 if ((~0UL) == info->vm_pgt_phys) { 1248 if ((~0UL) == info->vm_pgt_phys) {
1249 printk(KERN_ALERT "ctxfi: " 1249 pr_alert("ctxfi: "
1250 "Wrong device page table page address!!!\n"); 1250 "Wrong device page table page address!!!\n");
1251 return -1; 1251 return -1;
1252 } 1252 }
@@ -1352,7 +1352,7 @@ static int hw_pll_init(struct hw *hw, unsigned int rsr)
1352 break; 1352 break;
1353 } 1353 }
1354 if (i >= 1000) { 1354 if (i >= 1000) {
1355 printk(KERN_ALERT "ctxfi: PLL initialization failed!!!\n"); 1355 pr_alert("ctxfi: PLL initialization failed!!!\n");
1356 return -EBUSY; 1356 return -EBUSY;
1357 } 1357 }
1358 1358
@@ -1376,7 +1376,7 @@ static int hw_auto_init(struct hw *hw)
1376 break; 1376 break;
1377 } 1377 }
1378 if (!get_field(gctl, GCTL_AID)) { 1378 if (!get_field(gctl, GCTL_AID)) {
1379 printk(KERN_ALERT "ctxfi: Card Auto-init failed!!!\n"); 1379 pr_alert("ctxfi: Card Auto-init failed!!!\n");
1380 return -EBUSY; 1380 return -EBUSY;
1381 } 1381 }
1382 1382
@@ -1847,7 +1847,7 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1847 /* Initialize I2C */ 1847 /* Initialize I2C */
1848 err = hw20k2_i2c_init(hw, 0x1A, 1, 1); 1848 err = hw20k2_i2c_init(hw, 0x1A, 1, 1);
1849 if (err < 0) { 1849 if (err < 0) {
1850 printk(KERN_ALERT "ctxfi: Failure to acquire I2C!!!\n"); 1850 pr_alert("ctxfi: Failure to acquire I2C!!!\n");
1851 goto error; 1851 goto error;
1852 } 1852 }
1853 1853
@@ -1890,7 +1890,7 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1890 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A), 1890 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A),
1891 MAKE_WM8775_DATA(0x0A)); 1891 MAKE_WM8775_DATA(0x0A));
1892 } else { 1892 } else {
1893 printk(KERN_ALERT "ctxfi: Invalid master sampling " 1893 pr_alert("ctxfi: Invalid master sampling "
1894 "rate (msr %d)!!!\n", info->msr); 1894 "rate (msr %d)!!!\n", info->msr);
1895 err = -EINVAL; 1895 err = -EINVAL;
1896 goto error; 1896 goto error;
@@ -2034,7 +2034,7 @@ static int hw_card_start(struct hw *hw)
2034 /* Set DMA transfer mask */ 2034 /* Set DMA transfer mask */
2035 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 || 2035 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
2036 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) { 2036 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
2037 printk(KERN_ERR "ctxfi: architecture does not support PCI " 2037 pr_err("ctxfi: architecture does not support PCI "
2038 "busmaster DMA with mask 0x%llx\n", CT_XFI_DMA_MASK); 2038 "busmaster DMA with mask 0x%llx\n", CT_XFI_DMA_MASK);
2039 err = -ENXIO; 2039 err = -ENXIO;
2040 goto error1; 2040 goto error1;
@@ -2063,7 +2063,7 @@ static int hw_card_start(struct hw *hw)
2063 err = request_irq(pci->irq, ct_20k2_interrupt, IRQF_SHARED, 2063 err = request_irq(pci->irq, ct_20k2_interrupt, IRQF_SHARED,
2064 KBUILD_MODNAME, hw); 2064 KBUILD_MODNAME, hw);
2065 if (err < 0) { 2065 if (err < 0) {
2066 printk(KERN_ERR "XFi: Cannot get irq %d\n", pci->irq); 2066 pr_err("XFi: Cannot get irq %d\n", pci->irq);
2067 goto error2; 2067 goto error2;
2068 } 2068 }
2069 hw->irq = pci->irq; 2069 hw->irq = pci->irq;
diff --git a/sound/pci/ctxfi/ctmixer.c b/sound/pci/ctxfi/ctmixer.c
index 48fe0e39c2be..8d986e45ecf6 100644
--- a/sound/pci/ctxfi/ctmixer.c
+++ b/sound/pci/ctxfi/ctmixer.c
@@ -854,7 +854,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer)
854 for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) { 854 for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) {
855 err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum); 855 err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum);
856 if (err) { 856 if (err) {
857 printk(KERN_ERR "ctxfi:Failed to get sum resources for " 857 pr_err("ctxfi:Failed to get sum resources for "
858 "front output!\n"); 858 "front output!\n");
859 break; 859 break;
860 } 860 }
@@ -869,7 +869,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer)
869 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { 869 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) {
870 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer); 870 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer);
871 if (err) { 871 if (err) {
872 printk(KERN_ERR "ctxfi:Failed to get amixer resources " 872 pr_err("ctxfi:Failed to get amixer resources "
873 "for mixer obj!\n"); 873 "for mixer obj!\n");
874 break; 874 break;
875 } 875 }
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
index 7dfaf67344d4..11ac934dcefd 100644
--- a/sound/pci/ctxfi/ctresource.c
+++ b/sound/pci/ctxfi/ctresource.c
@@ -162,13 +162,13 @@ int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
162 case DAIO: 162 case DAIO:
163 break; 163 break;
164 default: 164 default:
165 printk(KERN_ERR 165 pr_err(
166 "ctxfi: Invalid resource type value %d!\n", type); 166 "ctxfi: Invalid resource type value %d!\n", type);
167 return -EINVAL; 167 return -EINVAL;
168 } 168 }
169 169
170 if (err) { 170 if (err) {
171 printk(KERN_ERR 171 pr_err(
172 "ctxfi: Failed to get resource control block!\n"); 172 "ctxfi: Failed to get resource control block!\n");
173 return err; 173 return err;
174 } 174 }
@@ -192,7 +192,7 @@ int rsc_uninit(struct rsc *rsc)
192 case DAIO: 192 case DAIO:
193 break; 193 break;
194 default: 194 default:
195 printk(KERN_ERR "ctxfi: " 195 pr_err("ctxfi: "
196 "Invalid resource type value %d!\n", rsc->type); 196 "Invalid resource type value %d!\n", rsc->type);
197 break; 197 break;
198 } 198 }
@@ -235,14 +235,14 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
235 case SUM: 235 case SUM:
236 break; 236 break;
237 default: 237 default:
238 printk(KERN_ERR 238 pr_err(
239 "ctxfi: Invalid resource type value %d!\n", type); 239 "ctxfi: Invalid resource type value %d!\n", type);
240 err = -EINVAL; 240 err = -EINVAL;
241 goto error; 241 goto error;
242 } 242 }
243 243
244 if (err) { 244 if (err) {
245 printk(KERN_ERR 245 pr_err(
246 "ctxfi: Failed to get manager control block!\n"); 246 "ctxfi: Failed to get manager control block!\n");
247 goto error; 247 goto error;
248 } 248 }
@@ -286,7 +286,7 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
286 case SUM: 286 case SUM:
287 break; 287 break;
288 default: 288 default:
289 printk(KERN_ERR "ctxfi: " 289 pr_err("ctxfi: "
290 "Invalid resource type value %d!\n", mgr->type); 290 "Invalid resource type value %d!\n", mgr->type);
291 break; 291 break;
292 } 292 }
diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c
index 6e77e86307c2..19df9b4ed800 100644
--- a/sound/pci/ctxfi/ctsrc.c
+++ b/sound/pci/ctxfi/ctsrc.c
@@ -431,7 +431,7 @@ get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc)
431 431
432 spin_unlock_irqrestore(&mgr->mgr_lock, flags); 432 spin_unlock_irqrestore(&mgr->mgr_lock, flags);
433 if (err) { 433 if (err) {
434 printk(KERN_ERR "ctxfi: Can't meet SRC resource request!\n"); 434 pr_err("ctxfi: Can't meet SRC resource request!\n");
435 return err; 435 return err;
436 } 436 }
437 437
@@ -739,7 +739,7 @@ static int get_srcimp_rsc(struct srcimp_mgr *mgr,
739 } 739 }
740 spin_unlock_irqrestore(&mgr->mgr_lock, flags); 740 spin_unlock_irqrestore(&mgr->mgr_lock, flags);
741 if (err) { 741 if (err) {
742 printk(KERN_ERR "ctxfi: Can't meet SRCIMP resource request!\n"); 742 pr_err("ctxfi: Can't meet SRCIMP resource request!\n");
743 goto error1; 743 goto error1;
744 } 744 }
745 745
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c
index 6109490b83e8..5ea015bec793 100644
--- a/sound/pci/ctxfi/ctvmem.c
+++ b/sound/pci/ctxfi/ctvmem.c
@@ -36,7 +36,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size)
36 36
37 size = CT_PAGE_ALIGN(size); 37 size = CT_PAGE_ALIGN(size);
38 if (size > vm->size) { 38 if (size > vm->size) {
39 printk(KERN_ERR "ctxfi: Fail! No sufficient device virtual " 39 pr_err("ctxfi: Fail! No sufficient device virtual "
40 "memory space available!\n"); 40 "memory space available!\n");
41 return NULL; 41 return NULL;
42 } 42 }
@@ -132,7 +132,7 @@ ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size)
132 132
133 block = get_vm_block(vm, size); 133 block = get_vm_block(vm, size);
134 if (block == NULL) { 134 if (block == NULL) {
135 printk(KERN_ERR "ctxfi: No virtual memory block that is big " 135 pr_err("ctxfi: No virtual memory block that is big "
136 "enough to allocate!\n"); 136 "enough to allocate!\n");
137 return NULL; 137 return NULL;
138 } 138 }
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c
index 8f8b566a1b35..af8c49836000 100644
--- a/sound/pci/ctxfi/xfi.c
+++ b/sound/pci/ctxfi/xfi.c
@@ -76,16 +76,16 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
76 if (err) 76 if (err)
77 return err; 77 return err;
78 if ((reference_rate != 48000) && (reference_rate != 44100)) { 78 if ((reference_rate != 48000) && (reference_rate != 44100)) {
79 printk(KERN_ERR "ctxfi: Invalid reference_rate value %u!!!\n", 79 pr_err("ctxfi: Invalid reference_rate value %u!!!\n",
80 reference_rate); 80 reference_rate);
81 printk(KERN_ERR "ctxfi: The valid values for reference_rate " 81 pr_err("ctxfi: The valid values for reference_rate "
82 "are 48000 and 44100, Value 48000 is assumed.\n"); 82 "are 48000 and 44100, Value 48000 is assumed.\n");
83 reference_rate = 48000; 83 reference_rate = 48000;
84 } 84 }
85 if ((multiple != 1) && (multiple != 2) && (multiple != 4)) { 85 if ((multiple != 1) && (multiple != 2) && (multiple != 4)) {
86 printk(KERN_ERR "ctxfi: Invalid multiple value %u!!!\n", 86 pr_err("ctxfi: Invalid multiple value %u!!!\n",
87 multiple); 87 multiple);
88 printk(KERN_ERR "ctxfi: The valid values for multiple are " 88 pr_err("ctxfi: The valid values for multiple are "
89 "1, 2 and 4, Value 2 is assumed.\n"); 89 "1, 2 and 4, Value 2 is assumed.\n");
90 multiple = 2; 90 multiple = 2;
91 } 91 }