Commit 62afa853 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Takashi Iwai

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e720b820
...@@ -185,7 +185,7 @@ static unsigned int convert_format(snd_pcm_format_t snd_format) ...@@ -185,7 +185,7 @@ static unsigned int convert_format(snd_pcm_format_t snd_format)
case SNDRV_PCM_FORMAT_FLOAT_LE: case SNDRV_PCM_FORMAT_FLOAT_LE:
return SRC_SF_F32; return SRC_SF_F32;
default: default:
pr_err("ctxfi: not recognized snd format is %d \n", pr_err("ctxfi: not recognized snd format is %d\n",
snd_format); snd_format);
return SRC_SF_S16; return SRC_SF_S16;
} }
...@@ -1282,8 +1282,7 @@ static int atc_identify_card(struct ct_atc *atc, unsigned int ssid) ...@@ -1282,8 +1282,7 @@ static int atc_identify_card(struct ct_atc *atc, unsigned int ssid)
p = snd_pci_quirk_lookup_id(vendor_id, device_id, list); p = snd_pci_quirk_lookup_id(vendor_id, device_id, list);
if (p) { if (p) {
if (p->value < 0) { if (p->value < 0) {
pr_err("ctxfi: " pr_err("ctxfi: Device %04x:%04x is black-listed\n",
"Device %04x:%04x is black-listed\n",
vendor_id, device_id); vendor_id, device_id);
return -ENOENT; return -ENOENT;
} }
...@@ -1315,8 +1314,7 @@ int ct_atc_create_alsa_devs(struct ct_atc *atc) ...@@ -1315,8 +1314,7 @@ int ct_atc_create_alsa_devs(struct ct_atc *atc)
err = alsa_dev_funcs[i].create(atc, i, err = alsa_dev_funcs[i].create(atc, i,
alsa_dev_funcs[i].public_name); alsa_dev_funcs[i].public_name);
if (err) { if (err) {
pr_err("ctxfi: " pr_err("ctxfi: Creating alsa device %d failed!\n", i);
"Creating alsa device %d failed!\n", i);
return err; return err;
} }
} }
...@@ -1351,8 +1349,7 @@ static int atc_create_hw_devs(struct ct_atc *atc) ...@@ -1351,8 +1349,7 @@ static int atc_create_hw_devs(struct ct_atc *atc)
err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]); err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]);
if (err) { if (err) {
pr_err("ctxfi: " pr_err("ctxfi: Failed to create rsc_mgr %d!!!\n", i);
"Failed to create rsc_mgr %d!!!\n", i);
return err; return err;
} }
} }
...@@ -1399,8 +1396,8 @@ static int atc_get_resources(struct ct_atc *atc) ...@@ -1399,8 +1396,8 @@ static int atc_get_resources(struct ct_atc *atc)
err = daio_mgr->get_daio(daio_mgr, &da_desc, err = daio_mgr->get_daio(daio_mgr, &da_desc,
(struct daio **)&atc->daios[i]); (struct daio **)&atc->daios[i]);
if (err) { if (err) {
pr_err("ctxfi: Failed to get DAIO " pr_err("ctxfi: Failed to get DAIO resource %d!!!\n",
"resource %d!!!\n", i); i);
return err; return err;
} }
atc->n_daio++; atc->n_daio++;
...@@ -1603,8 +1600,7 @@ static int atc_resume(struct ct_atc *atc) ...@@ -1603,8 +1600,7 @@ static int atc_resume(struct ct_atc *atc)
/* Do hardware resume. */ /* Do hardware resume. */
err = atc_hw_resume(atc); err = atc_hw_resume(atc);
if (err < 0) { if (err < 0) {
pr_err("ctxfi: pci_enable_device failed, " pr_err("ctxfi: pci_enable_device failed, disabling device\n");
"disabling device\n");
snd_card_disconnect(atc->card); snd_card_disconnect(atc->card);
return err; return err;
} }
......
...@@ -1911,8 +1911,7 @@ static int hw_card_start(struct hw *hw) ...@@ -1911,8 +1911,7 @@ static int hw_card_start(struct hw *hw)
/* Set DMA transfer mask */ /* Set DMA transfer mask */
if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 || if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) { pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
pr_err("architecture does not support PCI " pr_err("architecture does not support PCI busmaster DMA with mask 0x%llx\n",
"busmaster DMA with mask 0x%llx\n",
CT_XFI_DMA_MASK); CT_XFI_DMA_MASK);
err = -ENXIO; err = -ENXIO;
goto error1; goto error1;
......
...@@ -1246,8 +1246,7 @@ static int hw_trn_init(struct hw *hw, const struct trn_conf *info) ...@@ -1246,8 +1246,7 @@ static int hw_trn_init(struct hw *hw, const struct trn_conf *info)
/* Set up device page table */ /* Set up device page table */
if ((~0UL) == info->vm_pgt_phys) { if ((~0UL) == info->vm_pgt_phys) {
pr_alert("ctxfi: " pr_alert("ctxfi: Wrong device page table page address!!!\n");
"Wrong device page table page address!!!\n");
return -1; return -1;
} }
...@@ -1890,8 +1889,8 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info) ...@@ -1890,8 +1889,8 @@ static int hw_adc_init(struct hw *hw, const struct adc_conf *info)
hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A), hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_MMC, 0x0A),
MAKE_WM8775_DATA(0x0A)); MAKE_WM8775_DATA(0x0A));
} else { } else {
pr_alert("ctxfi: Invalid master sampling " pr_alert("ctxfi: Invalid master sampling rate (msr %d)!!!\n",
"rate (msr %d)!!!\n", info->msr); info->msr);
err = -EINVAL; err = -EINVAL;
goto error; goto error;
} }
...@@ -2034,8 +2033,8 @@ static int hw_card_start(struct hw *hw) ...@@ -2034,8 +2033,8 @@ static int hw_card_start(struct hw *hw)
/* Set DMA transfer mask */ /* Set DMA transfer mask */
if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 || if (pci_set_dma_mask(pci, CT_XFI_DMA_MASK) < 0 ||
pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) { pci_set_consistent_dma_mask(pci, CT_XFI_DMA_MASK) < 0) {
pr_err("ctxfi: architecture does not support PCI " pr_err("ctxfi: architecture does not support PCI busmaster DMA with mask 0x%llx\n",
"busmaster DMA with mask 0x%llx\n", CT_XFI_DMA_MASK); CT_XFI_DMA_MASK);
err = -ENXIO; err = -ENXIO;
goto error1; goto error1;
} }
......
...@@ -854,8 +854,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer) ...@@ -854,8 +854,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer)
for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) { for (i = 0; i < (NUM_CT_SUMS * CHN_NUM); i++) {
err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum); err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum);
if (err) { if (err) {
pr_err("ctxfi:Failed to get sum resources for " pr_err("ctxfi:Failed to get sum resources for front output!\n");
"front output!\n");
break; break;
} }
mixer->sums[i] = sum; mixer->sums[i] = sum;
...@@ -869,8 +868,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer) ...@@ -869,8 +868,7 @@ static int ct_mixer_get_resources(struct ct_mixer *mixer)
for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) { for (i = 0; i < (NUM_CT_AMIXERS * CHN_NUM); i++) {
err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer); err = amixer_mgr->get_amixer(amixer_mgr, &am_desc, &amixer);
if (err) { if (err) {
pr_err("ctxfi:Failed to get amixer resources " pr_err("ctxfi:Failed to get amixer resources for mixer obj!\n");
"for mixer obj!\n");
break; break;
} }
mixer->amixers[i] = amixer; mixer->amixers[i] = amixer;
......
...@@ -162,14 +162,12 @@ int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw) ...@@ -162,14 +162,12 @@ int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
case DAIO: case DAIO:
break; break;
default: default:
pr_err( pr_err("ctxfi: Invalid resource type value %d!\n", type);
"ctxfi: Invalid resource type value %d!\n", type);
return -EINVAL; return -EINVAL;
} }
if (err) { if (err) {
pr_err( pr_err("ctxfi: Failed to get resource control block!\n");
"ctxfi: Failed to get resource control block!\n");
return err; return err;
} }
...@@ -192,8 +190,8 @@ int rsc_uninit(struct rsc *rsc) ...@@ -192,8 +190,8 @@ int rsc_uninit(struct rsc *rsc)
case DAIO: case DAIO:
break; break;
default: default:
pr_err("ctxfi: " pr_err("ctxfi: Invalid resource type value %d!\n",
"Invalid resource type value %d!\n", rsc->type); rsc->type);
break; break;
} }
...@@ -235,15 +233,13 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, ...@@ -235,15 +233,13 @@ int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
case SUM: case SUM:
break; break;
default: default:
pr_err( pr_err("ctxfi: Invalid resource type value %d!\n", type);
"ctxfi: Invalid resource type value %d!\n", type);
err = -EINVAL; err = -EINVAL;
goto error; goto error;
} }
if (err) { if (err) {
pr_err( pr_err("ctxfi: Failed to get manager control block!\n");
"ctxfi: Failed to get manager control block!\n");
goto error; goto error;
} }
...@@ -286,8 +282,8 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr) ...@@ -286,8 +282,8 @@ int rsc_mgr_uninit(struct rsc_mgr *mgr)
case SUM: case SUM:
break; break;
default: default:
pr_err("ctxfi: " pr_err("ctxfi: Invalid resource type value %d!\n",
"Invalid resource type value %d!\n", mgr->type); mgr->type);
break; break;
} }
......
...@@ -36,8 +36,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size) ...@@ -36,8 +36,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size)
size = CT_PAGE_ALIGN(size); size = CT_PAGE_ALIGN(size);
if (size > vm->size) { if (size > vm->size) {
pr_err("ctxfi: Fail! No sufficient device virtual " pr_err("ctxfi: Fail! No sufficient device virtual memory space available!\n");
"memory space available!\n");
return NULL; return NULL;
} }
...@@ -132,8 +131,7 @@ ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size) ...@@ -132,8 +131,7 @@ ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size)
block = get_vm_block(vm, size); block = get_vm_block(vm, size);
if (block == NULL) { if (block == NULL) {
pr_err("ctxfi: No virtual memory block that is big " pr_err("ctxfi: No virtual memory block that is big enough to allocate!\n");
"enough to allocate!\n");
return NULL; return NULL;
} }
......
...@@ -78,15 +78,13 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) ...@@ -78,15 +78,13 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
if ((reference_rate != 48000) && (reference_rate != 44100)) { if ((reference_rate != 48000) && (reference_rate != 44100)) {
pr_err("ctxfi: Invalid reference_rate value %u!!!\n", pr_err("ctxfi: Invalid reference_rate value %u!!!\n",
reference_rate); reference_rate);
pr_err("ctxfi: The valid values for reference_rate " pr_err("ctxfi: The valid values for reference_rate are 48000 and 44100, Value 48000 is assumed.\n");
"are 48000 and 44100, Value 48000 is assumed.\n");
reference_rate = 48000; reference_rate = 48000;
} }
if ((multiple != 1) && (multiple != 2) && (multiple != 4)) { if ((multiple != 1) && (multiple != 2) && (multiple != 4)) {
pr_err("ctxfi: Invalid multiple value %u!!!\n", pr_err("ctxfi: Invalid multiple value %u!!!\n",
multiple); multiple);
pr_err("ctxfi: The valid values for multiple are " pr_err("ctxfi: The valid values for multiple are 1, 2 and 4, Value 2 is assumed.\n");
"1, 2 and 4, Value 2 is assumed.\n");
multiple = 2; multiple = 2;
} }
err = ct_atc_create(card, pci, reference_rate, multiple, err = ct_atc_create(card, pci, reference_rate, multiple,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment