From 3dc77dbec09e0723a2b7b003f842168cefaf2a0a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 13 May 2015 13:10:41 +0200 Subject: ASoC: fsl_sai_ac97: add function name to error message 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... --- sound/soc/fsl/fsl_sai_ac97.c | 6 +++--- 1 file 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; } -- cgit v1.2.3