summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-05-13 13:10:41 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-05-13 13:10:41 +0200
commit3dc77dbec09e0723a2b7b003f842168cefaf2a0a (patch)
tree26103e85cb8f85195f2f094e2e8b93bb6421ba50
parent072d5b846bcb2f55ba14afc66ceb4258bc725268 (diff)
ASoC: fsl_sai_ac97: add function name to error messageColibri_VF_LinuxImageV2.4Beta1_20150518
Add function name to error message to indicate in which subsystem the error occured. The timeout still occures from time to time, probably due to a wrong amount of residue bytes reported by the DMA subsystem...
-rw-r--r--sound/soc/fsl/fsl_sai_ac97.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_sai_ac97.c b/sound/soc/fsl/fsl_sai_ac97.c
index 32d3bcc1ca0e..f487527b4f6c 100644
--- a/sound/soc/fsl/fsl_sai_ac97.c
+++ b/sound/soc/fsl/fsl_sai_ac97.c
@@ -396,7 +396,7 @@ static int vf610_sai_ac97_read_write(struct snd_ac97 *ac97, bool isread,
curbufid = ((SAI_AC97_RBUF_SIZE_TOT - rx_state.residue) / SAI_AC97_DMABUF_SIZE);
}
- /* Ok, frames überprüfen... */
+ /* Ok, check frames... */
rx_aclink = (struct ac97_rx *)(info->rx_buf.area + rxbufid * SAI_AC97_DMABUF_SIZE);
if (rx_aclink->slot_valid & (1 << 11 | 1 << 10) &&
rx_aclink->regindex == reg)
@@ -411,8 +411,8 @@ static int vf610_sai_ac97_read_write(struct snd_ac97 *ac97, bool isread,
} while (rxbufmaxcheck);
if (!rxbufmaxcheck) {
- pr_err("timeout, rx checked up to %d, rx start %d, rx cur %d\n",
- rxbufid, rxbufidstart, curbufid);
+ pr_err("%s: rx timeout, checked buffer %d to %d, current %d\n",
+ __func__, rxbufidstart, rxbufid, curbufid);
ret = -ETIMEDOUT;
}