aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-08-26 09:31:43 -0400
committerTakashi Iwai <tiwai@suse.de>2014-08-26 09:41:07 -0400
commit62afa853cb91288e85a8da6351bd29d798402308 (patch)
tree1c561ea2e6821c15513162382c7524370f053605 /sound/pci
parente720b82027b99482ea5d1001a69bdf2200e86b79 (diff)
ALSA: ctxfi: fix broken user-visible string
as broken user-visible strings breaks the ability to grep for them , so this patch fixes the broken user-visible strings Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/ctxfi/ctatc.c18
-rw-r--r--sound/pci/ctxfi/cthw20k1.c3
-rw-r--r--sound/pci/ctxfi/cthw20k2.c11
-rw-r--r--sound/pci/ctxfi/ctmixer.c6
-rw-r--r--sound/pci/ctxfi/ctresource.c20
-rw-r--r--sound/pci/ctxfi/ctvmem.c6
-rw-r--r--sound/pci/ctxfi/xfi.c6
7 files changed, 27 insertions, 43 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c
index ce9061aee587..d92a08c7a39c 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 pr_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,8 +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 pr_err("ctxfi: " 1285 pr_err("ctxfi: Device %04x:%04x is black-listed\n",
1286 "Device %04x:%04x is black-listed\n",
1287 vendor_id, device_id); 1286 vendor_id, device_id);
1288 return -ENOENT; 1287 return -ENOENT;
1289 } 1288 }
@@ -1315,8 +1314,7 @@ int ct_atc_create_alsa_devs(struct ct_atc *atc)
1315 err = alsa_dev_funcs[i].create(atc, i, 1314 err = alsa_dev_funcs[i].create(atc, i,
1316 alsa_dev_funcs[i].public_name); 1315 alsa_dev_funcs[i].public_name);
1317 if (err) { 1316 if (err) {
1318 pr_err("ctxfi: " 1317 pr_err("ctxfi: Creating alsa device %d failed!\n", i);
1319 "Creating alsa device %d failed!\n", i);
1320 return err; 1318 return err;
1321 } 1319 }
1322 } 1320 }
@@ -1351,8 +1349,7 @@ static int atc_create_hw_devs(struct ct_atc *atc)
1351 1349
1352 err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]); 1350 err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]);
1353 if (err) { 1351 if (err) {
1354 pr_err("ctxfi: " 1352 pr_err("ctxfi: Failed to create rsc_mgr %d!!!\n", i);
1355 "Failed to create rsc_mgr %d!!!\n", i);
1356 return err; 1353 return err;
1357 } 1354 }
1358 } 1355 }
@@ -1399,8 +1396,8 @@ static int atc_get_resources(struct ct_atc *atc)
1399 err = daio_mgr->get_daio(daio_mgr, &da_desc, 1396 err = daio_mgr->get_daio(daio_mgr, &da_desc,
1400 (struct daio **)&atc->daios[i]); 1397 (struct daio **)&atc->daios[i]);
1401 if (err) { 1398 if (err) {
1402 pr_err("ctxfi: Failed to get DAIO " 1399 pr_err("ctxfi: Failed to get DAIO resource %d!!!\n",
1403 "resource %d!!!\n", i); 1400 i);
1404 return err; 1401 return err;
1405 } 1402 }
1406 atc->n_daio++; 1403 atc->n_daio++;
@@ -1603,8 +1600,7 @@ static int atc_resume(struct ct_atc *atc)
1603 /* Do hardware resume. */ 1600 /* Do hardware resume. */
1604 err = atc_hw_resume(atc); 1601 err = atc_hw_resume(atc);
1605 if (err < 0) { 1602 if (err < 0) {
1606 pr_err("ctxfi: pci_enable_device failed, " 1603 pr_err("ctxfi: pci_enable_device failed, disabling device\n");
1607 "disabling device\n");
1608 snd_card_disconnect(atc->card); 1604 snd_card_disconnect(atc->card);
1609 return err; 1605 return err;
1610 } 1606 }
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c
index 782641e77653..71d496f780e3 100644
--- a/sound/pci/ctxfi/cthw20k1.c
+++ b/sound/pci/ctxfi/cthw20k1.c
@@ -1911,8 +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 pr_err("architecture does not support PCI " 1914 pr_err("architecture does not support PCI busmaster DMA with mask 0x%llx\n",
1915 "busmaster DMA with mask 0x%llx\n",
1916 CT_XFI_DMA_MASK); 1915 CT_XFI_DMA_MASK);
1917 err = -ENXIO; 1916 err = -ENXIO;
1918 goto error1; 1917 goto error1;
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c
index 8a72fac929ca..df2d8c5eb926 100644
--- a/sound/pci/ctxfi/cthw20k2.c
+++ b/sound/pci/ctxfi/cthw20k2.c
@@ -1246,8 +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 pr_alert("ctxfi: " 1249 pr_alert("ctxfi: Wrong device page table page address!!!\n");
1250 "Wrong device page table page address!!!\n");
1251 return -1; 1250 return -1;
1252 } 1251 }
1253 1252
@@ -1890,8 +1889,8 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
1890 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A), 1889 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A),
1891 MAKE_WM8775_DATA(0x0A)); 1890 MAKE_WM8775_DATA(0x0A));
1892 } else { 1891 } else {
1893 pr_alert("ctxfi: Invalid master sampling " 1892 pr_alert("ctxfi: Invalid master sampling rate (msr %d)!!!\n",
1894 "rate (msr %d)!!!\n", info->msr); 1893 info->msr);
1895 err = -EINVAL; 1894 err = -EINVAL;
1896 goto error; 1895 goto error;
1897 } 1896 }
@@ -2034,8 +2033,8 @@ static int hw_card_start(struct hw *hw)
2034 /* Set DMA transfer mask */ 2033 /* Set DMA transfer mask */
2035 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 || 2034 if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
2036 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) { 2035 pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
2037 pr_err("ctxfi: architecture does not support PCI " 2036 pr_err("ctxfi: architecture does not support PCI busmaster DMA with mask 0x%llx\n",
2038 "busmaster DMA with mask 0x%llx\n", CT_XFI_DMA_MASK); 2037 CT_XFI_DMA_MASK);
2039 err = -ENXIO; 2038 err = -ENXIO;
2040 goto error1; 2039 goto error1;
2041 } 2040 }
diff --git a/sound/pci/ctxfi/ctmixer.c b/sound/pci/ctxfi/ctmixer.c
index 8d986e45ecf6..017fa91706d4 100644
--- a/sound/pci/ctxfi/ctmixer.c
+++ b/sound/pci/ctxfi/ctmixer.c
@@ -854,8 +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 pr_err("ctxfi:Failed to get sum resources for " 857 pr_err("ctxfi:Failed to get sum resources for front output!\n");
858 "front output!\n");
859 break; 858 break;
860 } 859 }
861 mixer->sums[i] = sum; 860 mixer->sums[i] = sum;
@@ -869,8 +868,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer)
869 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { 868 for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) {
870 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer); 869 err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer);
871 if (err) { 870 if (err) {
872 pr_err("ctxfi:Failed to get amixer resources " 871 pr_err("ctxfi:Failed to get amixer resources for mixer obj!\n");
873 "for mixer obj!\n");
874 break; 872 break;
875 } 873 }
876 mixer->amixers[i] = amixer; 874 mixer->amixers[i] = amixer;
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
index 11ac934dcefd..e49d2be1bfd4 100644
--- a/sound/pci/ctxfi/ctresource.c
+++ b/sound/pci/ctxfi/ctresource.c
@@ -162,14 +162,12 @@ 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 pr_err( 165 pr_err("ctxfi: Invalid resource type value %d!\n", type);
166 "ctxfi: Invalid resource type value %d!\n", type);
167 return -EINVAL; 166 return -EINVAL;
168 } 167 }
169 168
170 if (err) { 169 if (err) {
171 pr_err( 170 pr_err("ctxfi: Failed to get resource control block!\n");
172 "ctxfi: Failed to get resource control block!\n");
173 return err; 171 return err;
174 } 172 }
175 173
@@ -192,8 +190,8 @@ int rsc_uninit(struct rsc *rsc)
192 case DAIO: 190 case DAIO:
193 break; 191 break;
194 default: 192 default:
195 pr_err("ctxfi: " 193 pr_err("ctxfi: Invalid resource type value %d!\n",
196 "Invalid resource type value %d!\n", rsc->type); 194 rsc->type);
197 break; 195 break;
198 } 196 }
199 197
@@ -235,15 +233,13 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
235 case SUM: 233 case SUM:
236 break; 234 break;
237 default: 235 default:
238 pr_err( 236 pr_err("ctxfi: Invalid resource type value %d!\n", type);
239 "ctxfi: Invalid resource type value %d!\n", type);
240 err = -EINVAL; 237 err = -EINVAL;
241 goto error; 238 goto error;
242 } 239 }
243 240
244 if (err) { 241 if (err) {
245 pr_err( 242 pr_err("ctxfi: Failed to get manager control block!\n");
246 "ctxfi: Failed to get manager control block!\n");
247 goto error; 243 goto error;
248 } 244 }
249 245
@@ -286,8 +282,8 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
286 case SUM: 282 case SUM:
287 break; 283 break;
288 default: 284 default:
289 pr_err("ctxfi: " 285 pr_err("ctxfi: Invalid resource type value %d!\n",
290 "Invalid resource type value %d!\n", mgr->type); 286 mgr->type);
291 break; 287 break;
292 } 288 }
293 289
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c
index 5ea015bec793..38163f52dd5f 100644
--- a/sound/pci/ctxfi/ctvmem.c
+++ b/sound/pci/ctxfi/ctvmem.c
@@ -36,8 +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 pr_err("ctxfi: Fail! No sufficient device virtual " 39 pr_err("ctxfi: Fail! No sufficient device virtual memory space available!\n");
40 "memory space available!\n");
41 return NULL; 40 return NULL;
42 } 41 }
43 42
@@ -132,8 +131,7 @@ ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size)
132 131
133 block = get_vm_block(vm, size); 132 block = get_vm_block(vm, size);
134 if (block == NULL) { 133 if (block == NULL) {
135 pr_err("ctxfi: No virtual memory block that is big " 134 pr_err("ctxfi: No virtual memory block that is big enough to allocate!\n");
136 "enough to allocate!\n");
137 return NULL; 135 return NULL;
138 } 136 }
139 137
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c
index af8c49836000..35e85ba80656 100644
--- a/sound/pci/ctxfi/xfi.c
+++ b/sound/pci/ctxfi/xfi.c
@@ -78,15 +78,13 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
78 if ((reference_rate != 48000) && (reference_rate != 44100)) { 78 if ((reference_rate != 48000) && (reference_rate != 44100)) {
79 pr_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 pr_err("ctxfi: The valid values for reference_rate " 81 pr_err("ctxfi: The valid values for reference_rate are 48000 and 44100, Value 48000 is assumed.\n");
82 "are 48000 and 44100, Value 48000 is assumed.\n");
83 reference_rate = 48000; 82 reference_rate = 48000;
84 } 83 }
85 if ((multiple != 1) && (multiple != 2) && (multiple != 4)) { 84 if ((multiple != 1) && (multiple != 2) && (multiple != 4)) {
86 pr_err("ctxfi: Invalid multiple value %u!!!\n", 85 pr_err("ctxfi: Invalid multiple value %u!!!\n",
87 multiple); 86 multiple);
88 pr_err("ctxfi: The valid values for multiple are " 87 pr_err("ctxfi: The valid values for multiple are 1, 2 and 4, Value 2 is assumed.\n");
89 "1, 2 and 4, Value 2 is assumed.\n");
90 multiple = 2; 88 multiple = 2;
91 } 89 }
92 err = ct_atc_create(card, pci, reference_rate, multiple, 90 err = ct_atc_create(card, pci, reference_rate, multiple,